{"id":884,"date":"2021-04-17T15:59:04","date_gmt":"2021-04-17T15:59:04","guid":{"rendered":"http:\/\/morecpq.com\/?p=884"},"modified":"2023-11-30T13:17:51","modified_gmt":"2023-11-30T18:17:51","slug":"cpq-rollback-to-here","status":"publish","type":"post","link":"https:\/\/morecpq.com\/index.php\/2021\/04\/17\/cpq-rollback-to-here\/","title":{"rendered":"CPQ &#8211; Rollback to Here"},"content":{"rendered":"\n<p>Have you ever been testing some functionality you just built that works on renewals or amendments and you keep having to roll back to the original opp and\/or quote?  Does your client have a process that includes \u201cstarting over\u201d where they manually delete renewals, amendments, and the contract so it can all be regenerated?  Look no further!<\/p>\n\n\n\n<p>This is a bit of an edge case here and it\u2019s for a very specific usage but I needed it and so I made it.<\/p>\n\n\n\n<p>A &#8220;Rollback to Here&#8221; button on the Opp or Quote or Contract!  I think it would be most useful on the Opportunity but it was easy to make the other two buttons.<\/p>\n\n\n\n<p>The things included are: an APEX class, three Visualforce pages, and three custom buttons.<\/p>\n\n\n\n<p>You get install links!<br><a href=\"https:\/\/test.salesforce.com\/packaging\/installPackage.apexp?p0=04t4x000000lyEL\" data-type=\"URL\" target=\"_blank\" rel=\"noreferrer noopener\">Production<\/a> | <a href=\"https:\/\/test.salesforce.com\/packaging\/installPackage.apexp?p0=04t4x000000lyEL\" target=\"_blank\" rel=\"noreferrer noopener\">Sandbox<\/a><\/p>\n\n\n\n<p>Also!  Make sure to add these buttons to the appropriate page layouts!  They don&#8217;t just appear after installing&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever been testing some functionality you just built that works on renewals or amendments and you keep having to roll back to the original opp and\/or quote? Does your client have a process that includes \u201cstarting over\u201d where they manually delete renewals, amendments, and the contract so it can all be regenerated? Look &hellip;<br \/><a href=\"https:\/\/morecpq.com\/index.php\/2021\/04\/17\/cpq-rollback-to-here\/\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">CPQ &#8211; Rollback to Here<\/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-884","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\/884","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=884"}],"version-history":[{"count":27,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/884\/revisions"}],"predecessor-version":[{"id":2575,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/884\/revisions\/2575"}],"wp:attachment":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/media?parent=884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/categories?post=884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/tags?post=884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}