Email Template SALESFORCE Salesforce Customization Salesforce.com Visualforce

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 – place the opportunity id Opportunity Contact Role Output: OpportunityContactRole Object…

Read More
Email Template SALESFORCE Salesforce Customization Salesforce.com Visualforce

How to get the Primary Opportunity Contact Role Information in Salesforce Email Template?

How to get the Primary Opportunity Contact Role Information in Salesforce Email Template? Its possible using the Visualforce Email Template and below is the Visualforce Email Template Code Salesforce Email Template Types       Visualforce Email Template: <messaging:emailTemplate subject=”Opportunity…

Read More
APEX SALESFORCE Salesforce Configuration Salesforce Customization Salesforce Interview Questions Salesforce.com

How to Convert 18 Digit Id to 15 Digit Id using Apex Class?

How to Convert 18 Digit Id to 15 Digit Id using Apex Class? Example1: convert the Id to a String and using substring(startIndex, endIndex) its possible to convert from 18 digit Id to 15 Digit Id. String AccountId = String.valueOf(Account.Id).substring(0,…

Read More