The purpose of this Blog is to create Advance Approval Email template:
Follow the following steps to Create Advance approval Email Template:
- Create a Salesforce email request template.
- From Setup, in the Quick Find box, enter Communication Templates, and then select Classic Email Templates.
- Select New Template.
- Select Visualforce as the email template type, and then click Next.
- Enter your email template information. For this example, we’ll use “Request Template.”
- 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.
- Select Available For Use.
- Enter your email template name and template unique name.
- Choose your encoding, description, and email subject, and then set User as your recipient type.
- Set Related To Type to sbaa__Approval__c, and then save your changes.
- 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.
- Repeat this process for your rejection, approval, and recall templates.
- Create an Advanced Approval email template record.
- In your email templates object, click New.
- 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.”
- 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/
. - Click Save.
- 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> <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.
16 Comments
Excellent read, Positive site, I have read a few of the articles on your website now, and I really like your style.
ReplyDeleteThanks a million and please keep up the effective work and also get to know about best Salesforce Development Company
Thanks a lot for explaining practically. Really Appreciable!
ReplyDeleteSalesforce lightning development services
how to change the Sender Address in Advanced approval email templates.
ReplyDeleteI 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.
ReplyDeleteThanks for sharing valuable information. Also get to know about Salesforce Lightning Consultant
This comment has been removed by the author.
ReplyDeleteEnjoyed 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
ReplyDeleteGood Post. I like your blog. Thanks for Sharing
ReplyDeleteSalesforce Support and Maintenance Services
buy online Xanax 2mg
ReplyDeletebuy online cialis 20mg
ReplyDeleteThanks for Sharing this Information. Salesforce Training in Gurgaon
ReplyDeleteCMS Development
ReplyDelete
ReplyDeleteIf 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.
Buy Viagra super p-force online is commonly used for human to stimulate erection in body. Its known as Sildenafil commonly named Viagra.
ReplyDeleteReally appreciable, thanks for sharing this helpful information about Salesforce CPQ
ReplyDeleteGreat site, I've read a few of your pieces already, and I really enjoy your writing style. NareshIT
ReplyDeleteWe are thrilled to inform you that your quote approval has been successfully processed through Salesforce CPQ Advance Approval.
ReplyDeletehow to use watch any nfl game Your quote has been reviewed and given the green light for further action