• Yury Bondarau
  • NEWBIE
  • 230 Points
  • Member since 2014
  • VRP Consulting


  • Chatter
    Feed
  • 4
    Best Answers
  • 1
    Likes Received
  • 12
    Likes Given
  • 8
    Questions
  • 87
    Replies
Hi all,
 
I have a text field Zip which is a not required field.What i want is that if a user leaves this field blank so it must be auto populated with a particular value-"00000".

The solution which i opted is I creaed a Workflow with formula
ISNULL(Zip__c)


Then in the Field Update I used
TEXT(00000)


The outcome of which is thet Zip is getting auto populated with only one Zero.But i Want 5 zeros.
Thannks in advance
I have an Apex webservice that I am trying to consume from a simple .net website. I can login into Salesforce using the Enterprise WSDL or the Partnerservice WSDL. But when I try to call the class I get the following error.

System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 96.43.150.232:443 at System.Net.Sockets.Socket.DoConnect

This is connecting to a Sandbox environment.

Any ideas please?
This is my Apex class
global class PAVE_ProjectWebService
{
     webservice static List<PAVE_Project__c> getProjectProposal(String strFilter)
     {
        String SOQL;
       
        SOQL = 'SELECT Project_Name__c,PAVE_Site__r.Name,Status__c FROM PAVE_Project__c ';
        if (strFilter != null) SOQL += 'WHERE ' + strFilter;
        return Database.query(SOQL);
     }
}

I have generated the WSDL for the class.
A problem with the OnClick JavaSCript for this button or link was encountered. Unexpected toekn ILLEGAL. Not sure what is "illegal". 

PLEASE HELP!
 
{!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/19.0/apex.js")} 

if('{!Opportunity.Opportunity_Status__c}' == 'Denied') { 
alert('This opportunity cannot be approved because it has been denied.'); 
} else if('{!Opportunity.Opportunity_Status__c}' != 'Approved') { 
alert('This opportunity must be approved in order to complete this action.'); 
}else if('{!Opportunity.Amount}' != '0.00') { 
alert('This opportunity cannot be updated because no products are listed'); 
}else if('var strQuantity = sforce.connection.query("select Id, Quantity from opportunityLineItem where OpportunityId = '{!Opportunity.Id}'")'); 
}else if('var records = strQuantity.getArray("records")'); 
}else if('var quantity; 
for (var i=0; i< records.length; i++) { 
var record = records[i]; 
if (record.Quantity <50) { 
quantity = record.Quantity'); 
} 
} 
}else if('switch(true){ 
case quantity<50:'){ 
alert('Quantity on products cannot be less than 50.')); 
}else { 
sforce.apex.execute("CMR_DesignWebService", "UpdateToPMIDesign",{OpportunityId:'{!Opportunity.Id}'}); 
alert('Opportunity Approved in PMI system.'); 
window.location = window.location; 
}

Beth
I create unmanaged package in sandbox, so now I need that package to be installed on test environment (developer/enterprise edition from Partner Portal), but because the package is from sandbox in the installation URL there is "test" and because of that I am not able to install it. Please help
I got the following error when trying to pass salesforce Reports & Dashboards superbadge challenge ( https://developer.salesforce.com/trailhead/en/super_badges/superbadge_reports)

User-added image

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: TQQJZXRV


I created fresh org for this challenge, so I do not think the issue can be caused by existing customiztions.

Could somebody describe what TQQJZXRV code means?
Did not have a chance to see Woz's keynote on TrailheaDX. Where can I find a recording?
Hi Everyone,

As a team leader from time to time I recommend newbies to pass trailhead modules. Trailhead is perfect system for education, but I can not check the results/points/badges when open the link like - https://developer.salesforce.com/forums/ForumsTrailheadProfile?userId=<Id of developer community user> - It redirects to empty forum profile.

Is there any way to check somebody's trailhead progress?
As far as I now it is possible to setup custom custom Second-level domain for force.com/site.com sites.

Is it possible to setup second-level domain for salesforce.com CRM?
For instance setup DNS for the domains like <my company>.my.salesforce.com to be <my company>.com
Is it possible to replace standard salesforce layouts with lightning component (like a visualforce page with standard conroller).

Our client would like to use SKUID to make user interface more friendly and be able to edit records right from the list view. But salesforce specialist involved in project implementation said that it is preferable to use lightning.

I could not find any confirmation in documentation that this is possible to replace standard detail or list layout with somethid build on Linghtning.

Guys, Can somebody confirm that this is possible?
Hello,

As a rule software developers have three levels of knowledge: Junior, Middle, Senior

Is there any official methodology (provided by salesforce) to determine knowledge level of salesforce developer?

Guys, can you share some documents, best practices, methodologies that are used in your companies to determine knowledge level of salesforce specialist (admin or developer)

Thanks you!!
I have created a certificate on my salesforce instance in order to implement JWT OAuth connection with mobile devices.

https://help.salesforce.com/apex/HTViewHelpDoc?id=security_keys_about.htm&language=en_US


Is there any posibilities to add a generated certificate to a managed package?

I have tried to import 2500 of records to my dev environment. It took 14 API calls.

I assume that we will need 1 call for login + 2500 records / 200 (size of chunk) = 14. It is okay. But what will heppen in case of loading of 1,000,000 records? What if insertion will throw an exception?

Is there any buffer taht I should consider in calculations of number of API calls? For instance  - refresh an authentication token in a middle of loading? Anything else?

Thanks in advance
Is it possible to replace standard salesforce layouts with lightning component (like a visualforce page with standard conroller).

Our client would like to use SKUID to make user interface more friendly and be able to edit records right from the list view. But salesforce specialist involved in project implementation said that it is preferable to use lightning.

I could not find any confirmation in documentation that this is possible to replace standard detail or list layout with somethid build on Linghtning.

Guys, Can somebody confirm that this is possible?
I'm receiving the following error on challenge #6 of the Lightning Superbadge:

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error in your org which is preventing this assessment check from completing: System.DmlException: Delete failed. First exception on row 0 with id 0035000002hUBgRAAW; first error: DELETE_FAILED, Your attempt to delete Sam the ninja could not be completed because it is associated with the following adventure packages.: null, null : []

Looking at the Developer Console, it looks like the code which checks the system is forgetting to delete the Adventure Package records before deleting the Contact. Has anyone else run into this issue?

Thank you!
I got the following error when trying to pass salesforce Reports & Dashboards superbadge challenge ( https://developer.salesforce.com/trailhead/en/super_badges/superbadge_reports)

User-added image

Challenge Not yet complete... here's what's wrong: 
There was an unexpected error while verifying this challenge. Usually this is due to some pre-existing configuration or code in the challenge Org. We recommend using a new Developer Edition (DE) to check this challenge. If you're using a new DE and seeing this error, please post to the developer forums and reference error id: TQQJZXRV


I created fresh org for this challenge, so I do not think the issue can be caused by existing customiztions.

Could somebody describe what TQQJZXRV code means?
Hello,

We are getting this error:
i360:Too many SOQL queries: 101 Error is in expression '{!Save}' in page i360:quickaction: (i360)    An unexpected error has occurred. Your solution provider has been notified. (i360)

From what we believe is the code below. Can you help us "clean up" the code and also let us know how to find the culprit of the error.
trigger Appointment_Price_Quoted on i360__Appointment__c (after update) 
{
    if(Trigger.isAfter)
    {
        if(Trigger.isupdate)
        {
            set<Id> ProspectSet = new set<Id>();
            for(i360__Appointment__c Appointment :Trigger.new){
                ProspectSet.add(Appointment.i360__Prospect__c);
            }
            map<string, i360__Prospect__c> ProspectMap = new map<string, i360__Prospect__c>(
               [SELECT Id, Appointment_Quoted_Price__c 
               FROM i360__Prospect__c
                WHERE Id IN :ProspectSet]
            );
            list<i360__Prospect__c> ProspectsToUpdate = new list<i360__Prospect__c>();
            for(i360__Appointment__c Appointment : Trigger.new){
                i360__Prospect__c prospect = new i360__Prospect__c();
                Prospect.Id = ProspectMap.get(Appointment.i360__Prospect__c).Id;
                if(Appointment.i360__Quoted_Amount__c != NULL && Appointment.i360__Prospect__c != null){
                    prospect.Appointment_Quoted_Price__c = Appointment.i360__Quoted_Amount__c;
                }else{
                    prospect.Appointment_Quoted_Price__c = 0.00;
                }
                ProspectsToUpdate.add(prospect);
            }
            if(ProspectsToUpdate.size() > 0){
                update ProspectMap.values();
            }
        }
    }
}
Hi All,
My current trigger avoids updating Status__c field on accounts from 'Open' to 'close' when both Account's status__c and its related Opportunities status__C is 'Open', Now,How can i use the same condition to avoid those accounts from being deleted(Before delete even which throws custom error message).
 my current condition in trigger is working for both before update and before delete events,but the before delete event in the trigger is not allowing me to delete any other records, those even didn't met the condition and i am seeing the follow error message instead i want to populate the custom error message.
  Help will be appreciated. 

User-added image
trigger AvoidStatusUpdateOnAcct on Account(before update,before delete) 
{  Set<Id> acctIdSet = new Set<Id>();   
    for (Account acct : Trigger.new)      
    {
        acctIdSet.Add(acct.Id);              
    }
    
    Map<Id, Account> acctMap = new Map<Id, Account>([SELECT Id,Name,Status__c, (SELECT Id FROM Opportunities WHERE Status__c = 'Open') FROM Account WHERE Id in :acctIdSet]);   
    for (Account acct : Trigger.new)
    {   List<Opportunity> oppList = acctMap.get(acct.Id).Opportunities;       
        if (acct.Status__c == 'Close' && oppList != null && oppList.size() >= 1)
        {
           acct.addError('Account ' + acct.Name + ' still has open opportunities.'); 
        }
    
    }
 }


Thanks
CKR    
  • June 22, 2016
  • Like
  • 0
Hi Eagles,

I need to enable multi currencies in my salesforce account and marked the check box in 'Company information' to enable multy currency but I know we have to contact SFDC to finalize it.
I don't know how can get this support from salesforce to enable my developer edition account! Thought?

Arash

Hey all, fairly new to Salesforce and Apex. So I'm trying to create a class that will store all the data from the parent object and the 3 child objects. I'll be using this controller in VisualForce to create PDFs with the fields collected in the class. Here is the full class (This was based on another class roughly doing the same thing, which may be where my problem is). It is failing 4 Apex tests when deployed. Thanks for the help, and apologies if this has a simple solution I'm just not seeing!

-----

public with sharing class Program_Controller {

public Program__c myProgram{get;set;}

public Program_Controller(){
    myProgram=new Program__c();
    
    if(ApexPages.currentPage().getParameters().get('id')!=null){
        myProgram=[SELECT   Name, 
                                                    Active__c, 
                                                    Alpha_Test__c, 
                                                    Base_Program__c, 
                                                    Beta_Test__c, 
                                                    Bootloader__c, 
                                                    Complexity__c, 
                                                    Description__c, 
                                                    Design_Approval__c, 
                                                    Design_Finalized__c, 
                                                    Electrical_System__c, 
                                                    Engineering_Documentation_Review__c, 
                                                    Estimated_Completion__c,
                                                    Field_test_Required__c, 
                                                    Final_Test__c, 
                                                    Program_ID__c, 
                                                    Sales_Documentation_Review__c, 
                                                    Sales_R_C_Review__c, 
                                                    Short_Descrip__c, 
                                                    Status_Reason__c, 
                                                    Sticker__c, 
                                                    (SELECT Name, 
                                                        Active__c,
                                                        Jumper_Position__c,
                                                        MSID__c,
                                                        Toggle__c,
                                                        ToggleDisp__c,
                                                        Toggle_State__c              
                                                    FROM Program_Toggles__r),
                                                    (SELECT Name, 
                                                        Active__c,
                                                        Duration__c,
                                                        Function__c,
                                                        FunctionDisp__c,
                                                        MSID__c,
                                                        Signal__c,
                                                        SignalDisplay__c,
                                                        Wire__c              
                                                    FROM Program_IOs__r),
                                                    (SELECT Name, 
                                                        Active__c,
                                                        Jumper_Position__c,
                                                        MSID__c,
                                                        TypeDisp__c,
                                                        Value__c,
                                                        Variable__c,
                                                        VariableDisp__c              
                                                    FROM Program_Details__r)
                            FROM PROGRAM__c p
                            WHERE p.Id=:ApexPages.currentPage().getParameters().get('id')];
                }
        }
}//end of class

----

Here are the 4 errors I'm getting:

CalculateBusinessHoursAgesTest || testBusinessHoursBucketer || System.Exception: Assertion Failed 
Stack Trace: Class.CalculateBusinessHoursAgesTest.testBusinessHoursBucketer: line 29, column 1

Catalog_Controller_Test || runTest || System.DmlException: Insert failed. First exception on row 0; first error: FIELD_CUSTOM_VALIDATION_EXCEPTION, Carrier can not be North America for overseas shipments.: [Preferred_Carrier__c] 
Stack Trace: Class.Catalog_Controller_Test.runTest: line 32, column 1

Milestone1_Test_Field_Values || testFieldValues || System.AssertException: Assertion Failed: Expected: -1789.690000000000000000000000000000000001, Actual: -1789.69 
Stack Trace: Class.Milestone1_Test_Field_Values.testFieldValues: line 245, column 1

OppPusherTests || myOppUnitTest || System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, Opportunity_SetPricebook: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object Trigger.Opportunity_SetPricebook: line 16, column 1: [] 
Stack Trace: Class.OppPusherTests.createOppty: line 73, column 1 Class.OppPusherTests.myOppUnitTest: line 30, column 1

I posted once but didn't receive any response.  Has someone developed a button we can place on the quote object that would allow you to "delete" multiple line items all at once?
Hi All,

I Want to give Some Validation to File Extemsion...So that it should accept particular file Format.....

i have Written these
 function check(obj) { 
            var path = obj.value;
            var ext = path.substring(path.lastIndexOf('.') + 1);
            if(ext !="pdf")
            {
                obj.value = null;
                window.alert("File can be only of type : pdf, doc, docx, xls, xlsx, ppt, pptx, pps, ppsx ");
                return false;
            }
     }
but its not Working..i want to give validation for 5-6 file Format...how it will be Written,, Kindly Suggest.
I am attempting to create a select statement that will pull all the first names of members that are signed up to a specific campaign. I am relatively new to using the Salesforce API so I decided to simplify it and just try to pull the first name of any member of any campaign. I wrote the following code:
SELECT FirstName FROM CampaignMember
When I run the statement I recieve the following error:
PHP Fatal error:  Uncaught SoapFault exception: [sf:INVALID_FIELD] INVALID_FIELD: 
SELECT FirstName FROM CampaignMember
       ^
ERROR at Row:1:Column:8
No such column 'FirstName' on entity 'CampaignMember'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. in C:\Sites\s2s\htdocs\salesForce\soapclient\SforceBaseClient.php:808
Stack trace:
#0 C:\Sites\s2s\htdocs\salesForce\soapclient\SforceBaseClient.php(808): SoapClient->__call('query', Array)
#1 C:\Sites\s2s\htdocs\salesForce\soapclient\SforceBaseClient.php(808): SforceSoapClient->query(Array)
#2 C:\Sites\s2s\htdocs\test.php(28): SforceBaseClient->query('SELECT FirstNam...')
#3 {main}
  thrown in C:\Sites\s2s\htdocs\salesForce\soapclient\SforceBaseClient.php on line 808

I did confirm that all user profiles are allowed to view the CampaignMember object. From what research I have done I discovered that Salesforce use to have this bug. Has this been patched out, or is there another reason I am recieving the error? 
 
Hi All,

The is no validation to check if you have completed the Trialhead module or not.
Without completing the chalange also we can get the Certificate by just completing the survey on Drucker School of Management site.

Thanks,
Zeeshan.
I am new to trigger writing and I need help writing a trigger that sums 3 opportunity amount fields (Item1, Item2, Item 3) and places it in a Custom currency field called  "Total" (opportunity field) any time any of the 3 fields are populated. The user should have the ability to overwrite the custom data and I would like to add a checkbox to essentially disable the trigger if set to true. Can you anyone help me with some base code i can use to create this trigger?
Hello,

Part of the module is where you create couple of profiles with object level permissions. Accordingly i have set the right permissions for account object (R/E/VA), Opportunity (R/C/E) -- NO VIEW ALL for Field Sales Profile.

Everytime i check the challenge am getting below error; any help.
Error:
Challenge Not yet complete... here's what's wrong: 
The Field Sales User does not appear to have the correct object permissions for Accounts and Opportunities.
Hi guys, i want to one user to see and edit the list views craeted by the other user(both are standard users). How is that possible? 
How can we achieve this functionality? Please help
Hello,

I am preparing to move a webservice call that has been in testing in my sandbox environment and works as expected there.  When I run the same call against my production environment I receive the following error:

Fatal error: Uncaught SoapFault exception: [sf:INVALID_SESSION_ID] INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session hash: <**HASH REMOVED**> This is expected, it can happen if the session has expired and swept away, or if the user logs out, or if its just someone trying to hack in.

The code is fairly simple - I am creating a connection with the PHP toolkit using the appropriately generated partner wsdl.jsp and logging in.  I am able to log in  but when I make the call to the webservice I am given the error above.  Could this be an issue in the way the production org is set up or do I need to look elsewhere?

Code used to call the service is below.  The error is thrown on $client->IsThisLiveProduct($valuearray);
$USERNAME = "USERNAME";
$PASSWORD = "PASSWORD";
$TOKEN = "TOKEN";

require_once ('/soapclient/SforcePartnerClient.php');
require_once ('/soapclient/SforceHeaderOptions.php');

$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection("../forcecom2/soapclient/wsdl.jsp.xml");
$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD . $TOKEN);

$parsedURL = parse_url($mySforceConnection->getLocation());
define ("_WS_NAME_", 'WSNAME');
define ("_WS_WSDL_", _WS_NAME_ . '.xml');
define ("_WS_NAMESPACE_", 'http://soap.sforce.com/schemas/class/' . _WS_NAME_);

// SOAP Client for Web Service
$client = new SoapClient(_WS_WSDL_);
$sforce_header = new SoapHeader(_WS_NAMESPACE_, "SessionHeader", array("sessionId" => $mySforceConnection->getSessionId()));
$client->__setSoapHeaders(array($sforce_header));

// Call the web service
$valuearray = array('SerialNumber'=>'SERIALNO');
$response = $client->IsThisLiveProduct($valuearray);

Thanks!

I want to use record Type to limit trigger action. 

 

Now I use querey to get it my code liks below

string Id = [SELECT id from RecordType where Name ='Someone'].Id;

 

I also found this page, we could use method to get the Record Type Id to avoid the query.

I still can't understand it.

 

Is there some simple and easy wayt to get the ID only by Record Type's Name?

Hi All,  We recently brought our schedule balancing app, DayBack, to Salesforce. DayBack is a JavaScript web app and bringing it to Salesforce was  intimidating--more learning a new culture than a new language--but it went really well and now DayBack works seamlessly with Salesforce and is Lightning and Mobile1 ready.

We've packaged up what we've learned in this process as an opensource Canvas App Starter Kit. This is the reasource I wish we'd had when we got started. It consolidates a lot of the docs and best practices from around the ecosystem and includes a simpler Hello World application more tuned to JS devs.

So if you have a web app you'd like to bring to the App Exchange, I hope this gives you a big head start. (Feedback MUCH appreciated.)

Starter Kit Splash Screen
Hi Guys

I am facing issue on commandline data loader when i run my script.how to achieve this ?
C:\Program Files (x86)\salesforce.com\Data Loader\bin>process.bat "D:\test1" Inv
oiceUpsert
2016-03-31 13:08:48,286 INFO  [main] controller.Controller initLog (Controller.j
ava:389) - Using built-in logging configuration, no log-conf.xml in C:\Program F
iles (x86)\salesforce.com\Data Loader\bin\log-conf.xml
2016-03-31 13:08:48,298 INFO  [main] controller.Controller initLog (Controller.j
ava:391) - The log has been initialized
2016-03-31 13:08:48,304 INFO  [main] process.ProcessConfig getBeanFactory (Proce
ssConfig.java:103) - Loading process configuration from config file: D:\test1\pr
ocess-conf.xml
2016-03-31 13:08:48,501 INFO  [main] xml.XmlBeanDefinitionReader loadBeanDefinit
ions (XmlBeanDefinitionReader.java:315) - Loading XML bean definitions from file
 [D:\test1\process-conf.xml]
2016-03-31 13:08:48,635 INFO  [InvoiceUpsert] controller.Controller initConfig (
Controller.java:327) - config dir created at D:\test1
2016-03-31 13:08:48,654 INFO  [InvoiceUpsert] controller.Controller initConfig (
Controller.java:355) - The controller config has been initialized
2016-03-31 13:08:48,656 INFO  [InvoiceUpsert] process.ProcessRunner run (Process
Runner.java:116) - Initializing process engine
2016-03-31 13:08:48,658 INFO  [InvoiceUpsert] process.ProcessRunner run (Process
Runner.java:119) - Loading parameters
2016-03-31 13:08:49,679 ERROR [InvoiceUpsert] config.Config decryptProperty (Con
fig.java:692) - Error loading parameter: sfdc.password of type: java.lang.String

javax.crypto.BadPaddingException: Given final block not properly padded
        at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
        at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
        at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..)
        at javax.crypto.Cipher.doFinal(DashoA13*..)
        at com.salesforce.dataloader.security.EncryptionUtil.decryptString(Encry
ptionUtil.java:210)
        at com.salesforce.dataloader.config.Config.decryptProperty(Config.java:6
86)
        at com.salesforce.dataloader.config.Config.postLoad(Config.java:638)
        at com.salesforce.dataloader.config.Config.loadParameterOverrides(Config
.java:664)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:120)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:100)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:253)
2016-03-31 13:08:49,692 FATAL [main] process.ProcessRunner topLevelError (Proces
sRunner.java:238) - Unable to run process InvoiceUpsert
java.lang.RuntimeException: com.salesforce.dataloader.exception.ParameterLoadExc
eption: Error loading parameter: sfdc.password of type: java.lang.String
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:162)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:100)
        at com.salesforce.dataloader.process.ProcessRunner.main(ProcessRunner.ja
va:253)
Caused by: com.salesforce.dataloader.exception.ParameterLoadException: Error loa
ding parameter: sfdc.password of type: java.lang.String
        at com.salesforce.dataloader.config.Config.decryptProperty(Config.java:6
93)
        at com.salesforce.dataloader.config.Config.postLoad(Config.java:638)
        at com.salesforce.dataloader.config.Config.loadParameterOverrides(Config
.java:664)
        at com.salesforce.dataloader.process.ProcessRunner.run(ProcessRunner.jav
a:120)
        ... 2 more
Caused by: javax.crypto.BadPaddingException: Given final block not properly padd
ed
        at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
        at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
        at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..)
        at javax.crypto.Cipher.doFinal(DashoA13*..)
        at com.salesforce.dataloader.security.EncryptionUtil.decryptString(Encry
ptionUtil.java:210)
        at com.salesforce.dataloader.config.Config.decryptProperty(Config.java:6
86)
        ... 5 more
C:\Program Files (x86)\salesforce.com\Data Loader\bin>^A

 
Is there any way to track the field history in Opportunity line item through a custom code? since there is no standard feature enabled for this object to track field history.

Thanks
 
  • March 18, 2016
  • Like
  • 2
If you're using web to lead and Salesforce becomes unavailable for some reason, what happens to any leads queued?  Do you get an email with the data like you do if you exceed the limit of 500 new leads a day? Or does the info queue up and then flow into Salesforce when available?
Hello,

I am trying to create web to lead form and integrate into my website and send an email. I have followed the following steps:


Step I: Create a new lead custom field to capture the new information

1. Click on:

Setup | App Setup | Customize | Lead | Fields.

2. Scroll down and click on the "New" button next to Lead Custom Fields.

3. Enter the Data type for the field and the appropriate label for the field. Depending on the data type, you may need to fill out the other sections.

4. Click "Save".

5. You can optionally map this lead field to Accounts, Contacts, and Opportunities if the lead is converted. (in order to do so, click on the link "Map Lead Fields" located next to "New." This will ensure that the information is retained when the lead is subsequently converted.

Step II: Generate the sample HTML code for this new field

1. Click on:

Setup | App Setup | Customize | Leads | Web-to-Lead.

2. Click on "Create Web-to-Lead Form".

3. Deselect all the check boxes by clicking on "select none". Then select only the lead field you just created.

4. Click "Generate".

5. Select all the text in the text box and copy it onto your clipboard by selecting the menu option Edit -> Copy (on your browser).

Step III: Incorporate the new HTML into your web site

1. Paste the HTML you copied into an email and send it to your webmaster.

2. Your webmaster will need to add the input elements in this sample HTML into your website. They will also likely want to customize the look and feel to match that of your web site.


There are some problem arises to map the fields that are mentioned on step1 no 5.

I have confused about the next step.
 
Hi, I have created a custom button 'Checkin' on opportunity and below is the javascript for this. on cllick of the button, its creating a task under opportunity by saving checkin logtitude latitude.

{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")} 

var tsk = new sforce.SObject('Task'); 


tsk.WhatId = '{!Opportunity.Id}'; 
tsk.subject = 'Subject1'; 

if(navigator.geolocation){ 
//browser support geolocation 
navigator.geolocation.getCurrentPosition(callbackSuccess, callbackError,{enableHighAccuracy:true,timeout:3000}); 

}else{ 
alert('Navigation is not supported'); 


function callbackSuccess(position) { 

//get latitude and longitude 
var lat = position.coords.latitude; 
var lon = position.coords.longitude; 

tsk.Checkin_Geolocation__Latitude__s=lat; 
tsk.Checkin_Geolocation__Longitude__s=lon; 
sforce.connection.create([tsk]); 

window.location.reload(); 


function callbackError(error) { 
switch(error.code) { 
case error.UNKNOWN_ERROR: 
alert("UNKNOWN_ERROR."); 
break; 
case error.PERMISSION_DENIED: 
alert("PERMISSION_DENIED."); 
break; 
case error.POSITION_UNAVAILABLE: 
alert("POSITION_UNAVAILABLE."); 
break; 
case error.TIMEOUT: 
alert("TIMEOUT."); 
break; 

}


I am unable to see this button in salesforce1 app in mobile. Any solution for this.? Alternatively, how can we write this in visualforce page.
I have a list of old records open and closed on which there is no sharing (these records are old requests that I want to share with groups) . How can I achieve this using apex code?
Hello,

I am preparing to move a webservice call that has been in testing in my sandbox environment and works as expected there.  When I run the same call against my production environment I receive the following error:

Fatal error: Uncaught SoapFault exception: [sf:INVALID_SESSION_ID] INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session hash: <**HASH REMOVED**> This is expected, it can happen if the session has expired and swept away, or if the user logs out, or if its just someone trying to hack in.

The code is fairly simple - I am creating a connection with the PHP toolkit using the appropriately generated partner wsdl.jsp and logging in.  I am able to log in  but when I make the call to the webservice I am given the error above.  Could this be an issue in the way the production org is set up or do I need to look elsewhere?

Code used to call the service is below.  The error is thrown on $client->IsThisLiveProduct($valuearray);
$USERNAME = "USERNAME";
$PASSWORD = "PASSWORD";
$TOKEN = "TOKEN";

require_once ('/soapclient/SforcePartnerClient.php');
require_once ('/soapclient/SforceHeaderOptions.php');

$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection("../forcecom2/soapclient/wsdl.jsp.xml");
$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD . $TOKEN);

$parsedURL = parse_url($mySforceConnection->getLocation());
define ("_WS_NAME_", 'WSNAME');
define ("_WS_WSDL_", _WS_NAME_ . '.xml');
define ("_WS_NAMESPACE_", 'http://soap.sforce.com/schemas/class/' . _WS_NAME_);

// SOAP Client for Web Service
$client = new SoapClient(_WS_WSDL_);
$sforce_header = new SoapHeader(_WS_NAMESPACE_, "SessionHeader", array("sessionId" => $mySforceConnection->getSessionId()));
$client->__setSoapHeaders(array($sforce_header));

// Call the web service
$valuearray = array('SerialNumber'=>'SERIALNO');
$response = $client->IsThisLiveProduct($valuearray);

Thanks!
Hi folks
All of our non-batch scheduled apex classes (where the limit is supposed to be 100 according to the documentation as we read it) suddenly started erroring out with Spring '15 saying the limit is 5. These are NOT batch jobs.  We have activated FlexQueue anyway. 
It appears others have found this issue. E.g. http://salesforce.stackexchange.com/questions/66607/scheduled-apex-limit-exceeded-spring-15

I tried making a case with SF but could not get past the standard support who pointed me to the batch limit documentation and flex queue. 

We'd be super grateful if anyone could tell us if:
1) SF recognizes this as a bug
2) If anything is being done about it
3) If there are known workarounds.

Thanks
Hi All,

I had scheduled around 22 Jobs till last Friday on on SF Org with different schedules. All these 22 jobs were visible in Scheduled Jobs Tab. Starting from this Monday(16th Feb 2015) I'm getting an Error : System.AsyncException: You have exceeded the maximum number (5) of Apex scheduled jobs when I try to schedule the same number of Jobs.
Its allowing only 5 Jobs to be submitted. 

Org might have been upgraded to Spring 2015 over the weekend. As per the Spring 2015 notes, we can use Apex Flex Queues to shcedule upto 100 Apex Jobs. We tried activating the Apex Flex Queue from Critical Updates section, but still the issue persists.

Need advise on what can be done to get the limit back to 100.
If an installed managed package is deployed from sandbox to production what happens to post install script? Is it count as upgrade (context.isUpgrade) or the script never runs on production (maybe doesn't count as install since it's not actually installing in production)?

We have a postinstall script that do some stuff on only new install (!context.isUpgrade() && !context.isPush())

But it's not working when the package is installed in sandbox first and then deployed to production