{"id":837,"date":"2021-03-16T17:51:05","date_gmt":"2021-03-16T17:51:05","guid":{"rendered":"http:\/\/morecpq.com\/?p=837"},"modified":"2021-03-16T17:51:07","modified_gmt":"2021-03-16T17:51:07","slug":"cpq-lookup-price-rule-step-by-step","status":"publish","type":"post","link":"https:\/\/morecpq.com\/index.php\/2021\/03\/16\/cpq-lookup-price-rule-step-by-step\/","title":{"rendered":"CPQ &#8211; Lookup Price Rule &#8211; Step by Step"},"content":{"rendered":"\n<p>Hello!  Here is a simple step by step of how to create a Lookup Price Rule!<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Create the Custom Object and its Fields.<ol><li>The best way to do this is to make a CSV with your columns and some sample values.  Then use the <a href=\"https:\/\/admin.salesforce.com\/blog\/2019\/lightning-object-creator-now-generally-available\" target=\"_blank\" rel=\"noreferrer noopener\">Lightning Object Creator<\/a> with your file to make the object.<\/li><\/ol><\/li><li>Price Rule Object<ol><li>Add New Custom Object API Name to Lookup Object field.<\/li><\/ol><\/li><li>Lookup Query Object<ol><li>Add API names of Quote Line fields to the &#8220;Tested Field&#8221; field.<\/li><li>Add API names of Lookup Object fields (fields you want to compare) to the &#8220;Lookup Field&#8221; field.<\/li><\/ol><\/li><li>Price Action Object<ol><li>Add API names of Quote Line fields (fields you want to pull values into from Lookup Object fields) to the &#8220;Target Field&#8221; field.<\/li><li>Make sure to update the dependency on the &#8220;Target Field&#8221; field to enable the new values you entered for the Quote Line object.<\/li><li>Add API names of Lookup Object fields (fields you want to pull values from into Quote Line fields) to the &#8220;Source Lookup Field&#8221; field.<\/li><\/ol><\/li><li>Create Lookup Price Rule<ol><li>Set Lookup Object field to API name of your Lookup Object.<\/li><li>Set Calculator Evaluation Event to &#8220;After Calculate&#8221;.<\/li><li>Create Lookup Query(s)<ol><li>There should be 1 Lookup Query per field comparison.<\/li><li>Set Match Type to &#8220;Field Value&#8221;.<\/li><li>Set Tested Field field to API name of the Quote Line field to compare.<\/li><li>Set Lookup Field field to API name of the Lookup Object field to compare.<\/li><li>Set Operator field to how you would like to compare the above two fields.<\/li><\/ol><\/li><li>Create Price Action(s)<ol><li>Set Target Field field to API name of the Quote Line field to inject the value into.<\/li><li>Set Source Lookup Field to the API name of the Lookup Object field to pull the value from.<\/li><\/ol><\/li><\/ol><\/li><\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Hello! Here is a simple step by step of how to create a Lookup Price Rule! Create the Custom Object and its Fields. The best way to do this is to make a CSV with your columns and some sample values. Then use the Lightning Object Creator with your file to make the object. Price &hellip;<br \/><a href=\"https:\/\/morecpq.com\/index.php\/2021\/03\/16\/cpq-lookup-price-rule-step-by-step\/\" class=\"more-link pen_button pen_element_default pen_icon_arrow_double\">Continue reading <span class=\"screen-reader-text\">CPQ &#8211; Lookup Price Rule &#8211; Step by Step<\/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-837","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\/837","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=837"}],"version-history":[{"count":1,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/837\/revisions"}],"predecessor-version":[{"id":838,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/posts\/837\/revisions\/838"}],"wp:attachment":[{"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/media?parent=837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/categories?post=837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/morecpq.com\/index.php\/wp-json\/wp\/v2\/tags?post=837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}