When a record's approval is Requested, Recalled, Approved, or Rejected in Advanced Approvals, admins can Set Up Advanced Approval Email Templates to send a formatted emails to your approval recipients.
Salesforce Advanced Approvals supports Visualforce email templates. The following Visualforce Email Template sample can be used as a reference. Ensure the code {!relatedTo.Quote__r.Id} is the first ID that appears within the message body tag. Here is the sample Request Template:
<messaging:emailTemplate subject="APPROVAL REQUEST SAMPLE: {!relatedTo.Quote__r.Name}, {!relatedTo.Quote__r.SBQQ__Opportunity2__r.Owner.Name}" relatedToType="sbaa__Approval__c">
<messaging:HtmlEmailBody >
<html>
<body>
Hello, You have been requested to approve the following:
<p>
<p><b>Quote Name:</b> <apex:outputLink value="https://[your URL here]/{!relatedTo.Quote__r.Id}" >{!relatedTo.Quote__r.Name}</apex:outputLink></p>
<p><b>Opportunity Name:</b> <apex:outputLink value="https://[your URL here]/{!relatedTo.Quote__r.SBQQ__Opportunity2__r.Id}" >{!relatedTo.Quote__r.SBQQ__Opportunity2__r.Name}</apex:outputLink></p>
<p><b>Opportunity Owner:</b>{!relatedTo.Quote__r.SBQQ__Opportunity2__r.Owner.Name}</p>
<p><b>Quote Total:</b> <apex:outputField value=" {!relatedTo.Quote__r.SBQQ__NetAmount__c}"/></p>
<p><b>Payment Terms:</b> <apex:outputField value=" {!relatedTo.Quote__r.SBQQ__PaymentTerms__c}"/></p>
<p style="color:white"><apex:outputText value="{!relatedTo.Id}"/></p>
</p>
</body>
</html>
</messaging:HtmlEmailBody>
</messaging:emailTemplate>
Note: This email template was designed to be used for an Approval Rule set up on the SBQQ__Quote__c object. The template includes examples of merge fields and creating links that reference related records. The URL samples include a "[your URL here]" that must be replaced with your specific Salesforce domain.
000388735

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.