APEX SALESFORCE Visualforce

How to Replace String Values in Visualforce Page

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( SUBSTITUTE(Account.Description, ‘[‘, ‘<sup>’), ‘]’, ‘</sup>’ ) }” escape=”false”/> Replace String…

Read More
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