{"id":219,"date":"2024-02-09T20:04:41","date_gmt":"2024-02-09T20:04:41","guid":{"rendered":"https:\/\/www.martech-magic.com\/?p=219"},"modified":"2024-02-09T20:23:39","modified_gmt":"2024-02-09T20:23:39","slug":"executable-campaigns-token-context-ii","status":"publish","type":"post","link":"https:\/\/www.martech-magic.com\/index.php\/2024\/02\/09\/executable-campaigns-token-context-ii\/","title":{"rendered":"Executable Campaigns: Token Context II"},"content":{"rendered":"\n<p>We talked about the Parent Token Context of an Executable Campaign <a href=\"https:\/\/www.martech-magic.com\/index.php\/2023\/01\/12\/executable-campaign-what-does-inherit-token-context-mean\/\" data-type=\"post\" data-id=\"86\">recently<\/a>. Remember? It was this little switch:<\/p>\n\n\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"179\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-7.png\" alt=\"\" class=\"wp-image-220\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-7.png 1024w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-7-300x52.png 300w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-7-768x134.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Today, I was tasked to create a chain of Smart Campaigns where the executed campaign should write a value into a field based on a trigger token.<\/p>\n\n\n\n<p>First of all, we have to understand this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"402\" height=\"169\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-8.png\" alt=\"\" class=\"wp-image-221\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-8.png 402w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-8-300x126.png 300w\" sizes=\"auto, (max-width: 402px) 100vw, 402px\" \/><\/figure>\n\n\n\n<p>The trigger reacts to any form submit. The Flow Step writes the URL of the form page into the field &#8220;Last Form URL&#8221;. If you&#8217;re unfamiliar with trigger tokens, read more <a href=\"https:\/\/experienceleague.adobe.com\/docs\/marketo\/using\/product-docs\/marketo-sales-insight\/msi-for-salesforce\/features\/tabs-in-the-msi-panel\/interesting-moments\/trigger-tokens-for-interesting-moments.html?lang=en\">here<\/a>. (It&#8217;s a little unfortunate that Adobe named this page &#8220;Trigger Tokens for Interesting Moments&#8221;, as trigger tokens are by no means limited to Interesting Moments.)<\/p>\n\n\n\n<p>Okay, in this case above we want to write the page URL of the last form submit into a field. That works beautifully.<\/p>\n\n\n\n<p>But what if we wanted\/needed to do it differently? The trigger campaign is supposed to send a Sales Alert email, and that Sales Alert email is supposed to list that Last Form URL &#8211; to give Sales context &#8211; but the campaign that writes this value is centralized and somewhere else. Can we execute it?<\/p>\n\n\n\n<p>When we create an Executable Smart Campaign with this flow step, it looks like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"199\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-9-1024x199.png\" alt=\"\" class=\"wp-image-222\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-9-1024x199.png 1024w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-9-300x58.png 300w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-9-768x149.png 768w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-9.png 1030w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Well, sure. D&#8217;oh! We don&#8217;t have a trigger, as this campaign is executed. But: Can we do this?<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"493\" height=\"166\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-10.png\" alt=\"\" class=\"wp-image-223\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-10.png 493w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-10-300x101.png 300w\" sizes=\"auto, (max-width: 493px) 100vw, 493px\" \/><\/figure>\n\n\n\n<p>Will the switch on &#8220;Use Parent Campaign Token Context&#8221; hand down the trigger token to the executed campaign?<\/p>\n\n\n\n<p>And the answer, my friends, is yes. Once you execute the campaign the red squiggly lines vanish and the Smart Campaign works.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"101\" src=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-11-1024x101.png\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-11-1024x101.png 1024w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-11-300x30.png 300w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-11-768x76.png 768w, https:\/\/www.martech-magic.com\/wp-content\/uploads\/2024\/02\/image-11.png 1387w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Parent Token Context of an Executable Campaign means Program Tokens, right? Or is there more?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,8,15],"tags":[],"class_list":["post-219","post","type-post","status-publish","format-standard","hentry","category-forms","category-tipps-tricks","category-tokens","entry"],"_links":{"self":[{"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/posts\/219","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":2,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":226,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/posts\/219\/revisions\/226"}],"wp:attachment":[{"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martech-magic.com\/index.php\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}