How to use the Conditional / Ternary operator in Salesforce Apex Class ? : x ? y : z Ternary operator (Right associative). This operator acts as a short-hand for if-then-else …
SFDC Developer
-
-
How to Replace String Values in Visualforce Page SUBSTITUTE – new text for old text in a text string. Example: {!SUBSTITUTE(Lead.Company, ” “, “”)} //Remove the Space in Lead Company {!SUBSTITUTE(Account.Name, “”, “”)} //Remove dot value in Account Nmae <apex:outputText value=”{! SUBSTITUTE( …
- APEXSALESFORCESalesforce CustomizationSalesforce.com
Code Coverage in Try Catch Block in Apex Test Class in Salesforce
Code Coverage in Try Catch Block in Apex Test Class in Salesforce Sample Apex class and Apex Test class for your reference to increasing the code coverage in Try Catch …
- APEXSALESFORCESalesforce CustomizationTrailhead
Create an Queueable Apex class that inserts Contacts for Accounts – Queueable Apex
Create an Queueable Apex class that inserts Contacts for Accounts – Queueable Apex Create an Queueable Apex class that inserts Contacts for Accounts. Create a Queueable Apex class that inserts …
- APEXSALESFORCESalesforce CustomizationTrailhead
Create an Apex class that uses Batch Apex to update Lead records – Use Batch Apex
Create an Apex class that uses Batch Apex to update Lead records – Use Batch Apex Create an Apex class that uses Batch Apex to update Lead records. Create an …
- APEXSALESFORCESalesforce CustomizationTrailhead
Create an Apex class that uses the @future annotation to update Account records – Asynchronous Apex
Create an Apex class that uses the @future annotation to update Account records – Asynchronous Apex Use Future Methods: Create an Apex class with a method using the @future annotation …
-
Create Test Data for Apex Tests in Trailhead Create a contact test factory Create an Apex class that returns a list of contacts based on two incoming parameters: one for …
-
Update Date values in Salesforce Custom button to example to update the date custom field called AssignementDate__c field in Lead object then use the below code in the custom button …
- APEXSALESFORCESalesforce CustomizationSalesforce.comTriggerTriggers
update a related record value using Map and Apex class?
update a related record value using Map and Apex class? Example 1: How to create and update existing contact records using map and apex class [java] global void execute(Database.BatchableContext BC, …
- Email TemplateSALESFORCESalesforce CustomizationSalesforce.comVisualforce
How to fetch Contact details from Opportunity Contact Roles using SOQL in Salesforce?
How to fetch Contact details from Opportunity Contact Roles using SOQL in Salesforce? SOQL QUERY: SELECT Id, Opportunity.Name, Contact.Email, Contact.Name, Role, isPrimary FROM OpportunityContactRole Where OpportunityId =’OpportunityID’ Here: OpportunityID – …