Ad Code

Responsive Advertisement

Salesforce CPQ Advance Approval Email Template

 The purpose of this Blog is to create Advance Approval Email template:


Follow the following steps to Create Advance approval Email Template:

  1. Create a Salesforce email request template.
    1. From Setup, in the Quick Find box, enter Communication Templates, and then select Classic Email Templates.
    2. Select New Template.
    3. Select Visualforce as the email template type, and then click Next.
    4. Enter your email template information. For this example, we’ll use “Request Template.”
    5. Choose the folder where you want to store your email template.
      Make sure that the folder is publicly accessible if you want your email template to be publicly accessible.
    6. Select Available For Use.
    7. Enter your email template name and template unique name.
    8. Choose your encoding, description, and email subject, and then set User as your recipient type.
    9. Set Related To Type to sbaa__Approval__c, and then save your changes.
    10. In your template, click Edit Template to add the text and any markup that you want to show in your approval email. The email template must contain a reference to the ID of your approval record.
      Because users don’t have to see this code, you can add style tags so that the text doesn’t appear on the approval email. We recommend styling the code’s text color as white, because most emails have a white background color. Write your code as follows: <p> “style=color:white” ”apex:outputText” value=”{!relatedTo.ID}” </p> . see below point no. 3 for more Sample Email template.
    11. Repeat this process for your rejection, approval, and recall templates.
  2. Create an Advanced Approval email template record.
    1. In your email templates object, click New.
    2. Enter your email template name.
      Because you’re connecting this approval template to the template you made in Step 1, you can name it “Approval Request Template.”
    3. In the Template ID field, enter the ID of the Salesforce request template you made in Step 1.
      You can find the ID by going to your Salesforce approval request template, finding the URL in your browser, and copying the string of numbers and letters after salesforce.com/.
    4. Click Save.
  3. The following Email Template sample can be referenced. This sample includes :

<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>&nbsp;<apex:outputLink value="https://[your URL here]/{!relatedTo.Quote__r.Id}" >{!relatedTo.Quote__r.Name}</apex:outputLink></p>

<p><b>Opportunity Name:</b>&nbsp;<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>&nbsp;<apex:outputField value=" {!relatedTo.Quote__r.SBQQ__NetAmount__c}"/></p>

<p><b>Payment Terms:</b>&nbsp;<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.

Reactions

Post a Comment

16 Comments

  1. Excellent read, Positive site, I have read a few of the articles on your website now, and I really like your style.
    Thanks a million and please keep up the effective work and also get to know about best Salesforce Development Company

    ReplyDelete
  2. how to change the Sender Address in Advanced approval email templates.

    ReplyDelete
  3. I am very ecstatic when I am reading this blog post because it is written in a good manner and the writing topic for the blog is excellent.
    Thanks for sharing valuable information. Also get to know about Salesforce Lightning Consultant

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Enjoyed reading the article above, really explains everything in detail, the article is very inter sting and effective. Thank you and good luck for the upcoming articles Oracle soa certification

    ReplyDelete

  6. If that is what one’s life is, 
    Tramadol 50 mg order online is the answer to your prayers. As effective as it is in relieving pain, it does come with some side effects, so stay alert to symptoms of dizziness, drowsiness, blurred vision, sleep problems, agitation, anxiety, constipation, diarrhea, hallucination, nausea, tremor, vomiting, and diaphoresis.

    ReplyDelete
  7. Buy Viagra super p-force online is commonly used for human to stimulate erection in body. Its known as Sildenafil commonly named Viagra.

    ReplyDelete
  8. Really appreciable, thanks for sharing this helpful information about Salesforce CPQ

    ReplyDelete
  9. Great site, I've read a few of your pieces already, and I really enjoy your writing style. NareshIT

    ReplyDelete
  10. We are thrilled to inform you that your quote approval has been successfully processed through Salesforce CPQ Advance Approval.
    how to use watch any nfl game Your quote has been reviewed and given the green light for further action

    ReplyDelete