{"id":525,"date":"2020-02-07T22:17:41","date_gmt":"2020-02-07T22:17:41","guid":{"rendered":"http:\/\/morecpq.com\/?p=525"},"modified":"2024-06-28T10:52:28","modified_gmt":"2024-06-28T14:52:28","slug":"salesforce-cpq-pull-quote-line-groups-into-renewals-and-amendments","status":"publish","type":"post","link":"https:\/\/morecpq.com\/index.php\/2020\/02\/07\/salesforce-cpq-pull-quote-line-groups-into-renewals-and-amendments\/","title":{"rendered":"Salesforce CPQ &#8211; Pull Quote Line Groups into Renewals and Amendments"},"content":{"rendered":"\n<p class=\"has-normal-font-size\">Hello!  If you&#8217;re here, you&#8217;re looking for how to pull groups into your amendments and\/or renewals!  You might have come from the <a href=\"https:\/\/success.salesforce.com\/ideaView?id=0873A000000CQpOQAW\">Salesforce Idea<\/a> page or perhaps google search&#8230;.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><strong>App Exchange<\/strong><\/h2>\n\n\n\n<p>This package is now on the <a href=\"https:\/\/appexchange.salesforce.com\/appxListingDetail?listingId=3dcb7ccb-2182-4197-b90a-cc364264462a\" target=\"_blank\" rel=\"noreferrer noopener\">AppExchange<\/a>!  Go install it!<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-medium-font-size\"><strong>Demo<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls poster=\"https:\/\/morecpq.com\/wp-content\/uploads\/2020\/02\/Snip-Edit-Post-Salesforce-CPQ-\u2013-Pull-Quote-Line-Groups-into-Renewals-an.png\" src=\"https:\/\/morecpq.com\/wp-content\/uploads\/2023\/09\/soq-zarm-dpw-2023-09-25-19_34-GMT-4.mp4\"><\/video><\/figure>\n\n\n\n<p class=\"has-normal-font-size\">There is a checkbox field, a trigger and a Price Rule involved.  Fear not!  All of it is right here.<\/p>\n\n\n\n<p class=\"has-small-font-size\"><em><strong><span style=\"text-decoration: underline;\">Please NOTE<\/span><\/strong>:  The Custom Checkbox field and Price Rule are to get around a &#8220;Legacy Renewal Service&#8221; issue.  If you have the Legacy Renewal Service turned on, CPQ will not let the trigger set the Group Line Items field on the Quote object.  So we set a custom version of this field (Has_Groups__c) to TRUE and then the Price Rule conditions on this custom field and checks the Group Line Items CPQ field on the Quote.  If this Price Rule does not run, you will get a forever spinning &#8220;waiting&#8221; dots image because of a javascript error.  Essentially, there are groups on the quote but the line editor doesn&#8217;t think there is because the checkbox is unchecked so it kabooms and waits forever.<\/em><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Price Rule<\/strong><\/h2>\n\n\n\n<p>This Price Rule is only for the legacy Renewal service (see the second note at the top). The new Renewal service does not have an issue with setting the Grouped Line Items checkbox on Quote but the legacy service does. We have no idea which service you&#8217;re using so this solution accommodates both!<\/p>\n\n\n\n<p>Price Rule Name: Quote \u2013 Inject TRUE to Group Line Items<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"767\" height=\"233\" src=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-26.png?resize=767%2C233&#038;ssl=1\" alt=\"\" class=\"wp-image-971\" srcset=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-26.png?w=767&amp;ssl=1 767w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-26.png?resize=300%2C91&amp;ssl=1 300w\" sizes=\"(max-width: 767px) 100vw, 767px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"940\" height=\"134\" src=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-27.png?resize=940%2C134&#038;ssl=1\" alt=\"\" class=\"wp-image-972\" srcset=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-27.png?resize=1024%2C146&amp;ssl=1 1024w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-27.png?resize=300%2C43&amp;ssl=1 300w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-27.png?resize=768%2C110&amp;ssl=1 768w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-27.png?w=1213&amp;ssl=1 1213w\" sizes=\"(max-width: 940px) 100vw, 940px\" \/><\/figure><a name=\"Special Fields\"><\/a>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"802\" height=\"142\" src=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-28.png?resize=802%2C142&#038;ssl=1\" alt=\"\" class=\"wp-image-973\" srcset=\"https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-28.png?w=802&amp;ssl=1 802w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-28.png?resize=300%2C53&amp;ssl=1 300w, https:\/\/i0.wp.com\/morecpq.com\/wp-content\/uploads\/2021\/04\/image-28.png?resize=768%2C136&amp;ssl=1 768w\" sizes=\"(max-width: 802px) 100vw, 802px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Special Fields<\/strong><\/h2>\n\n\n\n<p>Here are some special fields you can create to get more control over when you pull line groups into renewals and amendments.  They can be formula fields or editable checkboxes.  You can then apply your own logic to determine when to pull groups.  <\/p>\n\n\n\n<p><strong><em>Note: if these fields do not exist, the system will pull groups into renewals and amendments, respectively, all of the time.<\/em><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th><strong>Field<\/strong><\/th><th><strong>Object\/<\/strong><strong>Location<\/strong><\/th><th><strong>Data Type<\/strong><\/th><th><strong>Description<\/strong><\/th><\/tr><\/thead><tbody><tr><th>Pull_Line_Groups_Renewals<\/th><td>Contract<\/td><td>Checkbox<\/td><td>Create a checkbox field!  This can be a formula field or editable field.  When checked, CPQ will pull Quote Line Groups from the original contract into your renewal Quotes.<\/td><\/tr><tr><th>Pull_Line_Groups_Amendments<\/th><td>Contract<\/td><td>Checkbox&nbsp;<\/td><td>Create a checkbox field!  This can be a formula field or editable field.  When checked, CPQ will pull Quote Line Groups from the original contract into your amendment Quotes.<\/td><\/tr><\/tbody><\/table><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Hello! If you&#8217;re here, you&#8217;re looking for how to pull groups into your amendments and\/or renewals! You might have come from the Salesforce Idea page or perhaps google search&#8230;. App Exchange This package is now on the AppExchange! Go install it! Demo There is a checkbox field, a trigger and a Price Rule involved. Fear &hellip;<br \/><a href=\"https:\/\/morecpq.com\/index.php\/2020\/02\/07\/salesforce-cpq-pull-quote-line-groups-into-renewals-and-amendments\/\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">Salesforce CPQ &#8211; Pull Quote Line Groups into Renewals and Amendments<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-525","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/comments?post=525"}],"version-history":[{"count":102,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/525\/revisions"}],"predecessor-version":[{"id":2761,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/525\/revisions\/2761"}],"wp:attachment":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/media?parent=525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/categories?post=525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/tags?post=525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}