How to execute Batch Apex Using Apex Trigger? Call your batch Apex class from below trigger, Trigger: [java] trigger UpdateAreaInfoUser on User (after update) { Map<id, User> owners = new …
February 2013
-
-
How to get the Visual Force Page Name Using Apex Class? We can get the Visual Force Page Name Using Apex Class, below is the Example: [java] public string getVFPageName() …
-
How to get the Salesforce Instance Server URL from APEX Class? This can be used to get the ID of current record. [java] ApexPages.CurrentPage().getParameters().get(‘id’); [/java] This can be used to …
-
How to get the Salesforce Instance Server URL from APEX Trigger? Using trigger we can get the Salesforce Server URL, below is the example: for example, used below codes in …
-
Salesforce Standard Object field IDs: Below is the list of Salesforce Standard Objects and Field ID’s Object Name Field Name Data Type ID Account Account Name acc2 Account Site acc23 …
-
How to get the Salesforce object API Name by Record Id? [java] String recordId = ‘a0AL0000000KLCjMAO’; // replace this id with your one record ID String recordCode = recordId.subString(0,3); // …
-
List of Salesforce Standard Objects Prefixed IDs: Key Prefix Object Type 001 Account 02Z AccountContactRole 00r AccountShare 04m AdditionalNumber 01p ApexClass 099 ApexComponent 07L ApexLog 709 ApexTestQueueItem 07M ApexTestResult 066 …
-
Implementation between Ruby and Salesforce Application see the blog post about it here: http://blogs.developerforce.com/developer-relations/2011/08/new-force-com-and-database-com-ruby-gem-… and a tutorial from one of the project contributors, Joel Dietz / @fractastical: http://fractastical.com/2011/09/01/getting-started-with-the-databasedotcom-gem/ And a …
-
How to Create New Salesforce Custom Object Using PHP Script We can creates custom object in salesforce using PHP Script. [php] <?php require_once(‘soapclient/SforcePartnerClient.php’); require_once(‘soapclient/SforceMetadataClient.php’); try { $mySforceConnection = new SforcePartnerClient(); …
-
Problem with SSL and SOAP when connecting from PHP to Salesforce Before connecting Salesforce Org to PHP, You need to enable the SSL and SOAP php_openssl – Should be Enable. …