How to check the if condition in Salesforce Visualforce page? Assign the variable in your apex class and use that variable using below, Ex1: [html] <apex:outputPanel id=”ref3″ style=”{!IF((masterLookupType == ‘Contacts …
SALESFORCE
-
-
How to Convert from SET to LIST Using Apex Class? Using below code we can convert from SET to LIST, Pass your set values in this method ‘convertToList’ and you …
-
How to Send the Email with Attachment Using Apex Class? Using below code we can set the To, CC, BCc, Body Content with Email Signature and with the Attachment from …
-
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 …
-
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 …