{"id":3265,"date":"2022-03-13T14:44:06","date_gmt":"2022-03-13T14:44:06","guid":{"rendered":"https:\/\/reviewnprep.com\/blog\/?p=3265"},"modified":"2022-03-25T02:22:06","modified_gmt":"2022-03-25T02:22:06","slug":"cpq-salesforce-advance-approvals-email-setup","status":"publish","type":"post","link":"https:\/\/reviewnprep.com\/blog\/cpq-salesforce-advance-approvals-email-setup\/","title":{"rendered":"CPQ Salesforce &#8211; Advance Approvals Email Setup"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Overview<\/h1>\n\n\n\n<p>CQ Salesforce gives your sales team easy to use software, available on any device due to it\u2019s cloud based platform. Advanced Approvals requires several objects, buttons, and settings so that it can work with Salesforce CPQ.<\/p>\n\n\n\n<p>There are several requirements which requires multi-level approval before a record can move ahead with any other processing. CPQ Approvals uses approval rules to determine which approvers receive an approval request and the email template used to send the requests. Upon receiving request requested owner need to approve\/reject a record by logging into salesforce org.<\/p>\n\n\n\n<p>But in the real world one approver can receive requests for multiple records, this is where Advance approval plays a major role.<\/p>\n\n\n\n<p>Provides feature to approve or reject records by responding via email. This gives sales rep an amazing experience without having to login salesforce org every time. When an approver replies to an approval email, advance approval applies the response to a record.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>RELATED: <a href=\"https:\/\/reviewnprep.com\/marketplace\/details\/salesforce-certified-cpq-specialist---practice-test-wi22-\/86\/EXAM\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Salesforce CPQ Certification Practice Exams<\/a><\/p><\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Steps to Configure<\/h2>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Setup\u2192Email\u2192Deliverability\u2192Access Level\u2192<strong>All Email<\/strong>.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"736\" height=\"410\" src=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image.png\" alt=\"\" class=\"wp-image-3266\" srcset=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image.png 736w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-300x167.png 300w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-100x56.png 100w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-150x84.png 150w\" sizes=\"(max-width: 736px) 100vw, 736px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"2\"><li>Setup\u2192Email Service\u2192Define an email service.<ol start=\"1\" type=\"a\"><li>Select Apex class as <strong>ApprovalEmailHadler<\/strong>.<\/li><li>Accept Email From : We can define selected email domains as(<strong>gmail.com, yahoo.com<\/strong>).Make sure domains are separated by comma and space. This section can be kept as blank to accept all email domains.<\/li><li>Enable Active Flag.<\/li><li>In Failure Response settings<ol start=\"1\" type=\"i\"><li>Set a Bounce message for all the action fields.<\/li><li>Enable Error routing and set email address to receive error email notifications.<\/li><\/ol><\/li><li>Other settings can remain as-is.<\/li><\/ol><\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"848\" height=\"512\" src=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-1.png\" alt=\"\" class=\"wp-image-3267\" srcset=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-1.png 848w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-1-300x181.png 300w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-1-768x464.png 768w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-1-100x60.png 100w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-1-150x91.png 150w\" sizes=\"(max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"3\"><li>Setup\u2192Email Service\u2192Email Addresses<ol start=\"1\" type=\"a\"><li>Provide unique email address name<\/li><li>Enable Active Flag<\/li><li>Provide context user: User should have necessary permission required to access objects and fields used in email template.<\/li><li>Accept email from: Same as step 2.b<\/li><\/ol><\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"778\" height=\"248\" src=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-2.png\" alt=\"\" class=\"wp-image-3268\" srcset=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-2.png 778w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-2-300x96.png 300w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-2-768x245.png 768w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-2-100x32.png 100w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-2-150x48.png 150w\" sizes=\"(max-width: 778px) 100vw, 778px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"4\"><li>Setup \u2192 Installed packages\u2192Advance approval package\u2192Configure<\/li><\/ol>\n\n\n\n<p>Connect email service to advance approvals and set approval and rejection keywords.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Copy the address generated in step 3 field email address and paste under\u2192 Inbound Approval Email (Long) field.<\/li><li><strong>Approved Keyword<\/strong>: <strong><em>Approved,Approve,Yes<\/em><\/strong> (Comma delimited list of keywords.We can include more keywords as per choice).<\/li><li><strong>Rejected Keywords<\/strong>: <strong><em>Rejected,Reject,Decline,No<\/em><\/strong> (Comma delimited list of keywords.We can include more keywords as per choice).<\/li><li><strong>Approval Email Comments End Indicator<\/strong>: <strong><em>Blank Line<\/em><\/strong> .This field indicates how comments will be captured from email.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"936\" height=\"262\" src=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-3.png\" alt=\"\" class=\"wp-image-3269\" srcset=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-3.png 936w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-3-300x84.png 300w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-3-768x215.png 768w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-3-100x28.png 100w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-3-150x42.png 150w\" sizes=\"(max-width: 936px) 100vw, 936px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"5\"><li>Setup\u2192Classic Email Template<\/li><\/ol>\n\n\n\n<p>The email template must contain a reference to the ID of your approval record.Make sure to include below in your email template.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;p&gt; \u201cstyle=color:white\u201d \u201dapex:outputText\u201d value=\u201d{!relatedTo.ID}\u201d &lt;\/p&gt;<\/code><\/pre>\n\n\n\n<p>Also set Related To Type to <strong><em>sbaa__Approval__c<\/em><\/strong><\/p>\n\n\n\n<p>If we are missing this step then any approval or rejection comments will not be captured.<\/p>\n\n\n\n<p>Email Template sample:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;messaging:emailTemplate subject=\"oppapp2\" recipientType=\"User\"  relatedToType=\"sbaa__Approval__c\"&gt;\n   &lt;messaging:htmlEmailBody&gt;\n      &lt;html&gt;\n         Please approve\n         &lt;p style=\"color:white\"&gt;\n            &lt;apex:outputText value=\"{!relatedTo.ID}\"\/&gt;\n         &lt;\/p&gt;\n         &lt;a href=\"https:\/\/cpqsalesforc19-28d-dev-ed.lightning.force.com\/{!relatedTo.ID}\"&gt;Visit Opportunity!&lt;\/a&gt;\n      &lt;\/html&gt;\n   &lt;\/messaging:htmlEmailBody&gt;\n&lt;\/messaging:emailTemplate&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Demonstration Steps<\/h2>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Preview approval on record satisfying approval rule. Here we have built a simple approval rule on opportunity record. Click on Submit for Approval.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"910\" height=\"176\" src=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-4.png\" alt=\"\" class=\"wp-image-3270\" srcset=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-4.png 910w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-4-300x58.png 300w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-4-768x149.png 768w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-4-100x19.png 100w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-4-150x29.png 150w\" sizes=\"(max-width: 910px) 100vw, 910px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\" start=\"2\"><li>Check for approval requests in email.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"934\" height=\"232\" src=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-5.png\" alt=\"\" class=\"wp-image-3271\" srcset=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-5.png 934w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-5-300x75.png 300w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-5-768x191.png 768w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-5-100x25.png 100w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-5-150x37.png 150w\" sizes=\"(max-width: 934px) 100vw, 934px\" \/><\/figure>\n\n\n\n<p>3.Respond to approval email in below format. It should be keyword followed by comments if any<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"890\" height=\"236\" src=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-6.png\" alt=\"\" class=\"wp-image-3272\" srcset=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-6.png 890w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-6-300x80.png 300w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-6-768x204.png 768w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-6-100x27.png 100w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-6-150x40.png 150w\" sizes=\"(max-width: 890px) 100vw, 890px\" \/><\/figure>\n\n\n\n<p>4.Verify Approval Record is now approved, Approved by and comments are captured.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"534\" src=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-7.png\" alt=\"\" class=\"wp-image-3273\" srcset=\"https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-7.png 920w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-7-300x174.png 300w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-7-768x446.png 768w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-7-100x58.png 100w, https:\/\/reviewnprep.com\/blog\/wp-content\/uploads\/2022\/03\/image-7-150x87.png 150w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/figure>\n\n\n\n<p>So, there you have it. You&#8217;ve successfully learnt how to set up Salesforce CPQ-Advance Approvals Email. <\/p>\n\n\n\n<p><strong>Written exclusively for ReviewNPrep by <\/strong><\/p>\n\n\n\n<p>&#8211; <a href=\"https:\/\/www.linkedin.com\/in\/priyanka-borode-313535118\/\" target=\"_blank\" rel=\"noreferrer noopener\">Priyanka Borode<\/a> (3x Salesforce Certified and Oracle Siebel Consultant)<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>FURTHER READING &#8211; <a href=\"https:\/\/reviewnprep.com\/blog\/salesforce-admin-certification-preparation\" target=\"_blank\" rel=\"noreferrer noopener\">Salesforce admin certification tips, resources, and more helpful information.<\/a><\/p><\/blockquote>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>CPQ Salesforce, or Configure, Price, Quote Software by Salesforce is a sales tool for companies to provide accurate pricing with any given product configuration scenario.<\/p>\n","protected":false},"author":1,"featured_media":3275,"comment_status":"open","ping_status":"open","sticky":true,"template":"","format":"standard","meta":{"footnotes":""},"categories":[106],"tags":[107,277],"class_list":["post-3265","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-salesforce","tag-salesforce","tag-salesforce-cpq"],"_links":{"self":[{"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/posts\/3265"}],"collection":[{"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/comments?post=3265"}],"version-history":[{"count":5,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/posts\/3265\/revisions"}],"predecessor-version":[{"id":3475,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/posts\/3265\/revisions\/3475"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/media\/3275"}],"wp:attachment":[{"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/media?parent=3265"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/categories?post=3265"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reviewnprep.com\/blog\/wp-json\/wp\/v2\/tags?post=3265"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}