<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Martin P. Lopez — Writing</title><description>Independent Dynamics 365 Architect and Customer Insights expert, specialized in Customer Insights – Journeys. I help marketing teams at medium-to-large enterprises ship CI-J properly.</description><link>https://martinplopez.com/</link><language>en</language><atom:link href="https://martinplopez.com/rss.xml" rel="self" type="application/rss+xml"/><item><title>Can Copilot Cowork Build Customer Insights Journeys? My First Tests</title><link>https://martinplopez.com/writing/cij-skills-cowork/</link><guid isPermaLink="true">https://martinplopez.com/writing/cij-skills-cowork/</guid><description>I put the new Customer Insights skills in Copilot Cowork to work on real Journeys tasks. Here&apos;s what worked, where it broke and what it cost.</description><pubDate>Fri, 13 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;What if you could ask an AI agent to create a complete nurture journey in Customer Insights - Journeys, including emails, personalization and A/B testing?&lt;/p&gt;
&lt;p&gt;That’s what I wanted to find out when Microsoft introduced the new Customer Insights skills for Copilot Cowork.&lt;/p&gt;
&lt;p&gt;I put them to work on real marketing tasks: &lt;strong&gt;fixing email publishing errors, creating personalized emails, and building a three-step nurture journey&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Some things worked surprisingly well. Others required a bit of creativity (and patience 😅).&lt;/p&gt;
&lt;p&gt;Here’s what I learned, where Cowork still struggles, and how much the experiments actually cost.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Microsoft has released Customer Insights skills for Copilot Cowork. They let an agent read Customer 360 profiles, create and publish emails and journeys in Customer Insights - Journeys, and review email copy against your brand.&lt;/p&gt;
&lt;p&gt;To use them you need a Microsoft 365 Copilot license, a Customer Insights license, the Dataverse MCP server enabled and &lt;strong&gt;Copilot credits, which are billed on top of your licenses&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In my tests, Cowork &lt;strong&gt;found and fixed publish blockers, created emails with dynamic content and built a three-step nurture journey with an A/B test&lt;/strong&gt;. It &lt;strong&gt;couldn’t edit emails or journeys it didn’t create, and it couldn’t send test emails&lt;/strong&gt;. When it got stuck, breaking the task into smaller steps or asking for a new copy usually worked.&lt;/p&gt;
&lt;p&gt;Both test sessions together cost about &lt;strong&gt;1,200 Copilot credits (around $12)&lt;/strong&gt;. It’s like a capable intern who’s new to Dynamics: useful already, as long as you know Customer Insights well enough to guide it.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-microsoft-copilot-cowork&quot;&gt;Why Microsoft Copilot Cowork?&lt;/h2&gt;
&lt;p&gt;Many of you might not be familiar with the different Copilot products from Microsoft. They have different capabilities and are integrated differently with other tools.&lt;/p&gt;
&lt;p&gt;Cowork is an agentic mode of Microsoft 365 Copilot: instead of answering one question at a time, &lt;strong&gt;it plans a task and carries out multiple steps from a single prompt&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./copilot-cowork.jpg&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Microsoft 365 Copilot hero artwork from the Copilot Cowork announcement&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;
&lt;em&gt;Image: Microsoft&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This is what makes it different from a normal Copilot chat: it can connect different tools and plugins as it sees fit to get the job done.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-do-we-need-to-make-it-work&quot;&gt;What do we need to make it work?&lt;/h2&gt;
&lt;p&gt;To be able to use this tool you’ll need a few things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A Dynamics 365 Customer Insights environment - Data, Journeys, or both.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The Dataverse MCP server enabled&lt;/strong&gt; for that environment. Without it, Cowork struggles to find the right segments or emails. If you need a bit of help with this, &lt;a href=&quot;https://learn.microsoft.com/en-us/power-apps/maker/data-platform/data-platform-mcp-disable&quot;&gt;here’s an article&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;A Microsoft 365 Copilot license, which gives you access to Cowork.&lt;/li&gt;
&lt;li&gt;The appropriate Dynamics 365 Customer Insights license. The plugin is available to Cowork users, but only users licensed for Customer Insights can use it to reach Customer Insights data.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Copilot Credits.&lt;/strong&gt; Copilot Cowork uses usage-based billing, which means that each request costs you Copilot credits. You can buy a capacity pack or set up pay-as-you-go billing.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So this tool is &lt;strong&gt;not included in your Copilot license or Customer Insights Journeys.&lt;/strong&gt; Mind that every use will cost you something.&lt;/p&gt;
&lt;h2 id=&quot;setup-and-first-prompts&quot;&gt;Setup and first prompts&lt;/h2&gt;
&lt;p&gt;To set up, I just followed the Microsoft article, where you &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/use-customer-insights-copilot-cowork-skills#enable-the-plugin&quot;&gt;activate the plugin&lt;/a&gt;. In my experience, &lt;strong&gt;I couldn’t find the setting to choose the environment&lt;/strong&gt; to connect to. So if you don’t see it, don’t panic: you’ll get asked in the process, or you can tell Cowork in your request by sending a link to the Customer Insights environment you use.&lt;/p&gt;
&lt;p&gt;So far, Microsoft doesn’t give us &lt;strong&gt;all the functionality of Customer Insights&lt;/strong&gt;, but it gives us a few tools:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot;&gt;
























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Skill&lt;/th&gt;&lt;th&gt;What it does&lt;/th&gt;&lt;th&gt;Typical request&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Customer brief and value metrics&lt;/td&gt;&lt;td&gt;Resolves one unified Customer Insights - Data profile, then returns the segment memberships, computed measures, model predictions, household or cluster membership, or the complete Customer 360. Read-only.&lt;/td&gt;&lt;td&gt;“Show me everything we know about this customer.”&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Customer outreach&lt;/td&gt;&lt;td&gt;Resolves marketing segments and audiences in Customer Insights - Journeys, applies the consent gate, creates and publishes emails and customer journeys.&lt;/td&gt;&lt;td&gt;“Create a journey that emails this segment after a form submission.”&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Email content advisor&lt;/td&gt;&lt;td&gt;Reads the org’s brand profiles and recently sent emails, reviews or drafts marketing email copy against them, and runs the publish-readiness check.&lt;/td&gt;&lt;td&gt;“Does this email match our brand, and will it publish?”&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h2 id=&quot;my-use-cases&quot;&gt;My use cases&lt;/h2&gt;
&lt;p&gt;Copilot Cowork is not a well-oiled machine, &lt;strong&gt;it requires you to give it some love&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;What do I mean exactly by this? At the moment, I think this tool is very capable, but it will help more if you know Customer Insights and how it works.&lt;/p&gt;
&lt;p&gt;Some things worked but others didn’t, and when they didn’t, &lt;strong&gt;the errors don’t tell you much&lt;/strong&gt;. Saying “try again” has some chance of working, but mostly doesn’t.&lt;/p&gt;
&lt;p&gt;In my experience, what worked best is to &lt;strong&gt;think of Cowork as an intern who is quite new to Dynamics&lt;/strong&gt;. It’ll sometimes tell you “I can’t do this”, but not because it can’t: it needs help on how to do it.&lt;/p&gt;
&lt;p&gt;Here are some examples of what worked and what didn’t:&lt;/p&gt;
&lt;h3 id=&quot;why-wont-the-email-1-publish-in-customer-insights-journeys-list-each-blocker-and-how-to-fix-it&quot;&gt;Why won’t the “Email 1” publish in Customer Insights Journeys? List each blocker and how to fix it&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;This worked like a charm.&lt;/strong&gt; I left an email without a subject on purpose, and it detected it and gave me instructions on how to fix it:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork listing the missing subject line as a publish blocker, with steps to fix it&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;So I prompted again for it to solve it:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork adding the missing subject line to the email&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Full of confidence, I decided it was ready to add some content to my email, so of course I asked it to find something and add it to the body of the email:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork failing to edit the body of an existing email&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;So here I learnt that &lt;strong&gt;editing something it didn’t create is not so straightforward&lt;/strong&gt;. You need to help it and ask for something different. In this case I told it to create a draft email with the results, and when I verified it (in a Word document it created perfectly) I told it to create the email in Dynamics using the custom template we have for emails:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork creating a new email from the custom template after step-by-step instructions&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;But I needed to know where the limit was, so I asked it to send me a test of the newly created email. &lt;strong&gt;Sadly, this doesn’t work (yet 😉)&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork explaining that it can&amp;#x27;t send test emails&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;But what about dynamic content? Dynamics is normally great at this, so I gave it a try:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Email created by Cowork with dynamic personalization placeholders&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;And to end the test, I asked it to make the emails ready to publish, &lt;strong&gt;which it did perfectly&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image7.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork setting the emails to ready to send&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;For these tasks (and a few more, as it put the dynamic placeholders where I didn’t want them) the total cost of Copilot Cowork was &lt;strong&gt;451 Copilot credits&lt;/strong&gt;, which at the pay-as-you-go rate of $0.01 per credit is about $4.51 (CHF 3.60–3.70).&lt;/p&gt;
&lt;h3 id=&quot;create-a-three-step-nurture-journey-that-sends-the-welcome-email-after-a-form-submission&quot;&gt;Create a three-step nurture journey that sends the welcome email after a form submission&lt;/h3&gt;
&lt;p&gt;Here I had some trouble because I didn’t have the welcome email or the follow-up emails yet.&lt;/p&gt;
&lt;p&gt;It created the welcome email nicely, with dynamic content, and it published without problems.&lt;/p&gt;
&lt;p&gt;The problems came when creating the 2 follow-up emails. Cowork wrote very good drafts for my use case, but when it tried to create them in Customer Insights…&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image8.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork failing to create the follow-up emails in Customer Insights&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;This little thing entertained me more than I’d like to admit, as there were very few things I could change to make it work. But I started noticing that &lt;strong&gt;it only asked for permission once to create the emails&lt;/strong&gt;, so I gave this a try:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image9.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork creating the emails one at a time after being asked to do them sequentially&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;From that point on, it’s been smooth sailing: &lt;strong&gt;whenever it gets stuck, I just try to simplify the task&lt;/strong&gt;. After creating the emails, modifying them and publishing them, I asked it to create the journey (and yes, it even gave me the link 😉):&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image10.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork confirming the nurture journey was created, with a link to it&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;So let’s see how far it can go with journeys. I told it to create a second version of the follow-up email and add an A/B test to the journey, but &lt;strong&gt;editing an existing journey is not mentioned in the skills&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image11.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork explaining that it can&amp;#x27;t edit an existing journey&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;But we know it can create journeys, so asking it to &lt;strong&gt;create a copy with the changes&lt;/strong&gt; shouldn’t be that difficult:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image12.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cowork creating a new journey with the A/B test included&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;I have to admit I edited the trigger of the journey in the process, because I wanted to use a certain trigger and I didn’t know what it was called, but I’m positive it could have done it perfectly. &lt;strong&gt;This was the only manual action I took&lt;/strong&gt; in this process.&lt;/p&gt;
&lt;p&gt;The cost of these tasks (creating 4 emails + a nurture journey with A/B testing) was &lt;strong&gt;776 Copilot credits&lt;/strong&gt;, about $7.76 (CHF 6.20–6.35).&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-did-it-cost&quot;&gt;What did it cost?&lt;/h2&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot;&gt;
























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Experiment&lt;/th&gt;&lt;th&gt;Copilot credits&lt;/th&gt;&lt;th&gt;Approx. cost&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Email publishing, creation and personalization&lt;/td&gt;&lt;td&gt;451&lt;/td&gt;&lt;td&gt;$4.51 (CHF 3.60–3.70)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Nurture journey and A/B testing&lt;/td&gt;&lt;td&gt;776&lt;/td&gt;&lt;td&gt;$7.76 (CHF 6.20–6.35)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Total&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;1,227&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;$12.27 (CHF 9.80–10.05)&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;These costs reflect my specific test sessions, including retries and failed attempts. They’re not necessarily representative of what the same tasks would cost in another environment.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;After these experiments, I think Copilot Cowork has real potential to change how marketing teams work with Customer Insights - Journeys.&lt;/p&gt;
&lt;p&gt;It successfully created personalized emails, fixed publishing issues, and built a nurture journey with A/B testing. That’s impressive for a capability that’s still in its early stages.&lt;/p&gt;
&lt;p&gt;But it’s not something I’d leave running without supervision just yet.&lt;/p&gt;
&lt;p&gt;The biggest lesson for me was that &lt;strong&gt;knowing Customer Insights still makes a huge difference&lt;/strong&gt;. When Cowork got stuck, understanding what it was trying to do helped me find another way to achieve the same result.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Breaking complex tasks into smaller steps was particularly effective.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And that’s why I like thinking of Cowork as an intern who’s new to Dynamics: capable of doing useful work, but still needing guidance from someone who knows the platform.&lt;/p&gt;
&lt;p&gt;Another interesting possibility is &lt;strong&gt;building custom skills to package these workarounds&lt;/strong&gt; into reusable instructions. Imagine teaching Cowork to create emails sequentially whenever a task involves multiple emails, instead of having to explain it every time.&lt;/p&gt;
&lt;p&gt;For now, I see Cowork as &lt;strong&gt;a promising assistant for marketing operations rather than a replacement for an experienced consultant&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I’m excited to see how it evolves, and I’ll definitely keep experimenting with it! 😊&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Microsoft Copilot Cowork</category><category>Marketing Automation</category><category>Power Platform</category></item><item><title>From Semicolons to Structured Lists: Better Double Opt-In Emails in Customer Insights - Journeys</title><link>https://martinplopez.com/writing/doi-email-cij/</link><guid isPermaLink="true">https://martinplopez.com/writing/doi-email-cij/</guid><description>Learn how to customize double opt-in emails in Customer Insights - Journeys using a synchronous Dataverse plugin, without relying on Power Automate delays. Includes implementation details, deployment guidance, and performance tests.</description><pubDate>Fri, 30 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A client recently asked me to improve their double opt-in confirmation email. It showed all the topics from the form as one line of text separated by semicolons. It was difficult to read, so they wanted it to be in a &lt;strong&gt;structured list&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I found &lt;a href=&quot;https://www.ameyholden.com/articles/show-topics-in-double-opt-in-confirmation-email&quot;&gt;the article by Amy Holden&lt;/a&gt;, which builds on an earlier solution by &lt;a href=&quot;https://paulinekolde.info/customize-double-opt-in-dynamics365-customer-insights&quot;&gt;Pauline Kolde&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I liked the approach, but I wanted to avoid relying on an asynchronous Power Automate flow and adding a wait step to the journey.&lt;/p&gt;
&lt;p&gt;So I decided to try something different: a &lt;strong&gt;synchronous Dataverse plugin&lt;/strong&gt; that prepares the consent information directly when the Field Submission records are saved.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Customer Insights - Journeys can include selected consent topics in double opt-in emails, but the default presentation isn’t particularly readable.&lt;/p&gt;
&lt;p&gt;Inspired by solutions from Amy Holden and Pauline Kolde, I built a &lt;strong&gt;synchronous Dataverse plugin&lt;/strong&gt; that extracts consent information from Field Submission records and stores it in plain columns for email personalization.&lt;/p&gt;
&lt;p&gt;Unlike an asynchronous Power Automate flow, the plugin processes each record within its Dataverse transaction, avoiding an additional flow execution and update. I also tested the solution with batches of up to 1,000 form submissions, with the &lt;strong&gt;expected topics appearing in every tested email&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The plugin and solution files are available on GitHub.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-does-this-problem-arise&quot;&gt;Why does this problem arise?&lt;/h2&gt;
&lt;p&gt;Customer Insights - Journeys provides a built-in double opt-in process. When enabled, Microsoft automatically creates a confirmation email and a journey that sends it after a customer submits an eligible marketing form.&lt;/p&gt;
&lt;p&gt;The confirmation email can include the purposes and topics the customer selected, such as newsletters, events, or product updates.&lt;/p&gt;
&lt;p&gt;The problem? By default, these selections are displayed as &lt;strong&gt;a single line of text separated by semicolons&lt;/strong&gt;. Although the information is there, it isn’t particularly easy for customers to read.&lt;/p&gt;
&lt;p&gt;Here’s an example:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Very ugly Double Opt-In Email&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-can-we-do-to-make-it-easier-for-our-customers&quot;&gt;What can we do to make it easier for our customers?&lt;/h2&gt;
&lt;p&gt;To make it easier for our customers, we can implement the logic described in &lt;a href=&quot;https://www.ameyholden.com/articles/show-topics-in-double-opt-in-confirmation-email&quot;&gt;the article by Amy Holden&lt;/a&gt;, in which she creates &lt;strong&gt;new columns on the ‘Field Submission’ table&lt;/strong&gt;. This solution will allow us to set the fields that we want to select in the right order and show exactly the title of the topic that the customer agreed on in a very nice way.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Looking good!&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;To implement this logic of getting only the fields of consent, she also built a Power Automate flow, which requires a lot of steps to be able to get a clean state. It is also more difficult to monitor, in my opinion.&lt;/p&gt;
&lt;p&gt;But the real problem comes when &lt;strong&gt;we have to wait until the Power Automate flow runs before sending the email&lt;/strong&gt;, because otherwise the fields could be sending an email with the previous fields not filled out. This means that, as the Power Automate flow is an async process, we cannot trigger the email knowing that the flow has completed for sure.&lt;/p&gt;
&lt;p&gt;The only way to get around this limitation is using a &lt;strong&gt;sync process option in Dataverse&lt;/strong&gt;: either via a custom workflow action or a plugin in code. Luckily, the logic for this in Power Automate is quite easy to do in a plugin, so I will be taking this approach.&lt;/p&gt;
&lt;p&gt;But let’s take a look at the different characteristics of each solution:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot;&gt;












































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;&lt;/th&gt;&lt;th&gt;Plugin&lt;/th&gt;&lt;th&gt;Power Automate flow&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Timing&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Runs synchronously, in the same transaction that saves the row, so the values exist as soon as the row is committed&lt;/td&gt;&lt;td&gt;Runs asynchronously, seconds to minutes later, so the article needs a 1-minute journey wait&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Writes&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Changes the row before it’s saved, so no extra update&lt;/td&gt;&lt;td&gt;One extra update call per consent row&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Moving parts&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Two plain columns and one assembly&lt;/td&gt;&lt;td&gt;Flow, connection references, a connection owner, and formula columns plus lookups (formula columns can’t parse JSON)&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Failure behaviour&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Chosen in code: log the error and carry on&lt;/td&gt;&lt;td&gt;Failed runs show up only if someone checks run history&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Licensing and limits&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Runs on the platform, with no flow runs or API request limits used&lt;/td&gt;&lt;td&gt;Each submission uses flow runs and API requests&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Deployment&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;One solution, deployed by script to any environment with any prefix&lt;/td&gt;&lt;td&gt;Connections have to be re-bound in each environment&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;strong&gt;Trade-off&lt;/strong&gt;&lt;/td&gt;&lt;td&gt;Needs C#, a strong-name key and plugin registration, which makes it harder for makers to change&lt;/td&gt;&lt;td&gt;Anyone can open and edit it with low-code tools&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h2 id=&quot;implementing-the-plugin&quot;&gt;Implementing the Plugin&lt;/h2&gt;
&lt;p&gt;The plugin runs synchronously in the PreOperation stage, allowing it to &lt;strong&gt;populate the additional columns before each Field Submission record is saved&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This eliminates the need for a separate Power Automate flow to process the consent information. However, I discovered during testing that Customer Insights - Journeys sometimes &lt;strong&gt;populates consent values through subsequent updates&lt;/strong&gt; rather than during the initial creation.&lt;/p&gt;
&lt;p&gt;For that reason, the plugin &lt;strong&gt;handles both Create and Update operations&lt;/strong&gt;. This ensures the additional columns are populated whenever the relevant consent values are written.&lt;/p&gt;
&lt;p&gt;But how did we implement this logic? Let’s take a look.&lt;/p&gt;
&lt;h3 id=&quot;1-how-the-plugin-works&quot;&gt;1. How the plugin works&lt;/h3&gt;
&lt;p&gt;The problem. When someone submits a marketing form, Journeys stores each consent checkbox as a Field Submission row (msdynmkt_marketingfieldsubmission). The field value is a JSON blob holding the topic ID, the opt-in state and the checkbox label. The email designer &lt;strong&gt;can’t read JSON&lt;/strong&gt;, so it can’t turn those rows into a readable list.&lt;/p&gt;
&lt;p&gt;What the plugin does about it. It runs inside Dataverse whenever a Field Submission row is created or updated. For each row it:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Skips anything that isn’t a consent field (consentsubmissionvalues).&lt;/li&gt;
&lt;li&gt;Reads the JSON and skips purpose consents such as general commercial consent. Only topics (newsletters) count.&lt;/li&gt;
&lt;li&gt;Takes the checkbox label the visitor actually saw and cuts it at the first :. For example, “Coffee Courses: last offers on our courses of…” becomes “Coffee Courses”.&lt;/li&gt;
&lt;li&gt;Writes two plain columns on the same row: Consent Name (text) and Opted In (yes/no).&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;2-understanding-and-customizing-the-plugin&quot;&gt;2. Understanding and customizing the plugin&lt;/h3&gt;
&lt;p&gt;I uploaded the plugin to &lt;a href=&quot;https://github.com/martinplopez/doi-topic-list&quot;&gt;my GitHub repo&lt;/a&gt;. The repo contains the core of the plugin and 2 built solutions (with the fields), so one can &lt;strong&gt;directly import this solution&lt;/strong&gt; to their system and have it working.&lt;/p&gt;
&lt;p&gt;But if you want to build it yourself, here are the 5 functions that make the difference in the plugin:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Read from Target, fall back to the pre-image&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The plugin is registered on both &lt;strong&gt;Create&lt;/strong&gt; and &lt;strong&gt;Update&lt;/strong&gt;. That matters because, in testing, Journeys created the Field Submission rows first and filled in most consent values 1–2 seconds later with an update. &lt;strong&gt;A Create-only plugin listed just one of four ticked topics.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;On an Update, &lt;code&gt;Target&lt;/code&gt; only contains the columns that changed. A small helper therefore checks &lt;code&gt;Target&lt;/code&gt; first and then falls back to the pre-image registered as &lt;code&gt;pre&lt;/code&gt;:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; static&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; GetString&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Entity&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; target&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Entity&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; preImage&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; attribute&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (target.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Contains&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(attribute))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; target.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;GetAttributeValue&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;(attribute);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; preImage&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;GetAttributeValue&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;(attribute);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;2. Use the label the visitor saw&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Topic names in Dataverse are often short internal labels like “Newsletter” or “Coffee Events”. The checkbox label on the form is what the visitor actually read, so the plugin uses that. It cuts the label at the first colon and trims it to the column length:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; static&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ToConsentName&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; labelText&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IsNullOrWhiteSpace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(labelText))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; name&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; labelText;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; colon&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; name.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IndexOf&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;:&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (colon &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        name &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; name.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Substring&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, colon);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    name &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; name.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trim&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (name.Length &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; MaxNameLength)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        name &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; name.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Substring&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, MaxNameLength);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; name.Length &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; ?&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; :&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; name;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;“Coffee Courses: last offers on our courses of espresso and latte art” becomes &lt;strong&gt;Coffee Courses&lt;/strong&gt;. One side effect: the bullets follow the form’s language, so a German form produces German bullets.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. Parse the JSON, skip purposes&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The parsing lives in a static &lt;code&gt;ConsentParser&lt;/code&gt; class with no Dataverse dependency, so it can be unit tested on its own. It uses &lt;code&gt;DataContractJsonSerializer&lt;/code&gt;, which is part of .NET Framework and works in the plugin sandbox without extra assemblies:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;DataContract&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; sealed&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ConsentJson&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;DataMember&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;msdynmkt_topicid&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; TopicId&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;DataMember&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;msdynmkt_value&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Value&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;DataMember&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Name&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;labelText&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; LabelText&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; static&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ConsentInfo&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Parse&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; fieldValue&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IsNullOrWhiteSpace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(fieldValue))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;    ConsentJson&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; json&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; serializer&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; DataContractJsonSerializer&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ConsentJson&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    using&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; stream&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; MemoryStream&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(Encoding.UTF8.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;GetBytes&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(fieldValue)))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        json &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ConsentJson&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)serializer.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ReadObject&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(stream);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (json &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IsNullOrWhiteSpace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(json.TopicId))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ConsentInfo&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        ConsentName &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ToConsentName&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(json.LabelText),&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        OptedIn &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Equals&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(json.Value, &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Opted In&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, StringComparison.OrdinalIgnoreCase)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    };&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Rows without a topic ID are &lt;strong&gt;purpose&lt;/strong&gt; consents, such as general commercial communications. The parser returns &lt;code&gt;null&lt;/code&gt; for them, they get no Consent Name, and the email filter leaves them out. The list only shows the newsletters and topics the visitor chose.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;4. Write the values without an extra update&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Because the step runs in &lt;strong&gt;PreOperation (stage 20)&lt;/strong&gt;, the plugin can set the values on &lt;code&gt;Target&lt;/code&gt; itself. They are saved with the row in the same transaction, with no second &lt;code&gt;Update&lt;/code&gt; call:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;target[_consentNameColumn] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; info.ConsentName;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;target[_optedInColumn] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; info.OptedIn;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;localPluginContext.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;$&quot;Set &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;_consentNameColumn&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;=&apos;&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;info&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;ConsentName&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;, &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;_optedInColumn&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;info&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;OptedIn&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;.&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;5. Handle processing errors gracefully&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Because the plugin executes synchronously, an unhandled exception could prevent the Field Submission operation from completing.&lt;/p&gt;
&lt;p&gt;To reduce that risk, the parsing logic is wrapped in a &lt;code&gt;try&lt;/code&gt;/&lt;code&gt;catch&lt;/code&gt; block that records processing errors in the plugin trace log rather than intentionally throwing an exception.&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Exception&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ex&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    localPluginContext.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;$&quot;DoiConsent skipped (not thrown): &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;ex&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This approach helps prevent ordinary parsing errors from interrupting the submission process. However, it doesn’t guarantee that every platform or transaction-level failure can be safely recovered from.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Registration Information&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The plugin should trigger on create and update, here the information on how to best register it:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot;&gt;
































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Setting&lt;/th&gt;&lt;th&gt;Value&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Table&lt;/td&gt;&lt;td&gt;&lt;code&gt;msdynmkt_marketingfieldsubmission&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Messages&lt;/td&gt;&lt;td&gt;Create and Update&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Stage&lt;/td&gt;&lt;td&gt;PreOperation (20), synchronous&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Update filtering attributes&lt;/td&gt;&lt;td&gt;&lt;code&gt;msdynmkt_fieldvalue&lt;/code&gt;, &lt;code&gt;msdynmkt_name&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Pre-image (Update)&lt;/td&gt;&lt;td&gt;Alias &lt;code&gt;pre&lt;/code&gt;, columns &lt;code&gt;msdynmkt_name&lt;/code&gt;, &lt;code&gt;msdynmkt_fieldvalue&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Unsecure configuration&lt;/td&gt;&lt;td&gt;Publisher prefix, for example &lt;code&gt;mpl&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Using the New Columns in Your Double Opt-In Email&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Now that our plugin is registered and populating the Consent Name and Opted In columns, we can use this information in our double opt-in email.&lt;/p&gt;
&lt;p&gt;The idea is simple: instead of displaying the original consent values separated by semicolons, we use a personalized list of Field Submission records, filtering for the topics where &lt;strong&gt;Opted In is set to Yes&lt;/strong&gt; and displaying the &lt;strong&gt;Consent Name&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The result is a much cleaner list showing only the topics the customer selected.&lt;/p&gt;
&lt;p&gt;For the email configuration itself, I’m following the approach explained by &lt;a href=&quot;https://www.ameyholden.com/articles/show-topics-in-double-opt-in-confirmation-email&quot;&gt;Amy Holden in her article&lt;/a&gt;. She covers how to configure the personalization in Customer Insights - Journeys, so I won’t repeat all those steps here.&lt;/p&gt;
&lt;p&gt;The difference in my implementation is how the columns get populated: instead of using Power Automate and adding a wait step to the journey, &lt;strong&gt;the synchronous plugin prepares the values directly in Dataverse&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id=&quot;testing-the-plugin-under-load&quot;&gt;Testing the Plugin Under Load&lt;/h2&gt;
&lt;p&gt;One concern when implementing a synchronous plugin is its potential impact on performance. Since the plugin executes within the Dataverse transaction, I wanted to see how the overall process behaved under higher submission volumes.&lt;/p&gt;
&lt;p&gt;I tested the solution with four batches, ranging from 10 to 1,000 form submissions, measuring the time between submitting the form and receiving the double opt-in email.&lt;/p&gt;
&lt;p&gt;The results were encouraging: &lt;strong&gt;all 1,610 tested emails contained the expected consent topics&lt;/strong&gt;. Even in the largest batch, the &lt;strong&gt;median delivery time was 70 seconds&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;These results &lt;strong&gt;don’t isolate the execution time of the plugin itself&lt;/strong&gt;, but they provide a useful indication of how the complete solution behaved under the tested workloads.&lt;/p&gt;
&lt;p class=&quot;chart-legend&quot;&gt;&lt;span&gt;&lt;span class=&quot;chart-key chart-key--median&quot;&gt;&lt;/span&gt;Median&lt;/span&gt; &lt;span&gt;&lt;span class=&quot;chart-key chart-key--slowest&quot;&gt;&lt;/span&gt;Slowest email&lt;/span&gt;&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot; style=&quot;--dw:700px&quot;&gt;&lt;svg id=&quot;mermaid-0&quot; width=&quot;100%&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; style=&quot;max-width: 700px;&quot; viewBox=&quot;0 0 700 500&quot; role=&quot;graphics-document document&quot; aria-roledescription=&quot;xychart&quot;&gt;&lt;style&gt;#mermaid-0{font-family:arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-0 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-0 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-0 .error-icon{fill:#552222;}#mermaid-0 .error-text{fill:#552222;stroke:#552222;}#mermaid-0 .edge-thickness-normal{stroke-width:1px;}#mermaid-0 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-0 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-0 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-0 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-0 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-0 .marker{fill:#333333;stroke:#333333;}#mermaid-0 .marker.cross{stroke:#333333;}#mermaid-0 svg{font-family:arial,sans-serif;font-size:16px;}#mermaid-0 p{margin:0;}#mermaid-0 .node .neo-node{stroke:#9370DB;}#mermaid-0 [data-look=&quot;neo&quot;].node rect,#mermaid-0 [data-look=&quot;neo&quot;].cluster rect,#mermaid-0 [data-look=&quot;neo&quot;].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node path{stroke:#9370DB;stroke-width:1px;}#mermaid-0 [data-look=&quot;neo&quot;].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node .neo-line path{stroke:#9370DB;filter:none;}#mermaid-0 [data-look=&quot;neo&quot;].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node circle .state-start{fill:#000000;}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 :root{--mermaid-font-family:arial,sans-serif;}&lt;/style&gt;&lt;g&gt;&lt;/g&gt;&lt;g class=&quot;main&quot;&gt;&lt;rect width=&quot;700&quot; height=&quot;500&quot; class=&quot;background&quot; fill=&quot;#F2F1EB&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;chart-title&quot;&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;20&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;middle&quot; transform=&quot;translate(350, 21) rotate(0)&quot;&gt;Time from submit to inbox (seconds)&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;plot&quot;&gt;&lt;g class=&quot;bar-plot-0&quot;&gt;&lt;rect x=&quot;70.33515815734864&quot; y=&quot;401.5452380952381&quot; width=&quot;104.98984374999999&quot; height=&quot;65.45476190476188&quot; fill=&quot;#6FB1A8&quot; stroke=&quot;#6FB1A8&quot; stroke-width=&quot;0&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;244.3058606465658&quot; y=&quot;419.07380952380953&quot; width=&quot;104.98984374999999&quot; height=&quot;47.92619047619047&quot; fill=&quot;#6FB1A8&quot; stroke=&quot;#6FB1A8&quot; stroke-width=&quot;0&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;418.2765631357829&quot; y=&quot;301.24285714285713&quot; width=&quot;104.98984374999999&quot; height=&quot;165.75714285714287&quot; fill=&quot;#6FB1A8&quot; stroke=&quot;#6FB1A8&quot; stroke-width=&quot;0&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;592.247265625&quot; y=&quot;73.37142857142858&quot; width=&quot;104.98984374999999&quot; height=&quot;393.62857142857143&quot; fill=&quot;#6FB1A8&quot; stroke=&quot;#6FB1A8&quot; stroke-width=&quot;0&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;g class=&quot;bar-plot-1&quot;&gt;&lt;rect x=&quot;70.33515815734864&quot; y=&quot;430.75952380952384&quot; width=&quot;104.98984374999999&quot; height=&quot;36.24047619047616&quot; fill=&quot;#1F4F4A&quot; stroke=&quot;#1F4F4A&quot; stroke-width=&quot;0&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;244.3058606465658&quot; y=&quot;433.68095238095236&quot; width=&quot;104.98984374999999&quot; height=&quot;33.31904761904764&quot; fill=&quot;#1F4F4A&quot; stroke=&quot;#1F4F4A&quot; stroke-width=&quot;0&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;418.2765631357829&quot; y=&quot;425.89047619047614&quot; width=&quot;104.98984374999999&quot; height=&quot;41.109523809523864&quot; fill=&quot;#1F4F4A&quot; stroke=&quot;#1F4F4A&quot; stroke-width=&quot;0&quot;&gt;&lt;/rect&gt;&lt;rect x=&quot;592.247265625&quot; y=&quot;390.8333333333333&quot; width=&quot;104.98984374999999&quot; height=&quot;76.16666666666669&quot; fill=&quot;#1F4F4A&quot; stroke=&quot;#1F4F4A&quot; stroke-width=&quot;0&quot;&gt;&lt;/rect&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;bottom-axis&quot;&gt;&lt;g class=&quot;axis-line&quot;&gt;&lt;path d=&quot;M 67.57226753234863,468 L 700,468&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;label&quot;&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;text-before-edge&quot; text-anchor=&quot;middle&quot; transform=&quot;translate(122.83008003234863, 479) rotate(0)&quot;&gt;B1 · 10&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;text-before-edge&quot; text-anchor=&quot;middle&quot; transform=&quot;translate(296.8007825215658, 479) rotate(0)&quot;&gt;B2 · 100&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;text-before-edge&quot; text-anchor=&quot;middle&quot; transform=&quot;translate(470.7714850107829, 479) rotate(0)&quot;&gt;B3 · 500 / 2 min&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;text-before-edge&quot; text-anchor=&quot;middle&quot; transform=&quot;translate(644.7421875, 479) rotate(0)&quot;&gt;B4 · 1,000 / 5 min&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;ticks&quot;&gt;&lt;path d=&quot;M 122.83008003234863,469 L 122.83008003234863,474&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 296.8007825215658,469 L 296.8007825215658,474&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 470.7714850107829,469 L 470.7714850107829,474&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 644.7421875,469 L 644.7421875,474&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;left-axis&quot;&gt;&lt;g class=&quot;axisl-line&quot;&gt;&lt;path d=&quot;M 66.57226753234863,42 L 66.57226753234863,467&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;label&quot;&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 69.4761904761905) rotate(0)&quot;&gt;400&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 118.16666666666666) rotate(0)&quot;&gt;350&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 166.85714285714286) rotate(0)&quot;&gt;300&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 215.54761904761904) rotate(0)&quot;&gt;250&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 264.23809523809524) rotate(0)&quot;&gt;200&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 312.9285714285714) rotate(0)&quot;&gt;150&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 361.61904761904765) rotate(0)&quot;&gt;100&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 410.3095238095238) rotate(0)&quot;&gt;50&lt;/text&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;14&quot; dominant-baseline=&quot;middle&quot; text-anchor=&quot;end&quot; transform=&quot;translate(55.57226753234863, 459) rotate(0)&quot;&gt;0&lt;/text&gt;&lt;/g&gt;&lt;g class=&quot;ticks&quot;&gt;&lt;path d=&quot;M 65.57226753234863,69.4761904761905 L 60.57226753234863,69.4761904761905&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 65.57226753234863,118.16666666666666 L 60.57226753234863,118.16666666666666&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 65.57226753234863,166.85714285714286 L 60.57226753234863,166.85714285714286&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 65.57226753234863,215.54761904761904 L 60.57226753234863,215.54761904761904&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 65.57226753234863,264.23809523809524 L 60.57226753234863,264.23809523809524&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 65.57226753234863,312.9285714285714 L 60.57226753234863,312.9285714285714&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 65.57226753234863,361.61904761904765 L 60.57226753234863,361.61904761904765&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 65.57226753234863,410.3095238095238 L 60.57226753234863,410.3095238095238&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M 65.57226753234863,459 L 60.57226753234863,459&quot; fill=&quot;none&quot; stroke=&quot;#131300&quot; stroke-width=&quot;2&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;title&quot;&gt;&lt;text x=&quot;0&quot; y=&quot;0&quot; fill=&quot;#131300&quot; font-size=&quot;16&quot; dominant-baseline=&quot;text-before-edge&quot; text-anchor=&quot;middle&quot; transform=&quot;translate(5, 254.5) rotate(270)&quot;&gt;Seconds&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;mermaid-tmp-group&quot;&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot;&gt;


































&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Step&lt;/th&gt;&lt;th&gt;Submissions&lt;/th&gt;&lt;th&gt;Emails with correct topics&lt;/th&gt;&lt;th&gt;Time from submit to inbox (median / slowest)&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;B1&lt;/td&gt;&lt;td&gt;10&lt;/td&gt;&lt;td&gt;10/10&lt;/td&gt;&lt;td&gt;29 s / 59 s&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;B2&lt;/td&gt;&lt;td&gt;100&lt;/td&gt;&lt;td&gt;100/100&lt;/td&gt;&lt;td&gt;26 s / 41 s&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;B3&lt;/td&gt;&lt;td&gt;500 in 2 min&lt;/td&gt;&lt;td&gt;500/500&lt;/td&gt;&lt;td&gt;34 s / 2.7 min&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;B4&lt;/td&gt;&lt;td&gt;1,000 in 5 min&lt;/td&gt;&lt;td&gt;1,000/1,000&lt;/td&gt;&lt;td&gt;70 s / 6.6 min&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;h2 id=&quot;design-considerations&quot;&gt;Design considerations&lt;/h2&gt;
&lt;p&gt;Every time we solve one problem, a new one arises. These are the things to consider when applying this solution:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Designed to minimize the risk of blocking a sign-up.&lt;/strong&gt; Processing errors are logged rather than intentionally propagated. However, synchronous plugins still run within the Dataverse transaction, so proper testing and monitoring remain important.&lt;/li&gt;
&lt;li&gt;The bullets use the form’s wording, not Dataverse’s. The names on the form will be used, which has another perk: a German form produces German bullets. &lt;strong&gt;So multilingual double opt-in can be done if you modify the journey and add emails per language as well.&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Sometimes, a small improvement to the customer experience requires a little more work behind the scenes.&lt;/p&gt;
&lt;p&gt;In this case, the requirement was simple: make double opt-in emails easier to read by displaying the selected consent topics as a structured list.&lt;/p&gt;
&lt;p&gt;The existing Power Automate approach is a great starting point, especially if you prefer low-code solutions. But I wanted to explore whether a synchronous Dataverse plugin could simplify the processing and reduce the dependency on journey wait times.&lt;/p&gt;
&lt;p&gt;The result is a lightweight plugin that prepares the consent information as part of each Field Submission operation. My tests were encouraging, with the expected topics appearing in all tested emails, even under higher submission volumes.&lt;/p&gt;
&lt;p&gt;Of course, &lt;strong&gt;a plugin isn’t always the right choice&lt;/strong&gt;. It requires development skills, proper deployment, and ongoing maintenance. For simpler scenarios, Power Automate may still be the better option.&lt;/p&gt;
&lt;p&gt;If you want to try this approach, I’ve shared the code and solution files on &lt;a href=&quot;https://github.com/martinplopez/doi-topic-list&quot;&gt;GitHub&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;And if you’ve implemented double opt-in personalization differently, I’d love to hear how you approached it!&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Double Opt In Email</category><category>Marketing Automation</category><category>Power Platform</category></item><item><title>Website Tracking in Customer Insights - Journeys: Triggers, Segments and Limitations</title><link>https://martinplopez.com/writing/website-tracking-cij/</link><guid isPermaLink="true">https://martinplopez.com/writing/website-tracking-cij/</guid><description>Learn how to track website visits and clicks in Customer Insights - Journeys, use them to trigger journeys and create segments, and understand the limitations before implementing it.</description><pubDate>Thu, 15 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Meetings with Marketing Departments can sometimes open your eyes. This week I got asked if they can trigger a journey from what the customers do on their website. I knew this was possible, but how? 😐&lt;/p&gt;
&lt;p&gt;Think about it: knowing that someone opened your newsletter is useful, but knowing that they’ve visited the same product page five times in the last week? That’s a much stronger indication of what they’re actually interested in.&lt;/p&gt;
&lt;p&gt;So I started digging, set up website tracking, and ran a few tests of my own. Here’s what I learned along the way.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Customer Insights - Journeys can track website visits and link clicks from known contacts and leads. These interactions can be used to trigger journeys or build behavioral segments.&lt;/p&gt;
&lt;p&gt;However, tracking requires identifying the visitor through a tracked journey link or a Customer Insights - Journeys form submission. Cookie and tracking consent are also essential considerations.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-track-website-interactions&quot;&gt;Why Track Website Interactions?&lt;/h2&gt;
&lt;p&gt;This feature, which is &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/interaction-journey-decision&quot;&gt;well documented by Microsoft&lt;/a&gt;, allows the marketers to create marketing automations that are personalized based on how their customers interact with their website.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;But what does this mean?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Imagine we have an online clothing store and want to promote a particular t-shirt.&lt;/p&gt;
&lt;p&gt;We could use website tracking in two different ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;React to a specific interaction:&lt;/strong&gt; A customer clicks on a promotional banner. We can use that click to trigger a journey and send them more information about the product or even a discount code.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;React to repeated behavior:&lt;/strong&gt; A customer visits the same t-shirt page five times within ten days. We can create a behavioral segment that identifies these interested customers and use it in a targeted campaign.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first approach allows us to react to a specific action, while the second helps us identify patterns in customer behavior over time.&lt;/p&gt;
&lt;p&gt;And the best part? We can do both directly in Customer Insights - Journeys.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-can-we-implement-this&quot;&gt;How can we implement this?&lt;/h2&gt;
&lt;p&gt;To implement this, one has to &lt;strong&gt;add some JavaScript code in the header of your website&lt;/strong&gt;. A similar process as when you add a Google Analytics tag to your website. In fact, if you already use Google Tag Manager on your website, this script can be configured as a new tag.&lt;/p&gt;
&lt;p&gt;You can find the script under &lt;strong&gt;Settings → Customer Engagement → Web Tracking&lt;/strong&gt; in Customer Insights - Journeys.&lt;/p&gt;
&lt;p&gt;One thing to remember when testing: &lt;strong&gt;sending yourself a test email from the email designer won’t work&lt;/strong&gt;. You need to send the email through an actual journey, click the tracked link, and then navigate through the website. After that, you should be able to see the interactions associated with your contact or lead.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;⚠️ Each Customer Insights Journeys environment has a different script to link it, but &lt;strong&gt;if you have several websites that you wanna track, you’ll have to reuse the same script&lt;/strong&gt; from your customer insights journeys environment.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;1-use-as-a-trigger&quot;&gt;1. Use as a trigger&lt;/h3&gt;
&lt;p&gt;The most common use case is to use the default triggers that we have available in a journey, the &lt;code&gt;Marketing Website Clicked&lt;/code&gt; and the &lt;code&gt;Marketing Website Visited&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;2 Triggers available&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;To be honest, I feel like the &lt;code&gt;Marketing Website Clicked&lt;/code&gt; is designed more for this kind of use, as it provides you &lt;strong&gt;more information about the user’s behavior&lt;/strong&gt;, some of the information that only this trigger provides:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Action is Outbound&lt;/strong&gt; —&gt; The user clicked on a link that redirected outside your website&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Action Type&lt;/strong&gt; —&gt; The kind of interaction the user had with the website (was it a left-click or a keyboard-enter)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Click coordinates&lt;/strong&gt; —&gt; Provides the position of the click on the webpage. This can be useful for identifying interactions, although coordinates may change depending on the device or website layout.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With this trigger, we can create a journey activated when a user clicks on a certain section or button. For example when you have a product that needs to be promoted, make a trigger so that everyone who clicks on the banner on the website, will get a promotion or discount on the product.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;This Coffee Blend needs a push in sales&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;2-use-as-a-segment&quot;&gt;2. Use as a segment&lt;/h3&gt;
&lt;p&gt;A less obvious use case is creating &lt;strong&gt;behavioral segments&lt;/strong&gt; based on website interactions.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Segments can be easily configured, the same as the user behaviour with the emails&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;This can allow you to have more defined segments of customers interested in certain products, and launch campaigns specifically for these customers.&lt;/p&gt;
&lt;p&gt;A case that comes to mind is if we have a segment with people that visited our events page in the last 6 months, it’s quite likely that they would be interested in the next event that we publish, so we can add this segment of &lt;em&gt;“events interested people”&lt;/em&gt; to our invitation journey.&lt;/p&gt;
&lt;p&gt;The other case I’ve been thinking is to detect when a customer has visited 5 times the same product page in the last 10 days, we could automatically include these customers in a nurturing journey, helping them understand the product’s benefits or encouraging them to complete their purchase.&lt;/p&gt;
&lt;h2 id=&quot;design-considerations&quot;&gt;Design considerations&lt;/h2&gt;
&lt;p&gt;There are some limitations to consider before implementing this feature:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Not every website visitor can be tracked.&lt;/strong&gt; Customer Insights - Journeys needs to identify the visitor before their interactions can be used in journeys or segments. This can happen when someone clicks a tracked link from a Customer Insights - Journeys email or submits a Customer Insights - Journeys form with web tracking enabled. In both cases, a cookie allows the system to recognize the visitor on future visits. However, &lt;strong&gt;cookies are browser-specific&lt;/strong&gt;, so if someone visits your website from their laptop and later from their phone, the tracking won’t automatically recognize them as the same person.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Website interactions and lead scoring are not fully integrated yet.&lt;/strong&gt; Although website visits and clicks can be used for journeys and segments, I couldn’t use these interactions directly in the standard lead-scoring model during my tests. This would be particularly useful in B2B scenarios, where repeated visits to pricing or product pages could indicate purchasing interest.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Prevent unintended journey runs by filtering.&lt;/strong&gt;  Website tracking can generate a lot of interactions from identified visitors, so it’s important to configure your journey triggers carefully. For example, if you want to react when someone visits a particular product page, make sure to &lt;strong&gt;filter the trigger by its URL&lt;/strong&gt;. Otherwise, you might start a journey whenever someone visits any tracked page. I’d also recommend configuring how often customers can re-enter the journey, so they don’t receive the same communication every time they repeat an interaction.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Filter Out of the default timeline, as it can get crowded quickly.&lt;/strong&gt; As said in the previous consideration, everything that is tracked will appear in the timeline of the contact or lead, so it can get crowded quickly. My advice here is to edit the timeline in the form to &lt;strong&gt;remove the marketing website interactions and add them in a separate timeline&lt;/strong&gt;, if you want to see them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Respect cookie consent.&lt;/strong&gt; The website tracking script &lt;strong&gt;doesn’t automatically respect your website’s cookie banner&lt;/strong&gt;. By default, Customer Insights - Journeys can set tracking cookies even when visitors haven’t accepted them. To prevent this, Microsoft provides a JavaScript function called &lt;code&gt;disableCookiesUsage()&lt;/code&gt; that you can integrate with your website’s cookie consent mechanism. Additionally, make sure to configure the &lt;strong&gt;Tracking purpose&lt;/strong&gt; in Customer Insights - Journeys, as website cookie consent and tracking consent stored in Customer Insights are handled separately. Both need to be considered, especially if you’re operating in Europe.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Most Customer Insights - Journeys implementations I’ve worked on have been B2B, where website tracking doesn’t always get much attention.&lt;/p&gt;
&lt;p&gt;However, after testing this feature, I think there’s quite a lot of potential for both B2B and B2C scenarios.&lt;/p&gt;
&lt;p&gt;For B2C organizations, it could help create more personalized campaigns based on the products customers are interested in. For B2B organizations, repeated visits to pricing pages or specific services could be valuable indicators of interest.&lt;/p&gt;
&lt;p&gt;Of course, there are limitations. Tracking only works with identifiable visitors, cookie consent needs to be considered, and I would love to see these interactions integrated directly into lead scoring.&lt;/p&gt;
&lt;p&gt;Still, what I like most about this feature is that it allows us to go beyond traditional email interactions.&lt;/p&gt;
&lt;p&gt;Instead of only reacting to what customers do with our emails, &lt;strong&gt;we can start reacting to what they do on our websites.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;And that opens up some interesting possibilities for customer journeys.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Website Tracking</category><category>Marketing Automation</category><category>Power Platform</category></item><item><title>Keep Expired Customer Insights - Journeys Segments Alive with Power Automate</title><link>https://martinplopez.com/writing/keep-segments-active-cij/</link><guid isPermaLink="true">https://martinplopez.com/writing/keep-segments-active-cij/</guid><description>Learn how to automatically reactivate expired Customer Insights - Journeys segments with Power Automate, while keeping control over which segments stay active.</description><pubDate>Fri, 02 Oct 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Earlier this year, Microsoft introduced automated segment management in Customer Insights - Journeys. Segments that aren’t actively used eventually move to an Expired state and stop being evaluated.&lt;/p&gt;
&lt;p&gt;The feature originally used a 30-day expiration window, but after community feedback Microsoft extended it to &lt;strong&gt;120 days&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This limit is fine for most cases, but what if you rely on segments that may sit unused for more than 120 days? 🙄&lt;/p&gt;
&lt;p&gt;I recently had this requirement with a couple of clients, so I chose to automate the manual process with my favourite Power Platform tool: &lt;strong&gt;Power Automate&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Customer Insights - Journeys automatically expires segments that remain unused for 120 days.&lt;/p&gt;
&lt;p&gt;For segments that still need to stay active outside normal journey usage, you can use a scheduled Power Automate flow to find selected expired segments, move their segment definitions back to Draft, and publish them again automatically.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-keep-segments-alive&quot;&gt;Why keep segments alive?&lt;/h2&gt;
&lt;p&gt;But why bother at all? At the end of the day Microsoft is just setting them as expired and you can manually reactivate them again. &lt;strong&gt;This is fine for most people&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;But if you find yourself in one of the following situations:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You have segments that keep track of suppression lists but aren’t used in a journey.&lt;/li&gt;
&lt;li&gt;You have segments that you use once or twice a year, with more than 120 days between uses.&lt;/li&gt;
&lt;li&gt;You have test segments which will be used sporadically&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;You have a business process that uses the members of a segment but not a journey&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Especially if the last scenario applies to you, it’s necessary to make sure that the segments keep on being updated to keep the business process working.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Expired Segment&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-can-we-implement-this&quot;&gt;How can we implement this?&lt;/h2&gt;
&lt;p&gt;This article is heavily inspired by &lt;a href=&quot;https://meganvwalker.com/help-my-segments-have-expired-customer-insights/&quot;&gt;this post from Megan V. Walker&lt;/a&gt; where she explains how to activate the segments. So we are going to replicate the clicking in Power Automate.&lt;/p&gt;
&lt;p&gt;In my case, the flow runs once a day and looks for expired segments whose names contain the &lt;code&gt;KEEP&lt;/code&gt; marker. If none are found, there’s nothing to process. If there are matches, the flow moves each segment back to Draft and then publishes it again.&lt;/p&gt;
&lt;h3 id=&quot;1-trigger-and-retrieve-the-segments&quot;&gt;1. Trigger and retrieve the segments&lt;/h3&gt;
&lt;p&gt;Start with a new &lt;strong&gt;Scheduled cloud flow&lt;/strong&gt;. The flow only has to catch segments after they expire, so once a day is plenty.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Trigger: Recurrence&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Interval:&lt;/strong&gt; 1&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Frequency:&lt;/strong&gt; Day&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Start time:&lt;/strong&gt; pick a time when nobody is building journeys. In my case it’s 08:00 UTC.&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 The start time is in UTC unless you set &lt;strong&gt;Time zone&lt;/strong&gt;. If you’re in Switzerland like me, either set the time zone to &lt;em&gt;(UTC+01:00) Bern&lt;/em&gt; or remember that 08:00 UTC is 10:00 in summer and 09:00 in winter.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Recurrence trigger configured to run daily&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Action: List rows (Microsoft Dataverse)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Next, add a Dataverse &lt;strong&gt;List rows&lt;/strong&gt; action and I like to rename it to &lt;em&gt;List expired Segments with Tag&lt;/em&gt;. Renaming is a best practice, as the name shows up in every expression that references this step later, so a clear name makes things easier to handle and edit.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Table name:&lt;/strong&gt; Segments (&lt;code&gt;msdynmkt_virtualsegments&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Filter rows:&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  msdynmkt_statuscode eq 8 and contains(msdynmkt_name,&apos;KEEP&apos;)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;This filter does two things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;msdynmkt_statuscode eq 8&lt;/code&gt; returns only segments in the &lt;strong&gt;Expired&lt;/strong&gt; status.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;contains(msdynmkt_name,&apos;KEEP&apos;)&lt;/code&gt; acts as an opt-in naming convention. Only segments with &lt;em&gt;KEEP&lt;/em&gt; in their name get revived, and everything else is left to expire as Microsoft intended. This gives marketers a simple control: rename a segment to keep it alive, rename it back to let it go.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;List rows action with the Segments table and OData filter&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 You can pick any marker you like (&lt;code&gt;[KEEP]&lt;/code&gt;, &lt;code&gt;#evergreen&lt;/code&gt;…), but keep it short and unambiguous.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h3 id=&quot;2-set-to-draft-and-go-live&quot;&gt;2. Set to Draft and go Live&lt;/h3&gt;
&lt;p&gt;An expired segment can’t be published again directly. It first has to go back to &lt;strong&gt;Draft&lt;/strong&gt;, and only then can it be published. That means two steps per segment, inside a loop.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Action: Apply to each&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Add an &lt;strong&gt;Apply to each&lt;/strong&gt; (in my flow it’s named &lt;em&gt;For each Segment&lt;/em&gt;) and pass it the &lt;code&gt;value&lt;/code&gt; output of the List rows step:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;@outputs(&apos;List_expired_Segments_with_Tag&apos;)?[&apos;body/value&apos;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Inside the loop, step 1: Update a row (Microsoft Dataverse)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The status you need to change doesn’t live on the segment record you just listed. It lives on the underlying &lt;strong&gt;segment definition&lt;/strong&gt;. Fortunately, the segment holds a pointer to it in &lt;code&gt;msdynmkt_sourceentityid&lt;/code&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Table name:&lt;/strong&gt; Segment definitions (&lt;code&gt;msdynmkt_segmentdefinitions&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Row ID:&lt;/strong&gt; &lt;code&gt;@item()?[&apos;msdynmkt_sourceentityid&apos;]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Status:&lt;/strong&gt; Active (&lt;code&gt;statecode&lt;/code&gt; = 0)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Status Reason:&lt;/strong&gt; Draft (&lt;code&gt;statuscode&lt;/code&gt; = 723270001)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Update a row action setting the segment definition to Draft&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;⚠️ This is the step people usually get wrong. If you try to update &lt;code&gt;msdynmkt_virtualsegments&lt;/code&gt; directly, nothing happens. Always target the segment definition.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;strong&gt;Inside the loop, step 2: Invoke an HTTP request (HTTP with Microsoft Entra ID)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;There’s no Dataverse connector action for publishing a segment, so the flow calls the unbound &lt;code&gt;msdynmkt_PublishSegmentDefinition&lt;/code&gt; action through the Web API instead. I use the &lt;strong&gt;HTTP with Microsoft Entra ID (preauthorized)&lt;/strong&gt; connector because it signs in with the connection user. You don’t need an app registration or a client secret.&lt;/p&gt;
&lt;p&gt;When you create the connection, set both &lt;strong&gt;Base Resource URL&lt;/strong&gt; and &lt;strong&gt;Microsoft Entra ID Resource URI&lt;/strong&gt; to your environment URL, for example &lt;code&gt;https://yourorg.crm17.dynamics.com&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Creating the HTTP with Microsoft Entra ID connection&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 In my case is &lt;code&gt;crm17&lt;/code&gt; before the &lt;code&gt;.dynamics.com&lt;/code&gt; because my environment is hosted in Switzerland. Adapt this part of the URL, along with &lt;code&gt;yourorg&lt;/code&gt;, to match your Dynamics environment URL.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Then configure the action:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Method:&lt;/strong&gt; POST&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Url of the request:&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;  https://yourorg.crm17.dynamics.com/api/data/v9.0/msdynmkt_PublishSegmentDefinition&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Body of the request:&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;json&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;      &quot;SegmentId&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;@{item()?[&apos;msdynmkt_virtualsegmentid&apos;]}&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Invoke an HTTP request action calling msdynmkt_PublishSegmentDefinition&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 Don’t hard-code the environment URL if this flow travels through a solution from DEV to TEST to PROD. Put the URL in an &lt;strong&gt;environment variable&lt;/strong&gt; and reference it in the request URL, so the same flow works everywhere without edits.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Save the flow and run it manually once to test. In &lt;strong&gt;Customer Insights – Journeys &gt; Segments&lt;/strong&gt;, your &lt;em&gt;KEEP&lt;/em&gt; segments should go from &lt;em&gt;Expired&lt;/em&gt; to &lt;em&gt;Draft&lt;/em&gt; and then to &lt;em&gt;Live&lt;/em&gt; after a short wait.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image7.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Segment list showing the KEEP segment back in Live status&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;design-considerations&quot;&gt;Design considerations&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Only reactivate the segments that actually need it.&lt;/strong&gt;
Microsoft introduced automated segment management to reduce unnecessary processing. Automatically republishing every expired segment would work against that goal. Using an opt-in naming convention like &lt;code&gt;KEEP&lt;/code&gt; lets you preserve only the segments your business processes actually depend on. Microsoft explicitly recommends reducing unnecessary active segments because segment volume can affect refresh performance.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Monitor the automation.&lt;/strong&gt;
This flow becomes part of the business process. Connections can expire, deployments can introduce issues, and permissions can change. If downstream processes depend on these segment memberships, treat the flow like any other production automation and monitor failures.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;The important part isn’t that every segment should be kept alive. In fact, &lt;strong&gt;most shouldn’t.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;But when a segment is part of a wider business process (not just a journey) the default expiration behavior might not fit the requirement. In those cases, Power Automate gives us a controlled way to extend Customer Insights - Journeys &lt;strong&gt;without fighting the platform’s intended behavior&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;That’s one of the things I like most about working with the Power Platform: when the out-of-the-box functionality gets you &lt;strong&gt;90% of the way there, the rest of the platform can often help with the remaining 10%.&lt;/strong&gt;&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Segment Management</category><category>Marketing Automation</category><category>Power Platform</category></item><item><title>Setting Up Payments for Events in Customer Insights - Journeys</title><link>https://martinplopez.com/writing/setup-payments-in-cij/</link><guid isPermaLink="true">https://martinplopez.com/writing/setup-payments-in-cij/</guid><description>Learn how to integrate paid event registrations in Dynamics 365 Customer Insights - Journeys using Stripe, Azure Functions, Dataverse, managed identities, and webhooks.</description><pubDate>Fri, 18 Sep 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This September, I’ve been digging into something I’d been curious about but had never worked with before: paid events in Dynamics 365 Customer Insights - Journeys.&lt;/p&gt;
&lt;p&gt;But here was a problem from the beginning: There’s not much written about it, at least I couldn’t find anything that belonged to the Real Time Marketing Era 😅 And from Microsoft we received &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/developer/payment-gateway-integration&quot;&gt;this very cryptic documentation&lt;/a&gt;, that I needed help understanding.&lt;/p&gt;
&lt;p&gt;So I got my hands dirty and made it work. Along the way, I learned how to build the payment integration, what to watch out for, and what to avoid. You want to see it straight away? Here’s an example 😉&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/writing/setup-payments-in-cij/image.gif&quot; alt=&quot;Form with Stripe Checkout&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Customer Insights - Journeys supports paid event registrations, but you &lt;strong&gt;need to provide the payment infrastructure yourself&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In this article, I use &lt;strong&gt;Stripe and Azure Functions to build the redirect and webhook endpoints&lt;/strong&gt;, authenticate to Dataverse with managed identity, finalize successful payments through &lt;code&gt;msevtmgt_finalizeregistrationpayment&lt;/code&gt;, and handle the reliability and security issues that come with connecting a payment provider to an event reservation.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;do-you-need-payments&quot;&gt;Do you need Payments?&lt;/h2&gt;
&lt;p&gt;Before building anything, it is worth considering the three options available to you.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Register for free, invoice afterwards.&lt;/strong&gt; Boring, and right more often than people expect. No gateway, no refunds, no webhook. Useful if you don’t run many paid events or have many attendees.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Sell the ticket in an external ticketing tool&lt;/strong&gt; and sync attendees into Dataverse. You give up the single registration experience and need to sync the registrations back into Customer Insights - Journeys.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Keep registration in Customer Insights - Journeys and add your own gateway.&lt;/strong&gt; The right call when registration, capacity and the confirmation journey all have to stay in one place.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Option 3 is the one this article is about. There is a development cost, but there is also an ongoing maintenance cost. A payment integration is not a feature you ship and forget, it is something somebody has to be able to debug on a Monday morning when an attendee says they paid twice.&lt;/p&gt;
&lt;p&gt;If you can live with option 1, take option 1 🙂&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;architecting-the-solution&quot;&gt;Architecting the solution&lt;/h2&gt;
&lt;p&gt;So what does Customer Insights - Journeys actually require from you? Two endpoints:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot;&gt;



















&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Endpoint&lt;/th&gt;&lt;th&gt;Called by&lt;/th&gt;&lt;th&gt;What it must do&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;GET /&amp;#x3C;your-path&gt;/Pay?purchaseId={guid}&amp;#x26;returnUrl={url}&lt;/code&gt;&lt;/td&gt;&lt;td&gt;the attendee’s browser, redirected there from the registration page&lt;/td&gt;&lt;td&gt;read the purchase, take the money, send the attendee back to a return page&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;code&gt;POST /&amp;#x3C;your-path&gt;/Webhook&lt;/code&gt;&lt;/td&gt;&lt;td&gt;the payment provider&lt;/td&gt;&lt;td&gt;tell Dataverse what happened, by executing &lt;code&gt;msevtmgt_finalizeregistrationpayment&lt;/code&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Customer Insights - Journeys connects to the redirect endpoint through a payment provider record, while the webhook is configured directly in Stripe.&lt;/p&gt;
&lt;p&gt;When you build this, you should have a happy path like this one:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot; style=&quot;--dw:1458px&quot;&gt;&lt;svg id=&quot;mermaid-0&quot; width=&quot;100%&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; style=&quot;max-width: 1458px;&quot; viewBox=&quot;-50 -10 1458 743&quot; role=&quot;graphics-document document&quot; aria-roledescription=&quot;sequence&quot;&gt;&lt;g&gt;&lt;rect x=&quot;1196&quot; y=&quot;657&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;162&quot; height=&quot;65&quot; name=&quot;WH&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-bottom&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;1277&quot; y=&quot;689.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;1277&quot; dy=&quot;0&quot;&gt;Gateway (webhook)&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;892&quot; y=&quot;657&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;150&quot; height=&quot;65&quot; name=&quot;ST&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-bottom&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;967&quot; y=&quot;689.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;967&quot; dy=&quot;0&quot;&gt;Payment provider&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;692&quot; y=&quot;657&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;150&quot; height=&quot;65&quot; name=&quot;DV&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-bottom&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;767&quot; y=&quot;689.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;767&quot; dy=&quot;0&quot;&gt;Dataverse&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;405&quot; y=&quot;657&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;152&quot; height=&quot;65&quot; name=&quot;GW&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-bottom&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;481&quot; y=&quot;689.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;481&quot; dy=&quot;0&quot;&gt;Gateway (redirect)&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;rect x=&quot;205&quot; y=&quot;657&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;150&quot; height=&quot;65&quot; name=&quot;EA&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-bottom&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;280&quot; y=&quot;689.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;280&quot; dy=&quot;0&quot;&gt;Events API&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;g&gt;&lt;/g&gt;&lt;g&gt;&lt;line id=&quot;actor5&quot; x1=&quot;1277&quot; y1=&quot;65&quot; x2=&quot;1277&quot; y2=&quot;657&quot; class=&quot;actor-line 200&quot; stroke-width=&quot;0.5px&quot; stroke=&quot;#999&quot; name=&quot;WH&quot; data-et=&quot;life-line&quot; data-id=&quot;WH&quot;&gt;&lt;/line&gt;&lt;g id=&quot;root-5&quot; data-et=&quot;participant&quot; datatype=&quot;participant&quot; data-id=&quot;WH&quot;&gt;&lt;rect x=&quot;1196&quot; y=&quot;0&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;162&quot; height=&quot;65&quot; name=&quot;WH&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-top&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;1277&quot; y=&quot;32.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;1277&quot; dy=&quot;0&quot;&gt;Gateway (webhook)&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g&gt;&lt;line id=&quot;actor4&quot; x1=&quot;967&quot; y1=&quot;65&quot; x2=&quot;967&quot; y2=&quot;657&quot; class=&quot;actor-line 200&quot; stroke-width=&quot;0.5px&quot; stroke=&quot;#999&quot; name=&quot;ST&quot; data-et=&quot;life-line&quot; data-id=&quot;ST&quot;&gt;&lt;/line&gt;&lt;g id=&quot;root-4&quot; data-et=&quot;participant&quot; datatype=&quot;participant&quot; data-id=&quot;ST&quot;&gt;&lt;rect x=&quot;892&quot; y=&quot;0&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;150&quot; height=&quot;65&quot; name=&quot;ST&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-top&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;967&quot; y=&quot;32.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;967&quot; dy=&quot;0&quot;&gt;Payment provider&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g&gt;&lt;line id=&quot;actor3&quot; x1=&quot;767&quot; y1=&quot;65&quot; x2=&quot;767&quot; y2=&quot;657&quot; class=&quot;actor-line 200&quot; stroke-width=&quot;0.5px&quot; stroke=&quot;#999&quot; name=&quot;DV&quot; data-et=&quot;life-line&quot; data-id=&quot;DV&quot;&gt;&lt;/line&gt;&lt;g id=&quot;root-3&quot; data-et=&quot;participant&quot; datatype=&quot;participant&quot; data-id=&quot;DV&quot;&gt;&lt;rect x=&quot;692&quot; y=&quot;0&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;150&quot; height=&quot;65&quot; name=&quot;DV&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-top&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;767&quot; y=&quot;32.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;767&quot; dy=&quot;0&quot;&gt;Dataverse&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g&gt;&lt;line id=&quot;actor2&quot; x1=&quot;481&quot; y1=&quot;65&quot; x2=&quot;481&quot; y2=&quot;657&quot; class=&quot;actor-line 200&quot; stroke-width=&quot;0.5px&quot; stroke=&quot;#999&quot; name=&quot;GW&quot; data-et=&quot;life-line&quot; data-id=&quot;GW&quot;&gt;&lt;/line&gt;&lt;g id=&quot;root-2&quot; data-et=&quot;participant&quot; datatype=&quot;participant&quot; data-id=&quot;GW&quot;&gt;&lt;rect x=&quot;405&quot; y=&quot;0&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;152&quot; height=&quot;65&quot; name=&quot;GW&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-top&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;481&quot; y=&quot;32.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;481&quot; dy=&quot;0&quot;&gt;Gateway (redirect)&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g&gt;&lt;line id=&quot;actor1&quot; x1=&quot;280&quot; y1=&quot;65&quot; x2=&quot;280&quot; y2=&quot;657&quot; class=&quot;actor-line 200&quot; stroke-width=&quot;0.5px&quot; stroke=&quot;#999&quot; name=&quot;EA&quot; data-et=&quot;life-line&quot; data-id=&quot;EA&quot;&gt;&lt;/line&gt;&lt;g id=&quot;root-1&quot; data-et=&quot;participant&quot; datatype=&quot;participant&quot; data-id=&quot;EA&quot;&gt;&lt;rect x=&quot;205&quot; y=&quot;0&quot; fill=&quot;#eaeaea&quot; stroke=&quot;#666&quot; width=&quot;150&quot; height=&quot;65&quot; name=&quot;EA&quot; rx=&quot;3&quot; ry=&quot;3&quot; class=&quot;actor actor-top&quot;&gt;&lt;/rect&gt;&lt;text x=&quot;280&quot; y=&quot;32.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-box&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;280&quot; dy=&quot;0&quot;&gt;Events API&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;/g&gt;&lt;g&gt;&lt;line id=&quot;actor0&quot; x1=&quot;75&quot; y1=&quot;80&quot; x2=&quot;75&quot; y2=&quot;657&quot; class=&quot;actor-line 200&quot; stroke-width=&quot;0.5px&quot; stroke=&quot;#999&quot; name=&quot;A&quot; data-et=&quot;life-line&quot; data-id=&quot;A&quot;&gt;&lt;/line&gt;&lt;/g&gt;&lt;style&gt;#mermaid-0{font-family:arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-0 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-0 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-0 .error-icon{fill:#552222;}#mermaid-0 .error-text{fill:#552222;stroke:#552222;}#mermaid-0 .edge-thickness-normal{stroke-width:1px;}#mermaid-0 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-0 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-0 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-0 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-0 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-0 .marker{fill:#333333;stroke:#333333;}#mermaid-0 .marker.cross{stroke:#333333;}#mermaid-0 svg{font-family:arial,sans-serif;font-size:16px;}#mermaid-0 p{margin:0;}#mermaid-0 .actor{stroke:#9370DB;fill:#ECECFF;stroke-width:1;}#mermaid-0 rect.actor.outer-path[data-look=&quot;neo&quot;]{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 rect.note[data-look=&quot;neo&quot;]{stroke:#aaaa33;fill:#fff5ad;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 text.actor&gt;tspan{fill:black;stroke:none;}#mermaid-0 .actor-line{stroke:#9370DB;}#mermaid-0 .innerArc{stroke-width:1.5;stroke-dasharray:none;}#mermaid-0 .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333;}#mermaid-0 .messageLine1{stroke-width:1.5;stroke-dasharray:2,2;stroke:#333;}#mermaid-0 [id$=&quot;-arrowhead&quot;] path{fill:#333;stroke:#333;}#mermaid-0 .sequenceNumber{fill:white;}#mermaid-0 [id$=&quot;-sequencenumber&quot;]{fill:#333;}#mermaid-0 [id$=&quot;-crosshead&quot;] path{fill:#333;stroke:#333;}#mermaid-0 .messageText{fill:#333;stroke:none;}#mermaid-0 .labelBox{stroke:#9370DB;fill:#ECECFF;filter:none;}#mermaid-0 .labelText,#mermaid-0 .labelText&gt;tspan{fill:black;stroke:none;}#mermaid-0 .loopText,#mermaid-0 .loopText&gt;tspan{fill:black;stroke:none;}#mermaid-0 .sectionTitle,#mermaid-0 .sectionTitle&gt;tspan{fill:black;stroke:none;}#mermaid-0 .loopLine{stroke-width:2px;stroke-dasharray:2,2;stroke:#9370DB;fill:#9370DB;}#mermaid-0 .note{stroke:#aaaa33;fill:#fff5ad;}#mermaid-0 .noteText,#mermaid-0 .noteText&gt;tspan{fill:black;stroke:none;font-weight:normal;}#mermaid-0 .activation0{fill:#f4f4f4;stroke:#666;}#mermaid-0 .activation1{fill:#f4f4f4;stroke:#666;}#mermaid-0 .activation2{fill:#f4f4f4;stroke:#666;}#mermaid-0 .actorPopupMenu{position:absolute;}#mermaid-0 .actorPopupMenuPanel{position:absolute;fill:#ECECFF;box-shadow:0px 8px 16px 0px rgba(0,0,0,0.2);filter:drop-shadow(3px 5px 2px rgb(0 0 0 / 0.4));}#mermaid-0 .actor-man circle,#mermaid-0 line{fill:#ECECFF;stroke-width:2px;}#mermaid-0 g rect.rect{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));stroke:#9370DB;}#mermaid-0 .node .neo-node{stroke:#9370DB;}#mermaid-0 [data-look=&quot;neo&quot;].node rect,#mermaid-0 [data-look=&quot;neo&quot;].cluster rect,#mermaid-0 [data-look=&quot;neo&quot;].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node path{stroke:#9370DB;stroke-width:1px;}#mermaid-0 [data-look=&quot;neo&quot;].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node .neo-line path{stroke:#9370DB;filter:none;}#mermaid-0 [data-look=&quot;neo&quot;].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node circle .state-start{fill:#000000;}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 :root{--mermaid-font-family:arial,sans-serif;}&lt;/style&gt;&lt;g&gt;&lt;/g&gt;&lt;defs&gt;&lt;symbol id=&quot;mermaid-0-computer&quot; width=&quot;24&quot; height=&quot;24&quot;&gt;&lt;path transform=&quot;scale(.5)&quot; d=&quot;M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z&quot;&gt;&lt;/path&gt;&lt;/symbol&gt;&lt;/defs&gt;&lt;defs&gt;&lt;symbol id=&quot;mermaid-0-database&quot; fill-rule=&quot;evenodd&quot; clip-rule=&quot;evenodd&quot;&gt;&lt;path transform=&quot;scale(.5)&quot; d=&quot;M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z&quot;&gt;&lt;/path&gt;&lt;/symbol&gt;&lt;/defs&gt;&lt;defs&gt;&lt;symbol id=&quot;mermaid-0-clock&quot; width=&quot;24&quot; height=&quot;24&quot;&gt;&lt;path transform=&quot;scale(.5)&quot; d=&quot;M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z&quot;&gt;&lt;/path&gt;&lt;/symbol&gt;&lt;/defs&gt;&lt;defs&gt;&lt;marker id=&quot;mermaid-0-arrowhead&quot; refX=&quot;7.9&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto-start-reverse&quot;&gt;&lt;path d=&quot;M -1 0 L 10 5 L 0 10 z&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;defs&gt;&lt;marker id=&quot;mermaid-0-crosshead&quot; markerWidth=&quot;15&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot; refX=&quot;4&quot; refY=&quot;4.5&quot;&gt;&lt;path fill=&quot;none&quot; stroke=&quot;#000000&quot; stroke-width=&quot;1pt&quot; d=&quot;M 1,2 L 6,7 M 6,2 L 1,7&quot; style=&quot;stroke-dasharray: 0, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;defs&gt;&lt;marker id=&quot;mermaid-0-filled-head&quot; refX=&quot;15.5&quot; refY=&quot;7&quot; markerWidth=&quot;20&quot; markerHeight=&quot;28&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 18,7 L9,13 L14,7 L9,1 Z&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;defs&gt;&lt;marker id=&quot;mermaid-0-sequencenumber&quot; refX=&quot;15&quot; refY=&quot;15&quot; markerWidth=&quot;60&quot; markerHeight=&quot;40&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;15&quot; cy=&quot;15&quot; r=&quot;6&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;defs&gt;&lt;marker id=&quot;mermaid-0-solidTopArrowHead&quot; refX=&quot;7.9&quot; refY=&quot;7.25&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto-start-reverse&quot;&gt;&lt;path d=&quot;M 0 0 L 10 8 L 0 8 z&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;defs&gt;&lt;marker id=&quot;mermaid-0-solidBottomArrowHead&quot; refX=&quot;7.9&quot; refY=&quot;0.75&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto-start-reverse&quot;&gt;&lt;path d=&quot;M 0 0 L 10 0 L 0 8 z&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;defs&gt;&lt;marker id=&quot;mermaid-0-stickTopArrowHead&quot; refX=&quot;7.5&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto-start-reverse&quot;&gt;&lt;path d=&quot;M 0 0 L 7 7&quot; stroke=&quot;black&quot; stroke-width=&quot;1.5&quot; fill=&quot;none&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;defs&gt;&lt;marker id=&quot;mermaid-0-stickBottomArrowHead&quot; refX=&quot;7.5&quot; refY=&quot;0&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto-start-reverse&quot;&gt;&lt;path d=&quot;M 0 7 L 7 0&quot; stroke=&quot;black&quot; stroke-width=&quot;1.5&quot; fill=&quot;none&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;/defs&gt;&lt;g class=&quot;actor-man actor-top&quot; name=&quot;A&quot; data-et=&quot;participant&quot; datatype=&quot;actor&quot; data-id=&quot;A&quot; style=&quot;stroke: rgb(147, 112, 219);&quot;&gt;&lt;line id=&quot;actor-man-torso0&quot; x1=&quot;75&quot; y1=&quot;25&quot; x2=&quot;75&quot; y2=&quot;45&quot;&gt;&lt;/line&gt;&lt;line id=&quot;actor-man-arms0&quot; x1=&quot;57&quot; y1=&quot;33&quot; x2=&quot;93&quot; y2=&quot;33&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;57&quot; y1=&quot;60&quot; x2=&quot;75&quot; y2=&quot;45&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;75&quot; y1=&quot;45&quot; x2=&quot;91&quot; y2=&quot;60&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;75&quot; cy=&quot;10&quot; r=&quot;15&quot; width=&quot;150&quot; height=&quot;65&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;75&quot; y=&quot;67.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-man&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;75&quot; dy=&quot;0&quot;&gt;Attendee&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;text x=&quot;176&quot; y=&quot;80&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;submit registration&lt;/text&gt;&lt;line x1=&quot;82&quot; y1=&quot;109&quot; x2=&quot;276&quot; y2=&quot;109&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i1&quot; data-from=&quot;A&quot; data-to=&quot;EA&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;75&quot; y1=&quot;109&quot; x2=&quot;75&quot; y2=&quot;109&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;75&quot; y=&quot;113&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;1&lt;/text&gt;&lt;text x=&quot;522&quot; y=&quot;124&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;create purchase, seat reserved&lt;/text&gt;&lt;line x1=&quot;287&quot; y1=&quot;153&quot; x2=&quot;763&quot; y2=&quot;153&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i2&quot; data-from=&quot;EA&quot; data-to=&quot;DV&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;280&quot; y1=&quot;153&quot; x2=&quot;280&quot; y2=&quot;153&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;280&quot; y=&quot;157&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;2&lt;/text&gt;&lt;text x=&quot;179&quot; y=&quot;168&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;302 to the gateway&lt;/text&gt;&lt;line x1=&quot;285&quot; y1=&quot;197&quot; x2=&quot;79&quot; y2=&quot;197&quot; class=&quot;messageLine1&quot; data-et=&quot;message&quot; data-id=&quot;i3&quot; data-from=&quot;EA&quot; data-to=&quot;A&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;stroke-dasharray: 3, 3; fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;280&quot; y1=&quot;197&quot; x2=&quot;280&quot; y2=&quot;197&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;280&quot; y=&quot;201&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;3&lt;/text&gt;&lt;text x=&quot;277&quot; y=&quot;212&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;GET ...?purchaseId=...&lt;/text&gt;&lt;line x1=&quot;82&quot; y1=&quot;241&quot; x2=&quot;477&quot; y2=&quot;241&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i4&quot; data-from=&quot;A&quot; data-to=&quot;GW&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;75&quot; y1=&quot;241&quot; x2=&quot;75&quot; y2=&quot;241&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;75&quot; y=&quot;245&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;4&lt;/text&gt;&lt;text x=&quot;623&quot; y=&quot;256&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;read purchase, price, currency&lt;/text&gt;&lt;line x1=&quot;488&quot; y1=&quot;285&quot; x2=&quot;763&quot; y2=&quot;285&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i5&quot; data-from=&quot;GW&quot; data-to=&quot;DV&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;481&quot; y1=&quot;285&quot; x2=&quot;481&quot; y2=&quot;285&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;481&quot; y=&quot;289&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;5&lt;/text&gt;&lt;text x=&quot;723&quot; y=&quot;300&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;create checkout session&lt;/text&gt;&lt;line x1=&quot;488&quot; y1=&quot;329&quot; x2=&quot;963&quot; y2=&quot;329&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i6&quot; data-from=&quot;GW&quot; data-to=&quot;ST&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;481&quot; y1=&quot;329&quot; x2=&quot;481&quot; y2=&quot;329&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;481&quot; y=&quot;333&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;6&lt;/text&gt;&lt;text x=&quot;280&quot; y=&quot;344&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;302 to the hosted payment page&lt;/text&gt;&lt;line x1=&quot;486&quot; y1=&quot;373&quot; x2=&quot;79&quot; y2=&quot;373&quot; class=&quot;messageLine1&quot; data-et=&quot;message&quot; data-id=&quot;i7&quot; data-from=&quot;GW&quot; data-to=&quot;A&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;stroke-dasharray: 3, 3; fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;481&quot; y1=&quot;373&quot; x2=&quot;481&quot; y2=&quot;373&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;481&quot; y=&quot;377&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;7&lt;/text&gt;&lt;text x=&quot;520&quot; y=&quot;388&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;pay&lt;/text&gt;&lt;line x1=&quot;82&quot; y1=&quot;417&quot; x2=&quot;963&quot; y2=&quot;417&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i8&quot; data-from=&quot;A&quot; data-to=&quot;ST&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;75&quot; y1=&quot;417&quot; x2=&quot;75&quot; y2=&quot;417&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;75&quot; y=&quot;421&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;8&lt;/text&gt;&lt;text x=&quot;523&quot; y=&quot;432&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;302 to the result page&lt;/text&gt;&lt;line x1=&quot;972&quot; y1=&quot;461&quot; x2=&quot;79&quot; y2=&quot;461&quot; class=&quot;messageLine1&quot; data-et=&quot;message&quot; data-id=&quot;i9&quot; data-from=&quot;ST&quot; data-to=&quot;A&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;stroke-dasharray: 3, 3; fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;967&quot; y1=&quot;461&quot; x2=&quot;967&quot; y2=&quot;461&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;967&quot; y=&quot;465&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;9&lt;/text&gt;&lt;text x=&quot;1121&quot; y=&quot;476&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;signed &quot;session completed&quot; event&lt;/text&gt;&lt;line x1=&quot;974&quot; y1=&quot;505&quot; x2=&quot;1273&quot; y2=&quot;505&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i10&quot; data-from=&quot;ST&quot; data-to=&quot;WH&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;967&quot; y1=&quot;505&quot; x2=&quot;967&quot; y2=&quot;505&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;967&quot; y=&quot;509&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;10&lt;/text&gt;&lt;text x=&quot;1024&quot; y=&quot;520&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;run the checks, then finalize&lt;/text&gt;&lt;line x1=&quot;1282&quot; y1=&quot;549&quot; x2=&quot;771&quot; y2=&quot;549&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i11&quot; data-from=&quot;WH&quot; data-to=&quot;DV&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;1277&quot; y1=&quot;549&quot; x2=&quot;1277&quot; y2=&quot;549&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;1277&quot; y=&quot;553&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;11&lt;/text&gt;&lt;text x=&quot;1024&quot; y=&quot;564&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;re-read, assert the purchase is paid&lt;/text&gt;&lt;line x1=&quot;1282&quot; y1=&quot;593&quot; x2=&quot;771&quot; y2=&quot;593&quot; class=&quot;messageLine0&quot; data-et=&quot;message&quot; data-id=&quot;i12&quot; data-from=&quot;WH&quot; data-to=&quot;DV&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;1277&quot; y1=&quot;593&quot; x2=&quot;1277&quot; y2=&quot;593&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;1277&quot; y=&quot;597&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;12&lt;/text&gt;&lt;text x=&quot;1124&quot; y=&quot;608&quot; text-anchor=&quot;middle&quot; dominant-baseline=&quot;middle&quot; alignment-baseline=&quot;middle&quot; class=&quot;messageText&quot; dy=&quot;1em&quot; style=&quot;font-family: arial, sans-serif; font-size: 16px; font-weight: 400;&quot;&gt;200&lt;/text&gt;&lt;line x1=&quot;1282&quot; y1=&quot;637&quot; x2=&quot;971&quot; y2=&quot;637&quot; class=&quot;messageLine1&quot; data-et=&quot;message&quot; data-id=&quot;i13&quot; data-from=&quot;WH&quot; data-to=&quot;ST&quot; stroke-width=&quot;2&quot; stroke=&quot;none&quot; marker-end=&quot;url(#mermaid-0-arrowhead)&quot; style=&quot;stroke-dasharray: 3, 3; fill: none;&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;1277&quot; y1=&quot;637&quot; x2=&quot;1277&quot; y2=&quot;637&quot; stroke-width=&quot;0&quot; marker-start=&quot;url(#mermaid-0-sequencenumber)&quot;&gt;&lt;/line&gt;&lt;text x=&quot;1277&quot; y=&quot;641&quot; font-family=&quot;sans-serif&quot; font-size=&quot;12px&quot; text-anchor=&quot;middle&quot; class=&quot;sequenceNumber&quot;&gt;13&lt;/text&gt;&lt;g class=&quot;actor-man actor-bottom&quot; name=&quot;A&quot; style=&quot;stroke: rgb(147, 112, 219);&quot;&gt;&lt;line id=&quot;actor-man-torso5&quot; x1=&quot;75&quot; y1=&quot;682&quot; x2=&quot;75&quot; y2=&quot;702&quot;&gt;&lt;/line&gt;&lt;line id=&quot;actor-man-arms5&quot; x1=&quot;57&quot; y1=&quot;690&quot; x2=&quot;93&quot; y2=&quot;690&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;57&quot; y1=&quot;717&quot; x2=&quot;75&quot; y2=&quot;702&quot;&gt;&lt;/line&gt;&lt;line x1=&quot;75&quot; y1=&quot;702&quot; x2=&quot;91&quot; y2=&quot;717&quot;&gt;&lt;/line&gt;&lt;circle cx=&quot;75&quot; cy=&quot;667&quot; r=&quot;15&quot; width=&quot;150&quot; height=&quot;65&quot;&gt;&lt;/circle&gt;&lt;text x=&quot;75&quot; y=&quot;724.5&quot; dominant-baseline=&quot;central&quot; alignment-baseline=&quot;central&quot; class=&quot;actor actor-man&quot; style=&quot;text-anchor: middle; font-size: 16px; font-weight: 400; font-family: arial, sans-serif;&quot;&gt;&lt;tspan x=&quot;75&quot; dy=&quot;0&quot;&gt;Attendee&lt;/tspan&gt;&lt;/text&gt;&lt;/g&gt;&lt;/svg&gt;&lt;/div&gt;
&lt;h3 id=&quot;so-what-tooling-do-we-use&quot;&gt;So what tooling do we use?&lt;/h3&gt;
&lt;p&gt;First, you need to choose a payment provider. This decision matters because the provider will take a percentage of each transaction, so do your research.&lt;/p&gt;
&lt;p&gt;For my case, as I want to give an example of a widely used provider, I chose &lt;a href=&quot;https://stripe.com/&quot;&gt;Stripe&lt;/a&gt; to integrate the payment.&lt;/p&gt;
&lt;p&gt;And for the 2 Endpoints (3 if we count a custom return page), I chose to build everything with Azure Functions, because:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Microsoft-native hosting&lt;/strong&gt;: the integration stays within the Azure ecosystem.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Low operating cost&lt;/strong&gt;: for this workload, Azure Functions can be extremely inexpensive.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Secure secret storage&lt;/strong&gt;: Stripe credentials can live in Azure Key Vault.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Managed identity for Dataverse&lt;/strong&gt;: the Functions app can authenticate without storing a Dataverse client secret.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;So my final Azure setup looks like this:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;My Azure Setup&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Blue: Function / Golden: Dataverse Managed Entity &amp;#x26; Key Vault / Green: Landing Return Page&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Blue: Function / Golden: Dataverse Managed Entity &amp;#x26; Key Vault / Green: Landing Return Page&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr&gt;
&lt;h2 id=&quot;implementation-steps&quot;&gt;Implementation Steps&lt;/h2&gt;
&lt;h3 id=&quot;1-what-youll-need-from-dynamics-customer-insights&quot;&gt;1. What you’ll need from Dynamics Customer Insights&lt;/h3&gt;
&lt;p&gt;First thing to build in Customer Insights journeys is a &lt;strong&gt;payment provider record&lt;/strong&gt; (&lt;code&gt;msevtmgt_paymentprovider&lt;/code&gt;): the partial URL of your payment page (the first Azure Function endpoint), plus &lt;code&gt;msevtmgt_paymenttimeoutminutes&lt;/code&gt;, which is how long the seat stays reserved. The second one is configured on the provider’s side and never touches Dataverse configuration at all.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Payment Provider&amp;#x27;s Records&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Dev tips&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;To debug the function locally, you will need a record redirecting to your local server like the one shown in the picture.&lt;/p&gt;
&lt;/div&gt;
&lt;h3 id=&quot;2-setting-up-an-account-in-an-online-payment-provider&quot;&gt;2. Setting up an account in an online payment provider&lt;/h3&gt;
&lt;p&gt;In my case, I chose Stripe, and it is a very straightforward process. Under &lt;a href=&quot;https://dashboard.stripe.com/register&quot;&gt;this website&lt;/a&gt;, you can register, and then you can open a sandbox account and generate a new API key for your tests:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Stripe API Keys&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;I found the &lt;strong&gt;one-time payments permission&lt;/strong&gt; template works well for this scenario.&lt;/p&gt;
&lt;p&gt;The good thing about using a test account is that you can test without real money and check if the checkout is working and it’s redirecting correctly from your customer insights registration form to the return page.&lt;/p&gt;
&lt;h3 id=&quot;3-azure-functions-️-customer-insights-journeys&quot;&gt;3. Azure Functions ❤️ Customer Insights Journeys&lt;/h3&gt;
&lt;p&gt;Before we build them, things to take into consideration:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Both Azure Functions use anonymous HTTP triggers, but that does not mean both requests are trusted.&lt;/strong&gt; Dataverse builds the redirect URL for a browser, and a payment provider cannot send a function key. Neither caller can be authenticated with a shared secret, so each one has to be authenticated by what it &lt;em&gt;is&lt;/em&gt;: the webhook by its signature, the redirect endpoint not at all. The redirect endpoint therefore has to treat every incoming query parameter as untrusted.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The money and the record of the money live in different systems.&lt;/strong&gt; Stripe knows a payment succeeded. Dataverse knows whether a seat is still reserved. Nothing makes those two agree, and no transaction spans them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Webhooks are delivered at least once, in no particular order.&lt;/strong&gt; Every check has to be written for “this exact event may arrive again, or late, or after its opposite”.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The reservation has a deadline&lt;/strong&gt;, and so does the checkout session. Order those two wrongly and money arrives for a seat that is already gone.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A user-assigned managed identity, and no Dataverse secret anywhere.&lt;/strong&gt; Not in Key Vault, not in an app setting, not in the repository. The identity is added as an application user in the target environment, and that is the whole authentication story on the Dataverse side.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The payment provider’s two secrets in Key Vault&lt;/strong&gt;, referenced from app settings and resolved by that same identity. Two secrets in the entire system, both belonging to Stripe.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now, to the code.&lt;/p&gt;
&lt;p&gt;The whole gateway is around 3,000 lines of C#, and most of it is not interesting. What is interesting is the handful of functions I got wrong the first time. So I put a &lt;strong&gt;skeleton&lt;/strong&gt; of the project in &lt;a href=&quot;https://github.com/martinplopez/CIJ-Stripe-Payments&quot;&gt;my GitHub repository&lt;/a&gt;: the interfaces, the configuration, the currency conversion and the order of the checks are all there, but the bodies of the two endpoints are &lt;code&gt;// TODO&lt;/code&gt;. It compiles.&lt;/p&gt;
&lt;p&gt;It does not take a payment.&lt;/p&gt;
&lt;p&gt;That is on purpose, I deliberately left the endpoint bodies incomplete. A payment gateway is not something I want readers to copy into production without understanding the validation, retry and failure paths around it. Use the skeleton as a starting point, whether you complete it yourself or with AI assistance, but make sure you understand every check before taking real payments.&lt;/p&gt;
&lt;p&gt;The first function creates the Stripe Checkout session:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; createOptions&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; SessionCreateOptions&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    Mode &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;payment&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    PaymentMethodTypes &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;card&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;],              &lt;/span&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;// load-bearing, see below&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    LineItems &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; [&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; SessionLineItemOptions&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        Quantity &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        PriceData &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; SessionLineItemPriceDataOptions&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            Currency    &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; currency,             &lt;/span&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;// lower case: &quot;chf&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            UnitAmount  &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; unitAmount,           &lt;/span&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;// minor units: 25.00 -&gt; 2500&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            ProductData &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;() { Name &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; request.LineItemName },&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        },&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }],&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    Metadata          &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;() { [&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;order_id&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; orderId },   &lt;/span&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;// the only id the webhook reads back&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    PaymentIntentData &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; SessionPaymentIntentDataOptions&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        Metadata &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;() { [&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;order_id&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; orderId },        &lt;/span&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;// Checkout does not copy it for you&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    },&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    ClientReferenceId &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; orderId,                &lt;/span&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;// for the dashboard, never trusted&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    SuccessUrl &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; successUrl,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    CancelUrl  &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; cancelUrl,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    ExpiresAt  &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; expiresAt,                     &lt;/span&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;// must expire BEFORE the Dataverse reservation&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;};&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Three Stripe details that caused me trouble:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;PaymentMethodTypes = [&quot;card&quot;]&lt;/code&gt; is load-bearing.&lt;/strong&gt; Cards settle immediately, so &lt;code&gt;checkout.session.completed&lt;/code&gt; arrives while the seat is still reserved. Add anything asynchronous, a bank debit or a voucher, and the normal case becomes: the completed event arrives unpaid, the reservation lapses, and the money lands days later against a purchase Dataverse has already closed. Those attendees get refunded instead of registered.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;order_id&lt;/code&gt; goes on the session &lt;em&gt;and&lt;/em&gt; on the payment intent.&lt;/strong&gt; Checkout does not copy session metadata onto the payment intent, and “has this purchase already been paid?” is a question you ask of payment intents.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;code&gt;client_reference_id&lt;/code&gt; is written and never read back.&lt;/strong&gt; More on that in the next section.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The second one is the function this whole article is really about, the call that tells Dataverse the money arrived:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; request&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; OrganizationRequest&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msevtmgt_finalizeregistrationpayment&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msevtmgt_purchaseid&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]    &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; purchaseId,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    [&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msevtmgt_paymentstatus&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; OptionSetValue&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;int&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)status),  &lt;/span&gt;&lt;span style=&quot;color:#6A737D&quot;&gt;// 100000001 = Completed&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;};&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;await&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; service.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ExecuteAsync&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(request, cancellationToken);&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;That is it. Two parameters, and Event Management does the rest: it marks the purchase paid and turns the reservation into a registration.&lt;/p&gt;
&lt;p&gt;Now look at what comes back: nothing. The custom API answers with a void response whether or not it did anything. “&lt;strong&gt;Dataverse accepted the call” and “the attendee has a paid registration” are two different claims&lt;/strong&gt;, and only the first one is proven, which is why the gateway reads &lt;code&gt;msevtmgt_paid&lt;/code&gt; back afterwards.&lt;/p&gt;
&lt;p&gt;The rest of the webhook is the unglamorous part that matters. Every delivery ends at exactly one of 22 named outcomes, &lt;code&gt;finalized&lt;/code&gt;, &lt;code&gt;already-cancelled&lt;/code&gt;, &lt;code&gt;session-purchase-mismatch&lt;/code&gt;, &lt;code&gt;late-payment-refunded&lt;/code&gt;, each logged as a single line with a severity. That string is what you alert on, and the alert for a duplicate payment is one to set up before you go live, not after an attendee tells you they paid twice.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;learnings-from-the-implementation&quot;&gt;Learnings from the implementation&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A least-privilege security role, derived rather than guessed.&lt;/strong&gt; I got the first deployment green with the built-in &lt;code&gt;Event Administrator&lt;/code&gt; plus &lt;code&gt;Basic User&lt;/code&gt; pair, which is about 900 privileges, then built a custom role by taking privileges &lt;em&gt;from that pair, at the depth they have there&lt;/em&gt;, until it still worked. It ended at roughly a hundred. Because the custom role is a strict subset of a configuration known to work, a failure means the list cut something real, and the Dataverse fault names the exact privilege. That is a much better afternoon than guessing upwards from nothing.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Add a back button to the return page (if you created one like me).&lt;/strong&gt; When creating a return page, it will just contain a successful or an unsuccessful web page. You could add a button so the client doesn’t feel like this is the end and he can go back to the event or the journey.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Set up an alert in the logs to get notified of duplicate charges.&lt;/strong&gt; When a payment is received twice for one registration, you should be able to identify it and correct it as soon as possible. You can set up Log Analytics for the Azure Functions.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And my favourite: ⭐ &lt;strong&gt;Even though the Documentation points at using this feature only via Event API, it works with standard event registration forms.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When developing this feature, it’s easier to test it through the Event API, so you can programmatically trigger the registrations. Once it’s configured and the Azure Functions are deployed, you can create an event with a form where you can just put a pass and select the payment provider. It will redirect to the checkout page and to your return pages correctly.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Paid registrations in Customer Insights Journeys require an implementation that &lt;strong&gt;might not make sense for every organization&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Before building it, consider the number of paid events you run, the volume of registrations you handle, and whether the value of &lt;strong&gt;keeping the entire registration experience inside Customer Insights - Journeys justifies the development and ongoing maintenance&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Ultimately, it is a solid solution, absolutely doable, and the platform holds up its end. Just go in knowing that &lt;strong&gt;you are adopting a small piece of payment infrastructure, not switching on a feature&lt;/strong&gt; 💳&lt;/p&gt;
&lt;h3 id=&quot;need-help-with-customer-insights---journeys&quot;&gt;Need help with Customer Insights - Journeys?&lt;/h3&gt;
&lt;p&gt;If you’re planning a paid-event solution, integration, or broader Customer Insights - Journeys implementation, I can help you design and deliver it without overcomplicating the architecture.&lt;/p&gt;
&lt;p&gt;If you’re working on something similar, feel free to get in touch.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Event Management</category><category>Marketing Automation</category><category>Power Platform</category></item><item><title>4 Learnings from Multi-Session Events in Customer Insights - Journeys</title><link>https://martinplopez.com/writing/learnings-multi-session-events/</link><guid isPermaLink="true">https://martinplopez.com/writing/learnings-multi-session-events/</guid><description>Four practical lessons from implementing multi-session events in Customer Insights - Journeys, covering registration forms, session visibility, confirmation emails, and cancellations.</description><pubDate>Fri, 21 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;I’m standing at my desk with the air from the fan hitting my back. In front of me, my client asks how we could improve registration for an event with three workshops running at the same time.&lt;/p&gt;
&lt;p&gt;For me, the answer was clear: sessions. But my client had never worked with them before.&lt;/p&gt;
&lt;p&gt;And lately, they haven’t been the only client asking about this kind of event. That encouraged me to revisit session management in Dynamics 365 Customer Insights - Journeys and see how it behaves in real implementations.&lt;/p&gt;
&lt;p&gt;Here are four things I learned along the way.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Only publish sessions attendees should actually see and register for; draft sessions are useful for internal agenda items.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For simultaneous sessions, the standard registration experience may need custom logic to prevent attendees from choosing conflicting time slots.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Session registration data works well in confirmation emails, but a small Dataverse customization can make sorting by session start time much easier.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-use-sessions-in-the-first-place&quot;&gt;Why use sessions in the first place&lt;/h2&gt;
&lt;p&gt;Sessions are a structured way to manage an event agenda. They’re especially useful for events with multiple presentations or workshops, as they allow you to track how many attendees have registered for each one.&lt;/p&gt;
&lt;p&gt;They also help with event coordination by letting you manage capacity for individual sessions. Instead of keeping the agenda in a separate document or note, everything stays connected to the event and visible in the calendar.&lt;/p&gt;
&lt;p&gt;And sessions aren’t limited to in-person events. Customer Insights - Journeys also supports online sessions with different Microsoft Teams meetings, making it possible to run simultaneous virtual sessions with separate registrations.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;my-4-implementation-learnings&quot;&gt;My 4 Implementation learnings&lt;/h2&gt;
&lt;h3 id=&quot;1-if-you-dont-want-to-show-some-sessions-just-leave-them-in-draft&quot;&gt;1. If you don’t want to show some sessions, just leave them in draft&lt;/h3&gt;
&lt;p&gt;When you’re in an event and you click on the agenda tab, it will display a calendar view with a sub-grid underneath. The sub-grid will show the sessions that you have linked to this event, and even a summary of all the people registered to each session.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Sessions for the day&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;This overview might not be for every user. So to prevent users from registering for the lunch pause, it’s as simple as &lt;strong&gt;leaving the sessions as draft&lt;/strong&gt;, and &lt;strong&gt;only Live sessions will be available for registration&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id=&quot;2-adapting-the-form-is-a-must-especially-with-simultaneous-sessions&quot;&gt;2. Adapting the form is a must, especially with simultaneous sessions&lt;/h3&gt;
&lt;p&gt;It’s not a surprise that the form that Microsoft provides to register sessions is neither looking great, nor very functional with some requirements of some customers.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Default Form&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;For instance, if you are displaying different sessions that happen at the same time, in the standard form people can subscribe to different sessions that happen at the same time. In order to prevent this, you have to directly &lt;strong&gt;edit the HTML by adding some CSS and custom JavaScript&lt;/strong&gt; to allow the one-session-per-time-slot logic to take place.&lt;/p&gt;
&lt;p&gt;Customer Insights - Journeys does have an option to allow only one session registration, but that doesn’t solve this scenario: attendees should still be able to select multiple sessions throughout the day, just not overlapping ones.&lt;/p&gt;
&lt;p&gt;Luckily, &lt;strong&gt;AI can speed up the JavaScript and CSS work considerably&lt;/strong&gt;, but the important part is defining and testing the registration logic correctly. Especially around overlapping times, mobile behaviour, and different event configurations, but it can give you great results like the following one:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/writing/learnings-multi-session-events/image.gif&quot; alt=&quot;Custom Form&quot;&gt;&lt;/p&gt;
&lt;p&gt;The good thing for making a nice-looking form for sessions is that you can &lt;strong&gt;reuse it for multiple events&lt;/strong&gt;, especially once you’ve implemented the one-session-per-time-slot logic.&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thank you Page&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Mind the Thank you page, if you reuse the default form, it will automatically display the sessions that you subscribed to.&lt;/p&gt;
&lt;p&gt;You can hide the sessions with a JavaScript or customize the thank you and add the sessions as I described &lt;a href=&quot;/writing/dynamic-thank-you-page-dynamics-365&quot;&gt;in this article&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;h3 id=&quot;3-lists-are-fantastic-for-emailing-session-details-you-just-have-to-know-how&quot;&gt;3. Lists are fantastic for emailing session details, you just have to know how&lt;/h3&gt;
&lt;p&gt;To include the sessions an attendee registered for in an email, make sure you’re working with the &lt;strong&gt;Session Registration&lt;/strong&gt; table rather than the &lt;strong&gt;Session&lt;/strong&gt; table, with the following structure: &lt;code&gt;Marketing Event Registration Reference --&gt; Session Registrations&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Session Registrations&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;The challenge is that the session start time belongs to the Session record, not the Session Registration record. Because of that, I couldn’t reliably sort my session-registration list chronologically using the field I actually needed.&lt;/p&gt;
&lt;p&gt;My workaround for this was to create a field on the session registration table called session start. It is a formula field that will automatically get the start time from the session and put it on your session registration.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Creating the new field&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;This allows you to sort the session registrations by start date, making the agenda in the email much more natural for the attendee.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Email with sessions&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Sessions showing in the right order&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Sessions showing in the right order&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h3 id=&quot;4-be-intentional-about-allowing-attendees-to-cancel-individual-sessions&quot;&gt;4. Be intentional about allowing attendees to cancel individual sessions&lt;/h3&gt;
&lt;p&gt;When testing to cancel my registrations for the event or the sessions, I discovered first that the phone view of the standard cancellation form is terrible.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cancellation Form&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Terrible for a phone&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Terrible for a phone&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;And second, it will allow you, when you have registered sessions, to cancel your session registrations. The problem is that this is a standard form, so it will display all the live session registrations of the event, even the ones that the person didn’t register for.&lt;/p&gt;
&lt;p&gt;Clicking a session the user isn’t registered for has no effect. Clicking a session they are registered for cancels their registration.&lt;/p&gt;
&lt;p&gt;Most of my clients don’t want attendees to have the option to cancel individual sessions, especially since they can’t register for a replacement session from the same page.&lt;/p&gt;
&lt;p&gt;My recommendation here is to:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Make the form responsive for phones 🙏&lt;/li&gt;
&lt;li&gt;Hide or disable the session-level cancellation controls with JavaScript so attendees can only cancel their entire event registration.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I normally recommend this because there is only one standard cancellation form. I try to avoid heavily customizing it, as it will be reused for all the cancellation options of all your events. When your event doesn’t have sessions, it will also use this one.&lt;/p&gt;
&lt;p&gt;There are certain ways to prevent this by linking emails to a certain cancellation form, but it makes the logic a bit more complex than what the clients are normally looking for.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Sessions are one of those Customer Insights - Journeys features that look straightforward until you start applying real event requirements to them.&lt;/p&gt;
&lt;p&gt;If I were implementing a multi-session event tomorrow, I would spend most of my time thinking about the attendee experience: Can they accidentally select overlapping sessions? Is their agenda clear in the confirmation email? And do the cancellation options match what the event organizer actually wants?&lt;/p&gt;
&lt;p&gt;The standard session functionality gives you a good foundation, but don’t assume the default registration and cancellation experiences will cover every requirement. Test the complete journey from registration to confirmation to cancellation before going live.&lt;/p&gt;
&lt;p&gt;And if your event has three workshops happening at 10:00, make sure your attendees can’t somehow be in all three. 😉&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Event Management</category><category>Marketing Automation</category><category>Power Platform</category></item><item><title>Teams Webinar V2 in Customer Insights Journeys: First Lessons Learned</title><link>https://martinplopez.com/writing/teamsv2-customer-insights-journeys-lessons/</link><guid isPermaLink="true">https://martinplopez.com/writing/teamsv2-customer-insights-journeys-lessons/</guid><description>Two months after setting up Teams Webinar V2 authentication for Customer Insights - Journeys, here is what actually broke, what the documentation does not tell you about real customer setups and the checks I now run before every webinar.</description><pubDate>Fri, 07 Aug 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In June I wrote about &lt;a href=&quot;/writing/teamsv2-customer-insights-journeys/&quot;&gt;how to set up Teams Webinar V2 authentication for Customer Insights - Journeys&lt;/a&gt;: the app registration, the federated credentials, the Graph permissions, the access policy.&lt;/p&gt;
&lt;p&gt;Since then, that article has done something I didn’t fully expect. People don’t ask me &lt;em&gt;how&lt;/em&gt; to set it up anymore. &lt;strong&gt;They ask why it still doesn’t work&lt;/strong&gt; 🙋&lt;/p&gt;
&lt;p&gt;And the interesting part is that it’s almost always the same short list of things. Not the setup itself, which most admins get through fine, but the gap between “the configuration is saved” and “my webinar actually behaves the way I promised the business it would”.&lt;/p&gt;
&lt;p&gt;So this is the follow-up: &lt;strong&gt;the first lessons from running this in the wild&lt;/strong&gt;, and the checklist I now run before anyone books a webinar.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Teams Webinar V2 setup itself is not what breaks.&lt;/strong&gt; Two months of follow-ups later, the configuration from the June article has held up. The problems all sit in the gap between “the configuration is saved” and “the webinar behaves the way I promised the business it would”.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Most custom event forms are missing the Meeting Options control.&lt;/strong&gt; They were last edited before Webinar V2 existed, so the button simply isn’t there. It’s not a drag-and-drop control: you have to copy &lt;code&gt;MeetingOptions&lt;/code&gt; from the out-of-the-box form into your own form XML.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;A greyed-out Meeting Options button is a security role gap.&lt;/strong&gt; Custom event management roles usually lack the read privilege on &lt;strong&gt;Event teams properties&lt;/strong&gt; (&lt;code&gt;msevtmgt_eventteamsproperties&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Graph permissions must be Application permissions, not Delegated.&lt;/strong&gt; Adding them as delegated looks complete and saves without complaint, but the app can’t use them and the error you get downstream never mentions consent.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;If everything is by the book and it still fails, clear the browser cache and sign in again.&lt;/strong&gt; And plan for the real bottleneck: the setup touches Customer Insights, Entra ID and Teams, which in most organisations means three owners, three change processes and three weeks for one hour of technical work.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-held-up&quot;&gt;What held up&lt;/h2&gt;
&lt;p&gt;Two things from the June article I’d write exactly the same way again.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;One app registration for the whole tenant is enough.&lt;/strong&gt; Nobody has come back to me with a case that needed one app per Customer Insights environment. Adding a separate federated credential per environment on the same registration has been the right shape every time, and it keeps the permission grant and the consent in one place instead of three.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The setup is a one-time cost.&lt;/strong&gt; Once it’s correct, it stays correct. None of the problems below came from the configuration drifting on its own. They came from customer setups that differ from the out-of-the-box configuration, which, in my experience, is much more common than not.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-lessons&quot;&gt;The lessons&lt;/h2&gt;
&lt;h3 id=&quot;1-the-form-doesnt-display-the-meeting-options&quot;&gt;1. The Form doesn’t display the Meeting Options&lt;/h3&gt;
&lt;p&gt;This is the most common error and it happens to people that followed the recommended guidelines and do their form customizations in a separate form, not the out-of-the-box form. The problem with this is that probably, by the time that the form was last edited, the Webinar V2 option was not available, so many customers have the problem that the Meeting Options button directly doesn’t show:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;nowhere to be found&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;The problem with this issue is that it’s not a drag-and-drop control that you can put in a form directly, so you will have to go through the form.xml underneath to do this.&lt;/p&gt;
&lt;p&gt;If you ever edited an XML Form of Dynamics 365, you’ll know they are very easy to break. So I used the help of AI to insert the control named MeetingOptions inside the existing XML.&lt;/p&gt;
&lt;p&gt;The best way I found to do this (so far) is to provide the AI with the out-of-the-box form and then your custom form that you use normally, and ask it to copy the MeetingOptions control into your normal custom form. This will have a good result in my experience.&lt;/p&gt;
&lt;p&gt;I’m a bit old school, so I used a tool in the XrmToolbox called &lt;a href=&quot;https://www.xrmtoolbox.com/plugins/MscrmTools.FormXmlEditor/&quot;&gt;Form Xml Editor&lt;/a&gt; to extract the Xml of the forms and to upload the form with the Meeting Options control&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;This is the (new) way&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This issue will very likely not be solved with an export in the near future.&lt;/p&gt;
&lt;p&gt;With the evolution of the &lt;a href=&quot;https://github.com/microsoft/Dataverse-skills&quot;&gt;Dataverse Skills&lt;/a&gt;, you can do this with an AI directly, I just didn’t try it this use case&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;If you take one thing from this note: &lt;strong&gt;Make sure to add the controls that you use from the out-of-the-box event form to your custom form (if you use one)&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id=&quot;2-meeting-options-appears-but-the-button-is-disabled&quot;&gt;2. Meeting Options appears, but the button is disabled&lt;/h3&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;greyed out button&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;If your marketing people are using a security role that is not out of the box, for instance, if you have defined an event management security role, it might look like you have a meeting options button that shows disabled. They will need the permission to read “Event teams properties” (msevtmgt_eventteamsproperties), which you can give directly to the group.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;security role setup&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;This will give the permissions that were missing for it to work properly.&lt;/p&gt;
&lt;h3 id=&quot;3-i-set-up-the-graph-permissions-but-it-still-doesnt-work&quot;&gt;3. I set up the Graph permissions but it still doesn’t work&lt;/h3&gt;
&lt;p&gt;The Graph permissions step is where I see the most silent failures.&lt;/p&gt;
&lt;p&gt;Adding delegated permissions only to the app registration is sadly not making the cut. An admin normally would doubt to give Application Permissions as it can lead to a security threat and it might require an approval process, so he normally adds everything the documentation lists, saves, sees the full list as delegated permissions, and reasonably concludes the step is done.&lt;/p&gt;
&lt;p&gt;It isn’t. Until &lt;strong&gt;Application permissions&lt;/strong&gt; is granted for the tenant, the app can’t actually use those permissions, and the failure you get downstream doesn’t say “consent is missing”. It says something much vaguer about the webinar not being created.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Make sure the Application Permissions are not Delegated permissions.&lt;/strong&gt; That’s the whole lesson.&lt;/p&gt;
&lt;h3 id=&quot;4-we-did-everything-in-the-documentation-we-still-get-the-error-message&quot;&gt;4. We did everything in the documentation, we still get the error message&lt;/h3&gt;
&lt;p&gt;Sometimes it can take a bit of time for Dynamics 365 to apply these application setups, but mostly what I see is just a cache problem.&lt;/p&gt;
&lt;p&gt;Make sure that after you did everything in the documentation, you &lt;a href=&quot;https://its.uiowa.edu/services/how-clear-cache-and-cookies-your-web-browser&quot;&gt;clear the cache completely in the browser&lt;/a&gt;, or even sign out and sign in again. That normally makes it work.&lt;/p&gt;
&lt;h3 id=&quot;5-the-real-bottleneck-is-the-security-process&quot;&gt;5. The real bottleneck is the security process&lt;/h3&gt;
&lt;p&gt;I said this at the end of the June article and two months of follow-ups have only made me more confident about it.&lt;/p&gt;
&lt;p&gt;The setup touches Customer Insights, Entra ID and Teams, and in most organisations those are three different people with three different change processes. The technical work is maybe an hour. &lt;strong&gt;Getting those three people in the same conversation, make them understand which permissions they really need and get approval is the part that takes three weeks.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you’re a marketer or a functional consultant, the useful move is not to learn the setup, it’s to start the conversation early and bring the June article with you. If you’re the admin who owns all three, you already know how much easier your life is 😅&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;my-lessons-learned-checklist&quot;&gt;My lessons learned checklist&lt;/h2&gt;
&lt;p&gt;The short version I now run through before anyone commits to a date:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Open the event form your marketers actually use and confirm the Meeting Options control is there&lt;/strong&gt; → if it’s a custom form, assume it isn’t until you’ve seen it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Check the security role behind a greyed-out button&lt;/strong&gt; → read on Event teams properties (&lt;code&gt;msevtmgt_eventteamsproperties&lt;/code&gt;), not just the standard event privileges.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Confirm the Graph permissions are Application permissions and granted for the tenant&lt;/strong&gt; → the permission list looking complete is not the same as the app being able to use it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Clear the cache and sign out and in again before declaring it broken&lt;/strong&gt; → a good part of the “we did everything and it still fails” cases end here.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Get the Customer Insights, Entra and Teams owners into the same conversation early&lt;/strong&gt; → before a date is promised to anyone.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Steps 1 to 4 are maybe an hour of work. Step 5 is the one that decides whether that hour happens this week or in three weeks, and it’s the one people start last.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;None of these are hard problems. What do they have in common?&lt;/p&gt;
&lt;p&gt;The form saves without the control it needs. The role saves without the privilege it needs. The permissions save as delegated and the list looks exactly as complete as it would if they were right. Everything looks like it worked, right up until someone asks why they don’t see the meeting Options button or they see it, but is greyed out. That’s a bad place to discover a misconfiguration, luckily it happens before the webinar goes live and you have the chance to fix it.&lt;/p&gt;
&lt;p&gt;I wish these kinds of problems would be included in the official documentation, but until then, if this article can help someone, I’m happy to write it 😊&lt;/p&gt;
&lt;p&gt;If you haven’t done the setup yet, start with the &lt;a href=&quot;/writing/teamsv2-customer-insights-journeys/&quot;&gt;full walkthrough from June&lt;/a&gt; → this note assumes you’ve already been through it.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Power Platform</category><category>Webinar</category><category>Microsoft Teams</category><category>Microsoft Entra</category></item><item><title>Beyond the Default: Set Up and Brand a Customer Insights - Journeys Event Web App</title><link>https://martinplopez.com/writing/cij-webapp-setup-branding/</link><guid isPermaLink="true">https://martinplopez.com/writing/cij-webapp-setup-branding/</guid><description>Learn how to configure, customize, and deploy a Dynamics 365 Customer Insights - Journeys event web app using AI-assisted branding and static hosting.</description><pubDate>Fri, 17 Jul 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;After writing the article on how to create a &lt;a href=&quot;/writing/build-event-website-power-pages-dynamics-365&quot;&gt;branded portal in 20 minutes in Power Pages&lt;/a&gt;, I discovered this feature from Customer Insights Journeys.&lt;/p&gt;
&lt;p&gt;You can create a web app directly from Customer Insights Journeys and then deploy it to your hosting service, like Azure or Vercel. To test it, I created &lt;a href=&quot;https://events.roastingflow.com&quot;&gt;the event page of Roasting Flow&lt;/a&gt; which will display the events of my fake coffee shop 😉&lt;/p&gt;
&lt;p&gt;I find the idea super interesting especially with the possibilities of extending and branding the application with AI. Because you host the site yourself, you do not need Power Pages capacity for the public event website. You are still responsible for your hosting costs and the licensing of Customer Insights - Journeys.&lt;/p&gt;
&lt;p&gt;In this article, I go over how to set up a web app, run it locally, how I branded it so it aligns with my branding, and then tips to publish it online.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Customer Insights – Journeys can generate a lightweight event web app built with HTML, CSS, and JavaScript. Create separate web application records for &lt;code&gt;http://localhost:3000&lt;/code&gt; and your production HTTPS domain, authenticate both domains, and download the application.&lt;/p&gt;
&lt;p&gt;You can then run it locally with Node.js, customize its branding, and deploy the contents of the &lt;code&gt;public&lt;/code&gt; directory to a static hosting provider such as Azure Static Web Apps. Before deployment, verify the production values in &lt;code&gt;public/js/config.js&lt;/code&gt;, and make sure each live event is published to the correct web application.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-are-the-event-web-apps-from-customer-insights-journeys&quot;&gt;What are the Event Web Apps from Customer Insights Journeys?&lt;/h2&gt;
&lt;p&gt;The event web apps from Customer Insights Journeys are a feature where you can easily create a lightweight website to display your events directly integrated with dynamics customer insights. When you create one web application, you are able to download a zip file that contains the whole website in a lightweight web application built with HTML, CSS, and JavaScript. Once you have it downloaded locally, you can edit it and brand it to your needs.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/writing/cij-webapp-setup-branding/image.gif&quot; alt=&quot;new web application&quot;&gt;&lt;/p&gt;
&lt;p&gt;This allows you to be pretty flexible with regards to what you can do in the portal with the events, or not, or how to display them, apply some filters, sorting options, or searching options, as you are fully in control of your website. As well as multi-language options, which I think it’s better handled than in Power Pages.&lt;/p&gt;
&lt;h2 id=&quot;why-not-just-stick-to-power-pages&quot;&gt;Why not just stick to Power Pages?&lt;/h2&gt;
&lt;p&gt;Power Pages provides a low-code, managed option within the Power Platform and includes an event registration template for Customer Insights - Journeys. It is a good option when you want to build and maintain the website primarily through Power Pages Studio rather than working directly with the source code.&lt;/p&gt;
&lt;p&gt;However, hosting your own web application gives you more control over the front-end experience, deployment process, and hosting provider. You can modify how events are displayed, introduce custom functionality, and use the development tools and frameworks that best fit your requirements.&lt;/p&gt;
&lt;p&gt;Licensing is another consideration. Power Pages requires additional capacity for authenticated or anonymous users, whereas a self-hosted event web app uses the hosting plan you select. The most cost-effective option will depend on your expected traffic, maintenance requirements, and the capabilities your event website needs.&lt;/p&gt;
&lt;h2 id=&quot;yes-i-vibe-coded-the-branding&quot;&gt;Yes, I vibe-coded the branding&lt;/h2&gt;
&lt;p&gt;In my case, I vibe-coded the branding for my web application. It simplifies the process of branding on the web portal, but most importantly, it will respect the structure that Customer Insights has created for the event portal and just build on top of that, avoid unnecessarily restructuring the application.&lt;/p&gt;
&lt;p&gt;As with any AI-generated code, I reviewed and tested the changes before deploying them.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-i-set-it-up&quot;&gt;How I set it up&lt;/h2&gt;
&lt;h3 id=&quot;configuring-dynamics&quot;&gt;Configuring Dynamics&lt;/h3&gt;
&lt;p&gt;First thing we do in Customer Insights Journeys is go to our settings and scroll down to the event management section to click on web applications and then create a new one.&lt;/p&gt;
&lt;p&gt;We will give that web application a name and an origin. The origin must match the domain where the application is hosted so that the browser’s CORS requests to the Customer Insights - Journeys API are allowed.
I recommend creating two web applications:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One with the origin to your actual domain, which in my case is &lt;code&gt;https://events.roastingflow.com&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;One with the origin pointing to &lt;code&gt;http://localhost:3000&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This one will be entirely for your local calls, so you can see that it shows your events and it shows your event forms correctly.&lt;/p&gt;
&lt;p&gt;Once it gets saved, the token is displayed, and the endpoints are also displayed like this:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Web Application in CIJ&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;And under the endpoint documentation field, we will have an event portal web app field with a button attached to it, which allows us to download the zip file. This contains the actual website zip, we download it at this step.&lt;/p&gt;
&lt;p&gt;In order to see the registration forms, it is needed to first verify the domain in Customer Insights Journeys. We will go to Settings Domains and enter the external form hosting for your actual domain and localhost.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;localhost&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;you can fillout localhost and it will be verified automatically, no DNS stories&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;you can fillout localhost and it will be verified automatically, no DNS stories&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Open the event, go to General &gt; Publishing, select Event portal using web application, choose the appropriate web application, and publish the event. Only live events published to the web application will appear on the site.&lt;/p&gt;
&lt;h3 id=&quot;running-it-locally&quot;&gt;Running it locally&lt;/h3&gt;
&lt;p&gt;Once we download the zip, we can extract it and will find a README.md which is super useful with instructions on how to use the web app, here the prerequisites we have to run it locally:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Set up a web application record for your domain in &lt;em&gt;Customer Insights - Journeys &gt; Settings &gt; Web applications&lt;/em&gt; (required to allow the portal to call the public API)&lt;/li&gt;
&lt;li&gt;Authenticate your domains in &lt;em&gt;Customer Insights - Journeys &gt; Settings &gt; Domains&lt;/em&gt; (required for embedded event registration forms)&lt;/li&gt;
&lt;li&gt;Node.js v22 or higher (optional; only needed if you use the provided development server)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The first two we did in the previous step. So after we installed node.js, we can test our web app by opening a terminal in the directory of the webapp and running first &lt;code&gt;npm install&lt;/code&gt;. After the packages are installed, we can run &lt;code&gt;npm start&lt;/code&gt;, and we’ll get the server that is working locally:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Terminal snapshot&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;If we go to the address in a browser in our computer (the one after “Server running at ”), we’ll be able to see our event website and navigate it:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/writing/cij-webapp-setup-branding/image1.gif&quot; alt=&quot;Default Web Application&quot;&gt;&lt;/p&gt;
&lt;p&gt;Once we have this we can setup the branding of the web app.&lt;/p&gt;
&lt;h3 id=&quot;brand-it-with-ai&quot;&gt;Brand it with AI&lt;/h3&gt;
&lt;p&gt;I will not go deep in this part, I’ll just say, that I used Claude Code to brand the website using the following prompt (for my case):&lt;/p&gt;
&lt;p&gt;&lt;code&gt;This folder contains a webapp of Dynamics Customer Insights. It shows the events of this coffee shop &quot;https://www.roastingflow.com/&quot; Can you make it coherent with the style, logos and structures of the original webpage? It will be events.roastingflow.com in the future&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;This generated the plan you can find in my &lt;a href=&quot;https://github.com/martinplopez/RoastingFlowEventsWeb/blob/main/plan.md&quot;&gt;GitHub repository of the website&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The result you can find in &lt;a href=&quot;https://events.roastingflow.com&quot;&gt;the Event Portal of Roasting Flow&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;deploy-it-to-your-hosting-service&quot;&gt;Deploy it to your hosting service&lt;/h3&gt;
&lt;p&gt;Once we got out portal correctly running locally , we can deploy it to our hosting provider. This means that the portal will be accessible to the rest of the world. In my case I use GitHub to host my code and Azure Static Web Apps to host the website. But Vercel, Netlify or Cloudflare Pages would be fine as well.&lt;/p&gt;
&lt;p&gt;Before deployment, verify that &lt;code&gt;BASE_URL&lt;/code&gt;, &lt;code&gt;ORG_ID&lt;/code&gt;, &lt;code&gt;TOKEN&lt;/code&gt;, and &lt;code&gt;WEBAPP_ID&lt;/code&gt; in &lt;code&gt;public/js/config.js&lt;/code&gt; contain the values from your production web application record.&lt;/p&gt;
&lt;p&gt;The website will only show the events if these values come from the Web App Record we created with the domain for production (in my case events.roastingflow.com). If we use the ones from localhost it will not work.&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-warning&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;WARNING&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;IMPORTANT&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Before deployment, verify that &lt;code&gt;BASE_URL&lt;/code&gt;, &lt;code&gt;ORG_ID&lt;/code&gt;, &lt;code&gt;TOKEN&lt;/code&gt;, and &lt;code&gt;WEBAPP_ID&lt;/code&gt; in &lt;code&gt;public/js/config.js&lt;/code&gt; contain the values from your production web application record.&lt;/p&gt;
&lt;p&gt;The production domain must match the origin configured for that record. Values created for &lt;code&gt;http://localhost:3000&lt;/code&gt; are intended for local development and should not be used by the production website.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;WEBAPP_ID&lt;/code&gt; is optional. When it is provided, the website only displays events published to that specific web application.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;tips-and-tricks&quot;&gt;Tips and Tricks&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;If you’re not familiar with Azure Static Web Apps (SWA), you’re a developer and didn’t consider it as an option. I recommend it especially for this use case. Depending on your needs, it can get hosted for free even. Here the &lt;a href=&quot;https://learn.microsoft.com/en-us/azure/static-web-apps/overview&quot;&gt;Microsoft Learn Documentation&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;If you use Azure SWA and want to avoid problems with the token and webapp_id, you can take advantage of the environment variables of the app to have the right token and webapp_id dynamically filled out. Feel free to fork &lt;a href=&quot;https://github.com/martinplopez/RoastingFlowEventsWeb&quot;&gt;my repo in GitHub&lt;/a&gt; where it’s done already.&lt;/li&gt;
&lt;li&gt;If you want to dig deeper in the API options, Web Applications leverage the same API that Jonas Schwarzwälder talks about in &lt;a href=&quot;https://jonasschwarzwaelder.com/blog/introduction-to-cij-event-api/&quot;&gt;this amazing article&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Customer Insights - Journeys event web apps provide an interesting alternative when you need more control than the standard event experience offers. The generated application already includes event listings, search, event details, embedded registration forms, and multilingual support, while still giving you complete control over its appearance and hosting.&lt;/p&gt;
&lt;p&gt;Using AI made the initial branding work much faster, but branding is only the beginning. Because the source code is yours to customize, you can introduce different event layouts, advanced filtering and sorting, additional languages, and experiences tailored to your audience.&lt;/p&gt;
&lt;p&gt;Over the next few weeks, I will continue exploring what can be built with this architecture. Particularly its internationalization capabilities and ways to create a more flexible event discovery experience.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Event Management</category><category>Azure Static Web Apps</category><category>Power Platform Development</category></item><item><title>Advanced Connector Policies: Don’t Break Customer Insights - Journeys Publishing</title><link>https://martinplopez.com/writing/acp-customer-insights-journeys/</link><guid isPermaLink="true">https://martinplopez.com/writing/acp-customer-insights-journeys/</guid><description>Learn why Advanced Connector Policies can block Customer Insights - Journeys from publishing journeys, which connector needs to be allowed, and how to configure your policy without interrupting marketers.</description><pubDate>Fri, 03 Jul 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Some days start like any other: morning cup of coffee, daily meeting with colleagues, solve some problems from customers, etc.&lt;/p&gt;
&lt;p&gt;But today I got a message from a user. He &lt;strong&gt;couldn’t publish a customer journey&lt;/strong&gt; and he didn’t know why. He sent me the weirdest screenshot. This is more or less what he sent me:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;What happened?&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;The Journey could not be published due to the following data loss prevention (DLP) policy: &amp;#x27;Advanced Connector Policy&amp;#x27;. Contact your administrator to update the policy. Further information can be found here: https://go.microsoft.com/fwlink/?linkid=2181032&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;The Journey could not be published due to the following data loss prevention (DLP) policy: &apos;Advanced Connector Policy&apos;. Contact your administrator to update the policy. Further information can be found here: https://go.microsoft.com/fwlink/?linkid=2181032&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;My first thought was, “When did we set up the Advanced Connector Policies?”&lt;/p&gt;
&lt;p&gt;But then I remembered that it was recently and that I wasn’t involved in the process of setting it up, so I could not give any feedback on adding Customer Insights connectors to the Advanced Connector Policies. Luckily, as soon as I did, the journey started running just as before.&lt;/p&gt;
&lt;p&gt;In this article, I’ll go over what &lt;strong&gt;Advanced Connector Policies&lt;/strong&gt; (ACP) are, why it is good to implement them and how to do it without interrupting your Customer Insights - Journeys&lt;/p&gt;
&lt;p&gt;And if you are facing a similar issue, you can send your system administrator this article directly. Unless it is you, in that case you can go directly to “How did I do it”.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If Customer Insights - Journeys fails when publishing a journey after Advanced Connector Policies are enabled, check whether the required Customer Insights - Journeys connector is allowed in your policy.&lt;/p&gt;
&lt;p&gt;The key connector to look for is the native Journeys connector, currently documented by Microsoft as Dynamics 365 Marketing V2 with the ID &lt;code&gt;shared_d365marketingforapps&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Without it, journey publishing can be blocked by governance rules even though the journey itself looks valid.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-are-the-advanced-connector-policies&quot;&gt;What are the Advanced Connector Policies&lt;/h2&gt;
&lt;p&gt;Advanced Connector Policies are rules that govern how connectors can be used within Power Apps, Power Automate and Copilot Studio.&lt;/p&gt;
&lt;p&gt;Each connector can be classified as allowed or blocked. By default it will block most of the connectors and only leave the Microsoft standard ones, but you can any time adapt this allowed connectors list to your needs.&lt;/p&gt;
&lt;p&gt;This is the evolution of the idea of Data Loss Policies (DLPs), which allowed to classify the connectors and allow only certain categories. Microsoft simplified this by giving just an allowed and blocked list&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;the lists&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Advanced Connector Policies can be configured at the environment group level for bulk governance or directly on individual environments for targeted governance. They are especially powerful with Managed Environments, where administrators get more control over connectors and actions.&lt;/p&gt;
&lt;p&gt;It is not obligatory to implement these rules to all the environments, but it is recommended if you want to apply governance to your power platform environments.&lt;/p&gt;
&lt;h3 id=&quot;why-should-we-set-them-up&quot;&gt;Why should we set them up?&lt;/h3&gt;
&lt;p&gt;Advanced Connector policies are intended to reduce the risk of users unintentionally exposing organizational data through connectors used by Power Apps, Power Automate, and Copilot Studio.&lt;/p&gt;
&lt;h4 id=&quot;but-we-use-customer-insights-journeys-not-any-of-those-tools&quot;&gt;But we use Customer Insights Journeys, not any of those tools&lt;/h4&gt;
&lt;p&gt;Yes and no. When you use journeys, Microsoft is using Power Automate flows behind the curtains to do the actions in those journeys. So that means that if a connector that they use in their flows isn’t approved, by the time of publishing, the flow will fail.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Power Automate Flows from Customer Insights&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Every time you find a Power Automate flow starting with CXP_ it&amp;#x27;s a journey logic&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Every time you find a Power Automate flow starting with CXP_ it&apos;s a journey logic&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-i-set-it-up&quot;&gt;How I set it up&lt;/h2&gt;
&lt;p&gt;I will not go very deep into how to set it up, because there’s a perfectly valid Microsoft article around &lt;a href=&quot;https://learn.microsoft.com/en-us/power-platform/admin/advanced-connector-policies#configure-an-advanced-connector-policy&quot;&gt;how to set up the advanced connector policies&lt;/a&gt;. But I will give some pointers on how I set it up for Customer Insights Journeys.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/real-time-marketing-admin-settings&quot;&gt;Microsoft explains&lt;/a&gt; that it used to have another connector called &lt;strong&gt;Dynamics 365 Customer Insights - Journeys&lt;/strong&gt;, but now the one to allow is the &lt;strong&gt;Dynamics 365 Customer Insights - Journeys V2&lt;/strong&gt; connector (with ID &lt;code&gt;shared_d365marketingforapps&lt;/code&gt;).&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Power Automate Flows from Customer Insights&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;If you used to have Outbound Marketing, you might find it under Dynamics 365 Marketing.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;If you used to have Outbound Marketing, you might find it under Dynamics 365 Marketing.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;And for those of you who might think “&lt;em&gt;isn’t the normal Dynamics Customer Insights connector necessary?&lt;/em&gt;”&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Dynamics Customer Insights Connector&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;In this case, this connector refers to the Customer Insights - Data connectors of Power Automate.&lt;/p&gt;
&lt;p&gt;If you’re not using it for any of your Power Apps, Power Automate flows or Copilot Studio Agents, it can remain blocked.&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you do have Customer Insights Data and use segments in Customer Insights Journeys, your segments &lt;strong&gt;will still synchronize even with this connector blocked&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In this case, Dataverse is synced with Dynamics Customer Insights Data not by Power Automate, but by system job.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Advanced Connector Policies are a useful step forward for Power Platform governance. They give administrators a cleaner way to control which connectors are allowed and reduce the risk of data being used in places where it should not be.&lt;/p&gt;
&lt;p&gt;But in this specific case, I think the experience could be better.&lt;/p&gt;
&lt;p&gt;Most Customer Insights - Journeys users are marketers. They should not need to know which internal connector is required to publish a journey, or why a governance setting in Power Platform suddenly blocks their work.&lt;/p&gt;
&lt;p&gt;If Customer Insights - Journeys is installed in an environment, the required native connector should either be clearly highlighted during ACP configuration or automatically suggested as part of the allowed list.&lt;/p&gt;
&lt;p&gt;Hopefully, Microsoft improves this experience and this article becomes obsolete soon. Until then, I hope this helps you avoid a confusing publishing error and keeps your journeys running.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Dataverse</category><category>Power Automate</category><category>Power Platform Development</category></item><item><title>Invite Leads to Your Customer Insights Journeys Events</title><link>https://martinplopez.com/writing/leads-customer-insights-journeys-events/</link><guid isPermaLink="true">https://martinplopez.com/writing/leads-customer-insights-journeys-events/</guid><description>Learn how to invite Leads to Customer Insights Journeys events while keeping the generated Contact and original Lead connected using Power Automate.</description><pubDate>Fri, 19 Jun 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;In Customer Insights Journeys, &lt;strong&gt;events run on Contacts&lt;/strong&gt;. Registrations, check-ins, reminders, the whole journey, all of it is contact-shaped.&lt;/p&gt;
&lt;p&gt;Which is fine, until you remember that plenty of the people you’d love to have at your event aren’t contacts at all: &lt;strong&gt;they’re sitting in your Leads&lt;/strong&gt;. Prospects Sales is already working with, or people who raised their hand on a form but are not in your contact base yet.&lt;/p&gt;
&lt;p&gt;So you invite those leads to the event anyway and Customer Insights Journeys happily registers them as contacts. Now there’s a subtle catch: the new &lt;strong&gt;Event Registration points at a contact, while the Lead it actually belongs to is left on the sidelines, disconnected&lt;/strong&gt;. 🙋&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;A check in the Event Form&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;And this check isn&amp;#x27;t going to help you, it&amp;#x27;ll generate another lead for the contact. Better let if turned off for this post&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;And this check isn&apos;t going to help you, it&apos;ll generate another lead for the contact. Better let if turned off for this post&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;In this article, we explore a solution on how to solve this problem easily with a Power Automate Flow. &lt;strong&gt;This flow keeps the contact and the lead together&lt;/strong&gt;whenever a new registration is created, it finds the matching open Lead and links it to the registrant’s Contact. If no open Lead exists yet, it creates one and connects it back to the event.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Events register &lt;strong&gt;Contacts&lt;/strong&gt;, but you want your &lt;strong&gt;Leads&lt;/strong&gt; at them too, so this &lt;strong&gt;Power Automate&lt;/strong&gt; flow keeps the two linked.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;It triggers whenever an &lt;strong&gt;Event Registration&lt;/strong&gt; is added (Dataverse, scope &lt;strong&gt;Organization&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;It searches for an &lt;strong&gt;open Lead&lt;/strong&gt; (&lt;code&gt;statecode eq 0&lt;/code&gt;) with the registrant’s email. Found one? → it links that Lead to the &lt;strong&gt;Contact&lt;/strong&gt; (sets &lt;em&gt;Parent Contact&lt;/em&gt;). None yet? → it &lt;strong&gt;creates a new Lead&lt;/strong&gt;, stamped with the &lt;strong&gt;Originating Event&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The payoff: invite leads to your events and keep every registrant’s contact tied to the lead it belongs to. 🔗&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-the-out-of-the-box-behavior-works&quot;&gt;How the out-of-the-box behavior works&lt;/h2&gt;
&lt;p&gt;Microsoft will by default link the contact and the lead in the following way:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;It will first associate the lead with a contact, setting up a parent contact field with the contact assigned.&lt;/li&gt;
&lt;li&gt;Then it will create a new record on the connection entity, where it will make the contact be related to the lead as the role of a stakeholder.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot; style=&quot;--dw:504px&quot;&gt;&lt;svg id=&quot;mermaid-0&quot; width=&quot;100%&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; class=&quot;flowchart&quot; style=&quot;max-width: 503.9375px;&quot; viewBox=&quot;0 0.0209197998046875 503.9375 107.97908020019531&quot; role=&quot;graphics-document document&quot; aria-roledescription=&quot;flowchart-v2&quot;&gt;&lt;style&gt;#mermaid-0{font-family:arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-0 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-0 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-0 .error-icon{fill:#552222;}#mermaid-0 .error-text{fill:#552222;stroke:#552222;}#mermaid-0 .edge-thickness-normal{stroke-width:1px;}#mermaid-0 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-0 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-0 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-0 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-0 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-0 .marker{fill:#333333;stroke:#333333;}#mermaid-0 .marker.cross{stroke:#333333;}#mermaid-0 svg{font-family:arial,sans-serif;font-size:16px;}#mermaid-0 p{margin:0;}#mermaid-0 .label{font-family:arial,sans-serif;color:#333;}#mermaid-0 .cluster-label text{fill:#333;}#mermaid-0 .cluster-label span{color:#333;}#mermaid-0 .cluster-label span p{background-color:transparent;}#mermaid-0 .label text,#mermaid-0 span{fill:#333;color:#333;}#mermaid-0 .node rect,#mermaid-0 .node circle,#mermaid-0 .node ellipse,#mermaid-0 .node polygon,#mermaid-0 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-0 .rough-node .label text,#mermaid-0 .node .label text,#mermaid-0 .image-shape .label,#mermaid-0 .icon-shape .label{text-anchor:middle;}#mermaid-0 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-0 .rough-node .label,#mermaid-0 .node .label,#mermaid-0 .image-shape .label,#mermaid-0 .icon-shape .label{text-align:center;}#mermaid-0 .node.clickable{cursor:pointer;}#mermaid-0 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-0 .arrowheadPath{fill:#333333;}#mermaid-0 .edgePath .path{stroke:#333333;stroke-width:1px;}#mermaid-0 .flowchart-link{stroke:#333333;fill:none;}#mermaid-0 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-0 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-0 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-0 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-0 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-0 .cluster text{fill:#333;}#mermaid-0 .cluster span{color:#333;}#mermaid-0 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-0 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-0 rect.text{fill:none;stroke-width:0;}#mermaid-0 .icon-shape,#mermaid-0 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-0 .icon-shape p,#mermaid-0 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-0 .icon-shape .label rect,#mermaid-0 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-0 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-0 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-0 .node .neo-node{stroke:#9370DB;}#mermaid-0 [data-look=&quot;neo&quot;].node rect,#mermaid-0 [data-look=&quot;neo&quot;].cluster rect,#mermaid-0 [data-look=&quot;neo&quot;].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node path{stroke:#9370DB;stroke-width:1px;}#mermaid-0 [data-look=&quot;neo&quot;].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node .neo-line path{stroke:#9370DB;filter:none;}#mermaid-0 [data-look=&quot;neo&quot;].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node circle .state-start{fill:#000000;}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 :root{--mermaid-font-family:arial,sans-serif;}&lt;/style&gt;&lt;g&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 10 5 L 0 10 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;4.5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 5 L 10 10 L 10 0 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;11.5&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;10.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 11.5 7 L 0 14 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;1&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;polygon points=&quot;0,7 11.5,14 11.5,0&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/polygon&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;11&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-1&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refY=&quot;5&quot; refX=&quot;12.25&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-2&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossEnd&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;12&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossStart&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;-1&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossEnd-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;17.7&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossStart-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;-3.5&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;g class=&quot;root&quot;&gt;&lt;g class=&quot;clusters&quot;&gt;&lt;/g&gt;&lt;g class=&quot;edgePaths&quot;&gt;&lt;path d=&quot;M109.797,39.898L130.63,36.582C151.464,33.265,193.13,26.633,234.137,26.242C275.144,25.851,315.491,31.703,335.665,34.628L355.838,37.554&quot; id=&quot;mermaid-0-L_LEAD_CONTACT_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_LEAD_CONTACT_0&quot; data-points=&quot;W3sieCI6MTA5Ljc5Njg3NSwieSI6MzkuODk3ODQ1ODgwNTI0MDk1fSx7IngiOjIzNC43OTY4NzUsInkiOjIwfSx7IngiOjM1OS43OTY4NzUsInkiOjM4LjEyODExMDcxMDk2MTg0fV0=&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M359.797,57.872L338.964,60.893C318.13,63.915,276.464,69.957,235.455,69.767C194.447,69.577,154.097,63.154,133.922,59.942L113.747,56.731&quot; id=&quot;mermaid-0-L_CONTACT_LEAD_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_CONTACT_LEAD_0&quot; data-points=&quot;W3sieCI6MzU5Ljc5Njg3NSwieSI6NTcuODcxODg5Mjg5MDM4MTZ9LHsieCI6MjM0Ljc5Njg3NSwieSI6NzZ9LHsieCI6MTA5Ljc5Njg3NSwieSI6NTYuMTAyMTU0MTE5NDc1OTA1fV0=&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabels&quot;&gt;&lt;g class=&quot;edgeLabel&quot; transform=&quot;translate(234.66547, 20.02092)&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_LEAD_CONTACT_0&quot; transform=&quot;translate(-53.3671875, -12)&quot;&gt;&lt;foreignObject width=&quot;106.734375&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;p&gt;Parent Contact&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot; transform=&quot;translate(234.796875, 76)&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_CONTACT_LEAD_0&quot; transform=&quot;translate(-100, -24)&quot;&gt;&lt;foreignObject width=&quot;200&quot; height=&quot;48&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;p&gt;Connection (Role: Stakeholder)&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;nodes&quot;&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-LEAD-0&quot; data-look=&quot;classic&quot; transform=&quot;translate(58.8984375, 48)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-50.8984375&quot; y=&quot;-27&quot; width=&quot;101.796875&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-20.8984375, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;41.796875&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;LEAD&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-CONTACT-1&quot; data-look=&quot;classic&quot; transform=&quot;translate(427.8671875, 48)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-68.0703125&quot; y=&quot;-27&quot; width=&quot;136.140625&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-38.0703125, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;76.140625&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;CONTACT&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-0-drop-shadow&quot; height=&quot;130%&quot; width=&quot;130%&quot;&gt;&lt;feDropShadow dx=&quot;4&quot; dy=&quot;4&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-0-drop-shadow-small&quot; height=&quot;150%&quot; width=&quot;150%&quot;&gt;&lt;feDropShadow dx=&quot;2&quot; dy=&quot;2&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;/svg&gt;&lt;/div&gt;
&lt;p&gt;Something I discovered while writing this article is that when you make an association of the lead via the parent contact field, &lt;strong&gt;it will automatically create a connection record as a stakeholder for the contact&lt;/strong&gt;. So there is no need for an extra step in the flow where we create this record.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-flow-logic&quot;&gt;The flow logic&lt;/h2&gt;
&lt;p&gt;Before clicking around, it helps to picture the decision:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot; style=&quot;--dw:519px&quot;&gt;&lt;svg id=&quot;mermaid-1&quot; width=&quot;100%&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; class=&quot;flowchart&quot; style=&quot;max-width: 518.515625px;&quot; viewBox=&quot;0 0 518.515625 916.5625&quot; role=&quot;graphics-document document&quot; aria-roledescription=&quot;flowchart-v2&quot;&gt;&lt;style&gt;#mermaid-1{font-family:arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-1 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-1 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-1 .error-icon{fill:#552222;}#mermaid-1 .error-text{fill:#552222;stroke:#552222;}#mermaid-1 .edge-thickness-normal{stroke-width:1px;}#mermaid-1 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-1 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1 .marker{fill:#333333;stroke:#333333;}#mermaid-1 .marker.cross{stroke:#333333;}#mermaid-1 svg{font-family:arial,sans-serif;font-size:16px;}#mermaid-1 p{margin:0;}#mermaid-1 .label{font-family:arial,sans-serif;color:#333;}#mermaid-1 .cluster-label text{fill:#333;}#mermaid-1 .cluster-label span{color:#333;}#mermaid-1 .cluster-label span p{background-color:transparent;}#mermaid-1 .label text,#mermaid-1 span{fill:#333;color:#333;}#mermaid-1 .node rect,#mermaid-1 .node circle,#mermaid-1 .node ellipse,#mermaid-1 .node polygon,#mermaid-1 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-1 .rough-node .label text,#mermaid-1 .node .label text,#mermaid-1 .image-shape .label,#mermaid-1 .icon-shape .label{text-anchor:middle;}#mermaid-1 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-1 .rough-node .label,#mermaid-1 .node .label,#mermaid-1 .image-shape .label,#mermaid-1 .icon-shape .label{text-align:center;}#mermaid-1 .node.clickable{cursor:pointer;}#mermaid-1 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-1 .arrowheadPath{fill:#333333;}#mermaid-1 .edgePath .path{stroke:#333333;stroke-width:1px;}#mermaid-1 .flowchart-link{stroke:#333333;fill:none;}#mermaid-1 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-1 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-1 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-1 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-1 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-1 .cluster text{fill:#333;}#mermaid-1 .cluster span{color:#333;}#mermaid-1 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-1 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-1 rect.text{fill:none;stroke-width:0;}#mermaid-1 .icon-shape,#mermaid-1 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-1 .icon-shape p,#mermaid-1 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-1 .icon-shape .label rect,#mermaid-1 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-1 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-1 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-1 .node .neo-node{stroke:#9370DB;}#mermaid-1 [data-look=&quot;neo&quot;].node rect,#mermaid-1 [data-look=&quot;neo&quot;].cluster rect,#mermaid-1 [data-look=&quot;neo&quot;].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 [data-look=&quot;neo&quot;].node path{stroke:#9370DB;stroke-width:1px;}#mermaid-1 [data-look=&quot;neo&quot;].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 [data-look=&quot;neo&quot;].node .neo-line path{stroke:#9370DB;filter:none;}#mermaid-1 [data-look=&quot;neo&quot;].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 [data-look=&quot;neo&quot;].node circle .state-start{fill:#000000;}#mermaid-1 [data-look=&quot;neo&quot;].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 [data-look=&quot;neo&quot;].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 :root{--mermaid-font-family:arial,sans-serif;}&lt;/style&gt;&lt;g&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-pointEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 10 5 L 0 10 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-pointStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;4.5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 5 L 10 10 L 10 0 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-pointEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;11.5&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;10.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 11.5 7 L 0 14 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-pointStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;1&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;polygon points=&quot;0,7 11.5,14 11.5,0&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/polygon&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-circleEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;11&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-circleStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-1&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-circleEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refY=&quot;5&quot; refX=&quot;12.25&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-circleStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-2&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-crossEnd&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;12&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-crossStart&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;-1&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-crossEnd-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;17.7&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-crossStart-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;-3.5&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;g class=&quot;root&quot;&gt;&lt;g class=&quot;clusters&quot;&gt;&lt;/g&gt;&lt;g class=&quot;edgePaths&quot;&gt;&lt;path d=&quot;M242.887,47.5L242.803,51.583C242.72,55.667,242.553,63.833,242.47,71.417C242.387,79,242.387,86,242.387,89.5L242.387,93&quot; id=&quot;mermaid-1-L_A_B_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_A_B_0&quot; data-points=&quot;W3sieCI6MjQyLjg4NjcxODc1LCJ5Ijo0Ny41MDAwMDAwMDAwMDAwMX0seyJ4IjoyNDIuMzg2NzE4NzUsInkiOjcyfSx7IngiOjI0Mi4zODY3MTg3NSwieSI6OTd9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M242.387,151L242.387,155.167C242.387,159.333,242.387,167.667,242.387,175.333C242.387,183,242.387,190,242.387,193.5L242.387,197&quot; id=&quot;mermaid-1-L_B_C_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_B_C_0&quot; data-points=&quot;W3sieCI6MjQyLjM4NjcxODc1LCJ5IjoxNTF9LHsieCI6MjQyLjM4NjcxODc1LCJ5IjoxNzZ9LHsieCI6MjQyLjM4NjcxODc1LCJ5IjoyMDF9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M242.387,303L242.387,307.167C242.387,311.333,242.387,319.667,242.387,327.333C242.387,335,242.387,342,242.387,345.5L242.387,349&quot; id=&quot;mermaid-1-L_C_D_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_C_D_0&quot; data-points=&quot;W3sieCI6MjQyLjM4NjcxODc1LCJ5IjozMDN9LHsieCI6MjQyLjM4NjcxODc1LCJ5IjozMjh9LHsieCI6MjQyLjM4NjcxODc1LCJ5IjozNTN9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M194.382,491.558L179.362,505.726C164.341,519.893,134.299,548.228,119.279,573.062C104.258,597.896,104.258,619.229,104.258,638.563C104.258,657.896,104.258,675.229,104.258,689.396C104.258,703.563,104.258,714.563,104.258,720.063L104.258,725.563&quot; id=&quot;mermaid-1-L_D_E_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_D_E_0&quot; data-points=&quot;W3sieCI6MTk0LjM4MjQzNTk5MDU1MTI3LCJ5Ijo0OTEuNTU4MjE3MjQwNTUxM30seyJ4IjoxMDQuMjU3ODEyNSwieSI6NTc2LjU2MjV9LHsieCI6MTA0LjI1NzgxMjUsInkiOjY0MC41NjI1fSx7IngiOjEwNC4yNTc4MTI1LCJ5Ijo2OTIuNTYyNX0seyJ4IjoxMDQuMjU3ODEyNSwieSI6NzI5LjU2MjV9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M290.391,491.558L305.412,505.726C320.433,519.893,350.474,548.228,365.495,567.895C380.516,587.563,380.516,598.563,380.516,604.063L380.516,609.563&quot; id=&quot;mermaid-1-L_D_F_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_D_F_0&quot; data-points=&quot;W3sieCI6MjkwLjM5MTAwMTUwOTQ0ODcsInkiOjQ5MS41NTgyMTcyNDA1NTEzfSx7IngiOjM4MC41MTU2MjUsInkiOjU3Ni41NjI1fSx7IngiOjM4MC41MTU2MjUsInkiOjYxMy41NjI1fV0=&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M380.516,667.563L380.516,671.729C380.516,675.896,380.516,684.229,380.516,691.896C380.516,699.563,380.516,706.563,380.516,710.063L380.516,713.563&quot; id=&quot;mermaid-1-L_F_G_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_F_G_0&quot; data-points=&quot;W3sieCI6MzgwLjUxNTYyNSwieSI6NjY3LjU2MjV9LHsieCI6MzgwLjUxNTYyNSwieSI6NjkyLjU2MjV9LHsieCI6MzgwLjUxNTYyNSwieSI6NzE3LjU2MjV9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M104.258,807.563L104.258,813.729C104.258,819.896,104.258,832.229,121.88,844.128C139.503,856.026,174.748,867.49,192.37,873.222L209.993,878.953&quot; id=&quot;mermaid-1-L_E_H_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_E_H_0&quot; data-points=&quot;W3sieCI6MTA0LjI1NzgxMjUsInkiOjgwNy41NjI1fSx7IngiOjEwNC4yNTc4MTI1LCJ5Ijo4NDQuNTYyNX0seyJ4IjoyMTMuNzk2NDQ4NTQzMDQzNzcsInkiOjg4MC4xOTA2OTYwODYxNX1d&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M380.516,819.563L380.516,823.729C380.516,827.896,380.516,836.229,363.059,846.126C345.603,856.023,310.69,867.483,293.234,873.213L275.777,878.943&quot; id=&quot;mermaid-1-L_G_H_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_G_H_0&quot; data-points=&quot;W3sieCI6MzgwLjUxNTYyNSwieSI6ODE5LjU2MjV9LHsieCI6MzgwLjUxNTYyNSwieSI6ODQ0LjU2MjV9LHsieCI6MjcxLjk3Njk4OTgzNDM0NTIsInkiOjg4MC4xOTA2OTU4MDM0ODc5fV0=&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabels&quot;&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_A_B_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_B_C_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_C_D_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot; transform=&quot;translate(104.2578125, 640.5625)&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_D_E_0&quot; transform=&quot;translate(-13.0546875, -12)&quot;&gt;&lt;foreignObject width=&quot;26.109375&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;p&gt;Yes&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot; transform=&quot;translate(380.515625, 576.5625)&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_D_F_0&quot; transform=&quot;translate(-10.2265625, -12)&quot;&gt;&lt;foreignObject width=&quot;20.453125&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;p&gt;No&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_F_G_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_E_H_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_G_H_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;nodes&quot;&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-A-0&quot; data-look=&quot;classic&quot; transform=&quot;translate(242.38671875, 27.5)&quot;&gt;&lt;g class=&quot;basic label-container outer-path&quot;&gt;&lt;path d=&quot;M-72.46875 -19.5 C-29.255792199690376 -19.5, 13.957165600619248 -19.5, 72.46875 -19.5 C72.46875 -19.5, 72.46875 -19.5, 72.46875 -19.5 C72.89173714830557 -19.48643562544838, 73.31472429661113 -19.47287125089676, 73.7181192896239 -19.45993515863156 C74.1564584569787 -19.41764910633682, 74.59479762433348 -19.37536305404208, 74.96235465284786 -19.3399052695533 C75.22301849106415 -19.297763161668748, 75.48368232928043 -19.255621053784196, 76.19634325967675 -19.140403561325776 C76.48590574766659 -19.07431281301392, 76.77546823565645 -19.008222064702057, 77.41501438623538 -18.862249829261074 C77.77017760659507 -18.756839249748108, 78.12534082695475 -18.65142867023514, 78.6133602514606 -18.50658706670804 C78.9347702196584 -18.388305227330076, 79.25618018785619 -18.270023387952108, 79.7864565951478 -18.074876768247425 C80.14048581880029 -17.918158532840256, 80.49451504245276 -17.76144029743309, 80.92948291279238 -17.568892924097174 C81.34400815649894 -17.35263536997155, 81.75853340020551 -17.13637781584593, 82.03774226407678 -16.990714730406097 C82.33559211369023 -16.81015640121042, 82.63344196330368 -16.629598072014744, 83.1066805736057 -16.342718045390892 C83.36454388182683 -16.162843764298525, 83.62240719004798 -15.98296948320616, 84.13190534457871 -15.627565626425154 C84.47221488958438 -15.356177820300454, 84.81252443459005 -15.084790014175754, 85.10920370850187 -14.848196188198123 C85.44214573975064 -14.545827044581404, 85.77508777099942 -14.243457900964685, 86.03455973676799 -14.007812326905688 C86.23984195451489 -13.795841583098499, 86.44512417226179 -13.583870839291311, 86.90417094296865 -13.10986736009568 C87.10836547180688 -12.870008847524444, 87.31256000064512 -12.630150334953209, 87.71446390812658 -12.158051136245305 C87.90561678020012 -11.901923702051642, 88.09676965227368 -11.645796267857977, 88.46210896464063 -11.156274872382312 C88.66276940625815 -10.848006549184644, 88.86342984787566 -10.539738225986978, 89.14403387860425 -10.108655082055241 C89.3587315184113 -9.72743768208433, 89.57342915821836 -9.34622028211342, 89.7574364742735 -9.019496659696287 C89.96224677482945 -8.594203688353435, 90.16705707538542 -8.168910717010581, 90.29979614880834 -7.893275190886684 C90.4555593661899 -7.508537032477274, 90.61132258357148 -7.123798874067863, 90.76888422997033 -6.734618561215508 C90.85594735252272 -6.472398307712476, 90.94301047507511 -6.210178054209445, 91.16277313421489 -5.548287939305138 C91.259998358219 -5.177526022498846, 91.3572235822231 -4.806764105692554, 91.47984428754556 -4.339158212148133 C91.56217659246558 -3.9163992273226484, 91.64450889738559 -3.493640242497164, 91.71879477658177 -3.1121979531509023 C91.76690429959925 -2.7390699929272437, 91.81501382261672 -2.3659420327035847, 91.87864270250937 -1.872449005199798 C91.90742393945904 -1.4241580079123888, 91.9362051764087 -0.9758670106249797, 91.95873121591342 -0.6250057626472757 C91.95873121591342 -0.3380497142002685, 91.95873121591342 -0.05109366575326135, 91.95873121591342 0.625005762647271 C91.92924556169423 1.084268627502749, 91.89975990747504 1.5435314923582273, 91.87864270250937 1.8724490051997846 C91.82383245640901 2.297546450446885, 91.76902221030863 2.7226438956939862, 91.71879477658177 3.1121979531508885 C91.6456106387314 3.48798303353954, 91.57242650088104 3.8637681139281916, 91.47984428754556 4.339158212148129 C91.38918406441155 4.684884935347364, 91.29852384127754 5.030611658546601, 91.16277313421489 5.548287939305125 C91.06567789736411 5.8407233226745445, 90.96858266051333 6.1331587060439645, 90.76888422997033 6.734618561215495 C90.60050977310732 7.150506724965803, 90.4321353162443 7.56639488871611, 90.29979614880834 7.893275190886679 C90.18333337107858 8.135112640746788, 90.06687059334881 8.376950090606899, 89.7574364742735 9.019496659696284 C89.53754266672479 9.409940381661546, 89.31764885917607 9.80038410362681, 89.14403387860425 10.108655082055236 C88.94457674993463 10.415074793430172, 88.745119621265 10.721494504805108, 88.46210896464065 11.156274872382301 C88.22478352270707 11.474269343780762, 87.98745808077348 11.792263815179222, 87.71446390812659 12.158051136245302 C87.45122823649862 12.467262734673545, 87.18799256487067 12.776474333101788, 86.90417094296866 13.10986736009567 C86.67523230488247 13.346265300131416, 86.44629366679627 13.582663240167163, 86.03455973676799 14.007812326905684 C85.81984340059283 14.202812022337021, 85.60512706441767 14.397811717768358, 85.1092037085019 14.848196188198111 C84.9006814142012 15.01448716889162, 84.6921591199005 15.18077814958513, 84.13190534457871 15.627565626425152 C83.89816020136956 15.790616119663692, 83.6644150581604 15.95366661290223, 83.1066805736057 16.34271804539089 C82.79126692803203 16.533923650913977, 82.47585328245835 16.725129256437064, 82.03774226407678 16.990714730406093 C81.66743918170711 17.183901611287908, 81.29713609933744 17.377088492169722, 80.92948291279238 17.56889292409717 C80.47564439632771 17.76979377269482, 80.02180587986304 17.970694621292463, 79.7864565951478 18.07487676824742 C79.43024544328314 18.205965764913405, 79.07403429141849 18.33705476157939, 78.61336025146062 18.506587066708033 C78.16906465130991 18.63845166867757, 77.7247690511592 18.770316270647108, 77.41501438623541 18.86224982926107 C77.06657472534961 18.941778908076973, 76.7181350644638 19.021307986892875, 76.19634325967677 19.140403561325773 C75.7657497885136 19.21001857444119, 75.33515631735045 19.27963358755661, 74.96235465284788 19.3399052695533 C74.70517325531235 19.364715249667668, 74.4479918577768 19.389525229782038, 73.7181192896239 19.45993515863156 C73.34648732554442 19.471852672381853, 72.97485536146495 19.483770186132144, 72.46875 19.5 C72.46875 19.5, 72.46875 19.5, 72.46875 19.5 C16.60195337021731 19.5, -39.26484325956538 19.5, -72.46875 19.5 C-72.94546112743882 19.484712802004957, -73.42217225487764 19.469425604009913, -73.7181192896239 19.45993515863156 C-74.19534236391566 19.41389802259935, -74.67256543820741 19.36786088656714, -74.96235465284786 19.3399052695533 C-75.32716798158877 19.280925079732086, -75.69198131032968 19.221944889910873, -76.19634325967675 19.140403561325773 C-76.61733715738964 19.04431445141473, -77.03833105510253 18.94822534150369, -77.41501438623538 18.862249829261074 C-77.83022912804839 18.73901627339763, -78.2454438698614 18.615782717534184, -78.61336025146059 18.506587066708043 C-79.06160835815903 18.341627619882942, -79.50985646485748 18.176668173057838, -79.7864565951478 18.074876768247425 C-80.12090243432604 17.926827516226545, -80.45534827350427 17.778778264205663, -80.92948291279238 17.568892924097174 C-81.25802689818542 17.397491737360095, -81.58657088357845 17.226090550623017, -82.03774226407678 16.990714730406097 C-82.32284581636095 16.817883281556984, -82.60794936864514 16.64505183270787, -83.10668057360569 16.3427180453909 C-83.44034537067891 16.10996792706889, -83.77401016775212 15.87721780874688, -84.13190534457871 15.627565626425156 C-84.33840509724993 15.462887568859054, -84.54490484992117 15.298209511292953, -85.10920370850187 14.848196188198125 C-85.30605136993276 14.669424350390306, -85.50289903136364 14.490652512582487, -86.03455973676797 14.007812326905697 C-86.22406140111026 13.812136300096299, -86.41356306545255 13.616460273286899, -86.90417094296865 13.109867360095677 C-87.10842746662757 12.869936024880447, -87.31268399028652 12.630004689665215, -87.71446390812658 12.158051136245307 C-87.89635804960656 11.914329557559302, -88.07825219108656 11.6706079788733, -88.46210896464063 11.156274872382316 C-88.6456631868659 10.874286295834212, -88.82921740909117 10.592297719286108, -89.14403387860425 10.108655082055249 C-89.3612186823933 9.723021470581644, -89.57840348618234 9.337387859108038, -89.7574364742735 9.019496659696289 C-89.91619327447756 8.689834767221187, -90.07495007468164 8.360172874746084, -90.29979614880834 7.893275190886686 C-90.39557382124372 7.6567024882359975, -90.49135149367908 7.420129785585309, -90.76888422997033 6.73461856121551 C-90.90331412196132 6.329737145033248, -91.0377440139523 5.924855728850986, -91.16277313421489 5.5482879393051325 C-91.25086115781339 5.212370127733101, -91.33894918141189 4.876452316161069, -91.47984428754556 4.339158212148136 C-91.54402289164241 4.009614644263564, -91.60820149573927 3.680071076378993, -91.71879477658177 3.112197953150904 C-91.75869764809794 2.8027191613847497, -91.79860051961411 2.4932403696185954, -91.87864270250937 1.872449005199809 C-91.89719237930525 1.5835228160743267, -91.91574205610114 1.2945966269488445, -91.95873121591342 0.6250057626472781 C-91.95873121591342 0.26656277331608025, -91.95873121591342 -0.09188021601511764, -91.95873121591342 -0.6250057626472687 C-91.92800026638535 -1.1036651071227706, -91.8972693168573 -1.5823244515982724, -91.87864270250937 -1.8724490051997822 C-91.83525710472729 -2.2089391341421867, -91.79187150694523 -2.545429263084591, -91.71879477658177 -3.112197953150895 C-91.63910917339088 -3.521366683977936, -91.55942357019998 -3.930535414804977, -91.47984428754556 -4.339158212148126 C-91.36281388924068 -4.785445842180087, -91.2457834909358 -5.231733472212047, -91.16277313421489 -5.548287939305123 C-91.07955214250121 -5.798936306882356, -90.99633115078753 -6.04958467445959, -90.76888422997033 -6.734618561215485 C-90.64248060289125 -7.046837963948682, -90.51607697581217 -7.3590573666818795, -90.29979614880834 -7.893275190886676 C-90.11598288819071 -8.274967359532903, -89.93216962757309 -8.65665952817913, -89.7574364742735 -9.019496659696282 C-89.5918189110566 -9.313567413784703, -89.42620134783971 -9.607638167873123, -89.14403387860425 -10.108655082055243 C-88.90082105798237 -10.482295286317292, -88.65760823736049 -10.855935490579341, -88.46210896464063 -11.156274872382308 C-88.25760377740654 -11.430293192470172, -88.05309859017244 -11.704311512558036, -87.71446390812659 -12.158051136245302 C-87.50806485611531 -12.40049920717651, -87.30166580410403 -12.642947278107721, -86.90417094296866 -13.10986736009567 C-86.57245901673673 -13.45238715798577, -86.24074709050478 -13.794906955875868, -86.03455973676799 -14.007812326905677 C-85.69024168689158 -14.32051286964706, -85.34592363701516 -14.633213412388443, -85.1092037085019 -14.848196188198107 C-84.78919705768868 -15.10339297648703, -84.46919040687546 -15.358589764775951, -84.13190534457871 -15.627565626425149 C-83.74341001610526 -15.898563149876518, -83.3549146876318 -16.169560673327886, -83.10668057360571 -16.342718045390885 C-82.80756833187934 -16.524041644104052, -82.50845609015298 -16.70536524281722, -82.03774226407678 -16.99071473040609 C-81.74714934234547 -17.142316871539673, -81.45655642061415 -17.293919012673253, -80.9294829127924 -17.56889292409717 C-80.62234483630132 -17.704853839632438, -80.31520675981027 -17.840814755167706, -79.78645659514781 -18.07487676824742 C-79.42117834299154 -18.209302541636077, -79.05590009083525 -18.343728315024737, -78.61336025146062 -18.506587066708033 C-78.13728515590628 -18.64788365609939, -77.66121006035193 -18.789180245490748, -77.41501438623541 -18.862249829261067 C-76.9976981321839 -18.95749954100527, -76.58038187813239 -19.052749252749468, -76.19634325967677 -19.140403561325773 C-75.81130161325102 -19.202654108677322, -75.42625996682528 -19.26490465602887, -74.96235465284788 -19.3399052695533 C-74.6448362434012 -19.370535888640863, -74.32731783395451 -19.401166507728426, -73.7181192896239 -19.45993515863156 C-73.41949963675542 -19.46951130967116, -73.12087998388694 -19.479087460710755, -72.46875 -19.5 C-72.46875 -19.5, -72.46875 -19.5, -72.46875 -19.5&quot; stroke=&quot;none&quot; stroke-width=&quot;0&quot; fill=&quot;#ECECFF&quot; style=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M-72.46875 -19.5 C-18.825779149421777 -19.5, 34.817191701156446 -19.5, 72.46875 -19.5 M-72.46875 -19.5 C-27.50917753859426 -19.5, 17.450394922811483 -19.5, 72.46875 -19.5 M72.46875 -19.5 C72.46875 -19.5, 72.46875 -19.5, 72.46875 -19.5 M72.46875 -19.5 C72.46875 -19.5, 72.46875 -19.5, 72.46875 -19.5 M72.46875 -19.5 C72.72601827382097 -19.49174990720088, 72.98328654764192 -19.483499814401757, 73.7181192896239 -19.45993515863156 M72.46875 -19.5 C72.95627691863204 -19.48436596063305, 73.4438038372641 -19.4687319212661, 73.7181192896239 -19.45993515863156 M73.7181192896239 -19.45993515863156 C74.13192780104993 -19.420015549211836, 74.54573631247597 -19.380095939792117, 74.96235465284786 -19.3399052695533 M73.7181192896239 -19.45993515863156 C74.02784570505939 -19.43005622383501, 74.33757212049488 -19.40017728903846, 74.96235465284786 -19.3399052695533 M74.96235465284786 -19.3399052695533 C75.42122056875591 -19.265719386827612, 75.88008648466395 -19.191533504101926, 76.19634325967675 -19.140403561325776 M74.96235465284786 -19.3399052695533 C75.31389924553358 -19.28307026607691, 75.66544383821928 -19.226235262600515, 76.19634325967675 -19.140403561325776 M76.19634325967675 -19.140403561325776 C76.57730734047914 -19.053450995905592, 76.95827142128151 -18.966498430485405, 77.41501438623538 -18.862249829261074 M76.19634325967675 -19.140403561325776 C76.67499948614974 -19.031153401157102, 77.15365571262274 -18.921903240988428, 77.41501438623538 -18.862249829261074 M77.41501438623538 -18.862249829261074 C77.73348434324363 -18.767729617703946, 78.05195430025188 -18.673209406146817, 78.6133602514606 -18.50658706670804 M77.41501438623538 -18.862249829261074 C77.73449569575435 -18.767429453587464, 78.0539770052733 -18.672609077913854, 78.6133602514606 -18.50658706670804 M78.6133602514606 -18.50658706670804 C79.04939119745595 -18.34612364795587, 79.4854221434513 -18.1856602292037, 79.7864565951478 -18.074876768247425 M78.6133602514606 -18.50658706670804 C78.94318776585784 -18.385207492517736, 79.27301528025507 -18.263827918327436, 79.7864565951478 -18.074876768247425 M79.7864565951478 -18.074876768247425 C80.05956447466296 -17.953980011443463, 80.33267235417811 -17.8330832546395, 80.92948291279238 -17.568892924097174 M79.7864565951478 -18.074876768247425 C80.10165012786564 -17.935349941197185, 80.41684366058347 -17.795823114146945, 80.92948291279238 -17.568892924097174 M80.92948291279238 -17.568892924097174 C81.20553708429354 -17.424875639646157, 81.4815912557947 -17.28085835519514, 82.03774226407678 -16.990714730406097 M80.92948291279238 -17.568892924097174 C81.30368725849259 -17.373670756634702, 81.6778916041928 -17.178448589172227, 82.03774226407678 -16.990714730406097 M82.03774226407678 -16.990714730406097 C82.35609561831683 -16.797727056213812, 82.67444897255686 -16.60473938202153, 83.1066805736057 -16.342718045390892 M82.03774226407678 -16.990714730406097 C82.44131196061382 -16.746068408726565, 82.84488165715085 -16.501422087047033, 83.1066805736057 -16.342718045390892 M83.1066805736057 -16.342718045390892 C83.44937001950328 -16.103672722719757, 83.79205946540087 -15.86462740004862, 84.13190534457871 -15.627565626425154 M83.1066805736057 -16.342718045390892 C83.47138774125837 -16.088314113155217, 83.83609490891105 -15.833910180919545, 84.13190534457871 -15.627565626425154 M84.13190534457871 -15.627565626425154 C84.42918891872156 -15.390489887094374, 84.72647249286443 -15.153414147763593, 85.10920370850187 -14.848196188198123 M84.13190534457871 -15.627565626425154 C84.47130107661064 -15.356906561829424, 84.81069680864258 -15.086247497233696, 85.10920370850187 -14.848196188198123 M85.10920370850187 -14.848196188198123 C85.47347252794049 -14.51737688440878, 85.83774134737912 -14.186557580619436, 86.03455973676799 -14.007812326905688 M85.10920370850187 -14.848196188198123 C85.42553458675312 -14.56091285422673, 85.74186546500438 -14.273629520255339, 86.03455973676799 -14.007812326905688 M86.03455973676799 -14.007812326905688 C86.21049841113344 -13.826141200789548, 86.3864370854989 -13.644470074673409, 86.90417094296865 -13.10986736009568 M86.03455973676799 -14.007812326905688 C86.21109703702538 -13.825523070408021, 86.38763433728279 -13.643233813910355, 86.90417094296865 -13.10986736009568 M86.90417094296865 -13.10986736009568 C87.1307183975068 -12.84375182907982, 87.35726585204495 -12.577636298063958, 87.71446390812658 -12.158051136245305 M86.90417094296865 -13.10986736009568 C87.21870342881228 -12.740399604818291, 87.53323591465592 -12.370931849540902, 87.71446390812658 -12.158051136245305 M87.71446390812658 -12.158051136245305 C87.94060396113537 -11.855044066996182, 88.16674401414414 -11.552036997747058, 88.46210896464063 -11.156274872382312 M87.71446390812658 -12.158051136245305 C87.96795896684118 -11.818390851442674, 88.22145402555579 -11.478730566640042, 88.46210896464063 -11.156274872382312 M88.46210896464063 -11.156274872382312 C88.70943099507565 -10.776321818369942, 88.95675302551066 -10.396368764357572, 89.14403387860425 -10.108655082055241 M88.46210896464063 -11.156274872382312 C88.71168500875667 -10.772859048068465, 88.96126105287271 -10.389443223754618, 89.14403387860425 -10.108655082055241 M89.14403387860425 -10.108655082055241 C89.29477931756897 -9.84099129054244, 89.4455247565337 -9.573327499029642, 89.7574364742735 -9.019496659696287 M89.14403387860425 -10.108655082055241 C89.2817134510373 -9.864191059631864, 89.41939302347036 -9.619727037208488, 89.7574364742735 -9.019496659696287 M89.7574364742735 -9.019496659696287 C89.88785775133606 -8.748674087307613, 90.01827902839861 -8.47785151491894, 90.29979614880834 -7.893275190886684 M89.7574364742735 -9.019496659696287 C89.96645879245837 -8.585457343624254, 90.17548111064325 -8.151418027552221, 90.29979614880834 -7.893275190886684 M90.29979614880834 -7.893275190886684 C90.43500313224496 -7.559311327749034, 90.57021011568159 -7.225347464611383, 90.76888422997033 -6.734618561215508 M90.29979614880834 -7.893275190886684 C90.42225780638829 -7.590792529029152, 90.54471946396822 -7.28830986717162, 90.76888422997033 -6.734618561215508 M90.76888422997033 -6.734618561215508 C90.89453032861672 -6.3561925310797385, 91.02017642726312 -5.97776650094397, 91.16277313421489 -5.548287939305138 M90.76888422997033 -6.734618561215508 C90.90897325512712 -6.312692737598262, 91.04906228028392 -5.8907669139810155, 91.16277313421489 -5.548287939305138 M91.16277313421489 -5.548287939305138 C91.25055222077106 -5.213548238569704, 91.33833130732722 -4.878808537834269, 91.47984428754556 -4.339158212148133 M91.16277313421489 -5.548287939305138 C91.2587264199417 -5.18237647441171, 91.3546797056685 -4.81646500951828, 91.47984428754556 -4.339158212148133 M91.47984428754556 -4.339158212148133 C91.57519746735171 -3.8495397867452, 91.67055064715787 -3.3599213613422676, 91.71879477658177 -3.1121979531509023 M91.47984428754556 -4.339158212148133 C91.56801955111241 -3.8863968695809215, 91.65619481467925 -3.43363552701371, 91.71879477658177 -3.1121979531509023 M91.71879477658177 -3.1121979531509023 C91.77732986248309 -2.6582113859605045, 91.83586494838438 -2.204224818770107, 91.87864270250937 -1.872449005199798 M91.71879477658177 -3.1121979531509023 C91.76540834841205 -2.750672294926179, 91.81202192024233 -2.3891466367014553, 91.87864270250937 -1.872449005199798 M91.87864270250937 -1.872449005199798 C91.89861692404558 -1.5613343818717833, 91.9185911455818 -1.2502197585437687, 91.95873121591342 -0.6250057626472757 M91.87864270250937 -1.872449005199798 C91.90032533765033 -1.5347244609711774, 91.9220079727913 -1.196999916742557, 91.95873121591342 -0.6250057626472757 M91.95873121591342 -0.6250057626472757 C91.95873121591342 -0.28796605273389714, 91.95873121591342 0.04907365717948142, 91.95873121591342 0.625005762647271 M91.95873121591342 -0.6250057626472757 C91.95873121591342 -0.20900603182897254, 91.95873121591342 0.20699369898933062, 91.95873121591342 0.625005762647271 M91.95873121591342 0.625005762647271 C91.93143227601624 1.0502087868535546, 91.90413333611905 1.4754118110598382, 91.87864270250937 1.8724490051997846 M91.95873121591342 0.625005762647271 C91.93621885111021 0.9756540161109855, 91.913706486307 1.3263022695747, 91.87864270250937 1.8724490051997846 M91.87864270250937 1.8724490051997846 C91.8238681163795 2.2972698787575823, 91.76909353024963 2.7220907523153803, 91.71879477658177 3.1121979531508885 M91.87864270250937 1.8724490051997846 C91.82537475806048 2.2855846633999994, 91.77210681361157 2.6987203216002142, 91.71879477658177 3.1121979531508885 M91.71879477658177 3.1121979531508885 C91.64049686623834 3.51424117449522, 91.5621989558949 3.9162843958395515, 91.47984428754556 4.339158212148129 M91.71879477658177 3.1121979531508885 C91.65359780435958 3.4469706261269235, 91.58840083213738 3.781743299102959, 91.47984428754556 4.339158212148129 M91.47984428754556 4.339158212148129 C91.35936207027855 4.798609123910498, 91.23887985301155 5.258060035672867, 91.16277313421489 5.548287939305125 M91.47984428754556 4.339158212148129 C91.39077161057733 4.67883093377036, 91.30169893360912 5.018503655392592, 91.16277313421489 5.548287939305125 M91.16277313421489 5.548287939305125 C91.03223381600412 5.941451567140086, 90.90169449779336 6.334615194975046, 90.76888422997033 6.734618561215495 M91.16277313421489 5.548287939305125 C91.02137227319821 5.974164803519686, 90.87997141218152 6.400041667734246, 90.76888422997033 6.734618561215495 M90.76888422997033 6.734618561215495 C90.60695851297355 7.1345782128183135, 90.44503279597676 7.534537864421133, 90.29979614880834 7.893275190886679 M90.76888422997033 6.734618561215495 C90.65516201018568 7.01551464275311, 90.54143979040104 7.296410724290725, 90.29979614880834 7.893275190886679 M90.29979614880834 7.893275190886679 C90.1074934083822 8.292595946001057, 89.91519066795607 8.691916701115435, 89.7574364742735 9.019496659696284 M90.29979614880834 7.893275190886679 C90.10199922573784 8.304004733818747, 89.90420230266734 8.714734276750816, 89.7574364742735 9.019496659696284 M89.7574364742735 9.019496659696284 C89.59403785547288 9.30962745328112, 89.43063923667225 9.599758246865955, 89.14403387860425 10.108655082055236 M89.7574364742735 9.019496659696284 C89.56838843554206 9.355170595653691, 89.37934039681062 9.690844531611098, 89.14403387860425 10.108655082055236 M89.14403387860425 10.108655082055236 C88.94428227296062 10.415527189140379, 88.74453066731701 10.722399296225522, 88.46210896464065 11.156274872382301 M89.14403387860425 10.108655082055236 C88.91197470227196 10.465160293515636, 88.67991552593966 10.821665504976034, 88.46210896464065 11.156274872382301 M88.46210896464065 11.156274872382301 C88.2323448035851 11.464137916251069, 88.00258064252952 11.772000960119836, 87.71446390812659 12.158051136245302 M88.46210896464065 11.156274872382301 C88.25007281420426 11.440383997076376, 88.03803666376787 11.72449312177045, 87.71446390812659 12.158051136245302 M87.71446390812659 12.158051136245302 C87.53829350400439 12.364990917307209, 87.3621230998822 12.571930698369114, 86.90417094296866 13.10986736009567 M87.71446390812659 12.158051136245302 C87.45587838048317 12.461800410948609, 87.19729285283975 12.765549685651916, 86.90417094296866 13.10986736009567 M86.90417094296866 13.10986736009567 C86.62735274260834 13.395704879164624, 86.35053454224801 13.681542398233578, 86.03455973676799 14.007812326905684 M86.90417094296866 13.10986736009567 C86.64264283373147 13.379916604740163, 86.38111472449427 13.649965849384657, 86.03455973676799 14.007812326905684 M86.03455973676799 14.007812326905684 C85.82718151312093 14.196147742694814, 85.6198032894739 14.384483158483945, 85.1092037085019 14.848196188198111 M86.03455973676799 14.007812326905684 C85.82228243731244 14.200596953721652, 85.61000513785689 14.39338158053762, 85.1092037085019 14.848196188198111 M85.1092037085019 14.848196188198111 C84.78406370631821 15.107486687600764, 84.45892370413452 15.366777187003418, 84.13190534457871 15.627565626425152 M85.1092037085019 14.848196188198111 C84.80061997267677 15.094283505760558, 84.49203623685166 15.340370823323005, 84.13190534457871 15.627565626425152 M84.13190534457871 15.627565626425152 C83.80759476831648 15.853790645247114, 83.48328419205424 16.080015664069077, 83.1066805736057 16.34271804539089 M84.13190534457871 15.627565626425152 C83.74014069302078 15.900843688133534, 83.34837604146284 16.174121749841916, 83.1066805736057 16.34271804539089 M83.1066805736057 16.34271804539089 C82.82068137381992 16.516092441018884, 82.53468217403415 16.689466836646876, 82.03774226407678 16.990714730406093 M83.1066805736057 16.34271804539089 C82.73381547412218 16.56875105989634, 82.36095037463868 16.79478407440179, 82.03774226407678 16.990714730406093 M82.03774226407678 16.990714730406093 C81.73648094590855 17.14788256712738, 81.43521962774031 17.30505040384866, 80.92948291279238 17.56889292409717 M82.03774226407678 16.990714730406093 C81.60206513651873 17.21800720878861, 81.16638800896068 17.44529968717113, 80.92948291279238 17.56889292409717 M80.92948291279238 17.56889292409717 C80.67825378866004 17.680104604903377, 80.42702466452769 17.791316285709584, 79.7864565951478 18.07487676824742 M80.92948291279238 17.56889292409717 C80.69586857382423 17.672307062035227, 80.46225423485608 17.775721199973283, 79.7864565951478 18.07487676824742 M79.7864565951478 18.07487676824742 C79.38884992355368 18.221199698829842, 78.99124325195955 18.36752262941226, 78.61336025146062 18.506587066708033 M79.7864565951478 18.07487676824742 C79.4039637470172 18.215637672084608, 79.02147089888662 18.356398575921794, 78.61336025146062 18.506587066708033 M78.61336025146062 18.506587066708033 C78.2635189267233 18.610418135535483, 77.91367760198598 18.714249204362936, 77.41501438623541 18.86224982926107 M78.61336025146062 18.506587066708033 C78.3508957817355 18.584485143618334, 78.08843131201039 18.662383220528632, 77.41501438623541 18.86224982926107 M77.41501438623541 18.86224982926107 C77.01212140422444 18.954207523282662, 76.60922842221346 19.046165217304257, 76.19634325967677 19.140403561325773 M77.41501438623541 18.86224982926107 C76.97223904869776 18.963310410674936, 76.52946371116009 19.064370992088804, 76.19634325967677 19.140403561325773 M76.19634325967677 19.140403561325773 C75.77288905681166 19.208864352908613, 75.34943485394656 19.277325144491456, 74.96235465284788 19.3399052695533 M76.19634325967677 19.140403561325773 C75.8353159522304 19.198771656585116, 75.47428864478405 19.25713975184446, 74.96235465284788 19.3399052695533 M74.96235465284788 19.3399052695533 C74.63596893983829 19.371391306751082, 74.3095832268287 19.40287734394887, 73.7181192896239 19.45993515863156 M74.96235465284788 19.3399052695533 C74.69547484930455 19.3656508432312, 74.42859504576123 19.391396416909103, 73.7181192896239 19.45993515863156 M73.7181192896239 19.45993515863156 C73.41743009962346 19.46957767569887, 73.11674090962302 19.47922019276618, 72.46875 19.5 M73.7181192896239 19.45993515863156 C73.38102809131085 19.470745017253243, 73.04393689299779 19.48155487587493, 72.46875 19.5 M72.46875 19.5 C72.46875 19.5, 72.46875 19.5, 72.46875 19.5 M72.46875 19.5 C72.46875 19.5, 72.46875 19.5, 72.46875 19.5 M72.46875 19.5 C37.63343003207012 19.5, 2.7981100641402463 19.5, -72.46875 19.5 M72.46875 19.5 C18.206701667847966 19.5, -36.05534666430407 19.5, -72.46875 19.5 M-72.46875 19.5 C-72.93942205735756 19.484906463228125, -73.41009411471514 19.469812926456253, -73.7181192896239 19.45993515863156 M-72.46875 19.5 C-72.8668947418185 19.48723227307161, -73.26503948363701 19.474464546143217, -73.7181192896239 19.45993515863156 M-73.7181192896239 19.45993515863156 C-74.17871222420094 19.41550231217696, -74.63930515877797 19.37106946572236, -74.96235465284786 19.3399052695533 M-73.7181192896239 19.45993515863156 C-73.96963397076593 19.435671839832448, -74.22114865190797 19.411408521033334, -74.96235465284786 19.3399052695533 M-74.96235465284786 19.3399052695533 C-75.29739498268738 19.28573854730141, -75.6324353125269 19.231571825049517, -76.19634325967675 19.140403561325773 M-74.96235465284786 19.3399052695533 C-75.33167873351118 19.280195816342676, -75.7010028141745 19.22048636313205, -76.19634325967675 19.140403561325773 M-76.19634325967675 19.140403561325773 C-76.65569361770481 19.03555983964709, -77.11504397573287 18.930716117968405, -77.41501438623538 18.862249829261074 M-76.19634325967675 19.140403561325773 C-76.48147346876812 19.07532445174917, -76.76660367785948 19.010245342172567, -77.41501438623538 18.862249829261074 M-77.41501438623538 18.862249829261074 C-77.7949511955495 18.749486578585653, -78.17488800486362 18.636723327910232, -78.61336025146059 18.506587066708043 M-77.41501438623538 18.862249829261074 C-77.75563215516564 18.76115626338173, -78.0962499240959 18.660062697502386, -78.61336025146059 18.506587066708043 M-78.61336025146059 18.506587066708043 C-78.96147645754887 18.378477084916625, -79.30959266363713 18.250367103125207, -79.7864565951478 18.074876768247425 M-78.61336025146059 18.506587066708043 C-78.87439978922238 18.41052210378867, -79.13543932698418 18.314457140869294, -79.7864565951478 18.074876768247425 M-79.7864565951478 18.074876768247425 C-80.09170433949133 17.939752646679157, -80.39695208383488 17.80462852511089, -80.92948291279238 17.568892924097174 M-79.7864565951478 18.074876768247425 C-80.13648654341354 17.919928893419677, -80.48651649167928 17.76498101859193, -80.92948291279238 17.568892924097174 M-80.92948291279238 17.568892924097174 C-81.31286582640804 17.36888230363236, -81.69624874002369 17.168871683167552, -82.03774226407678 16.990714730406097 M-80.92948291279238 17.568892924097174 C-81.29981886868649 17.37568889311872, -81.67015482458059 17.182484862140267, -82.03774226407678 16.990714730406097 M-82.03774226407678 16.990714730406097 C-82.38335915013222 16.78119974300902, -82.72897603618767 16.57168475561194, -83.10668057360569 16.3427180453909 M-82.03774226407678 16.990714730406097 C-82.36522841283659 16.79219070250567, -82.6927145615964 16.593666674605245, -83.10668057360569 16.3427180453909 M-83.10668057360569 16.3427180453909 C-83.43947330176054 16.110576244595084, -83.7722660299154 15.878434443799266, -84.13190534457871 15.627565626425156 M-83.10668057360569 16.3427180453909 C-83.4313400031766 16.116249681602426, -83.7559994327475 15.88978131781395, -84.13190534457871 15.627565626425156 M-84.13190534457871 15.627565626425156 C-84.38657039123069 15.424477028641702, -84.64123543788268 15.221388430858246, -85.10920370850187 14.848196188198125 M-84.13190534457871 15.627565626425156 C-84.44091406991997 15.381139391033026, -84.74992279526124 15.134713155640895, -85.10920370850187 14.848196188198125 M-85.10920370850187 14.848196188198125 C-85.43034666522995 14.556542651874695, -85.75148962195803 14.264889115551265, -86.03455973676797 14.007812326905697 M-85.10920370850187 14.848196188198125 C-85.29632880510532 14.67825412652162, -85.48345390170877 14.508312064845114, -86.03455973676797 14.007812326905697 M-86.03455973676797 14.007812326905697 C-86.35212779075079 13.679897238346328, -86.66969584473358 13.35198214978696, -86.90417094296865 13.109867360095677 M-86.03455973676797 14.007812326905697 C-86.23583028287986 13.799983963426023, -86.43710082899175 13.59215559994635, -86.90417094296865 13.109867360095677 M-86.90417094296865 13.109867360095677 C-87.164466159253 12.804109787830699, -87.42476137553733 12.49835221556572, -87.71446390812658 12.158051136245307 M-86.90417094296865 13.109867360095677 C-87.13696555377382 12.836413563855318, -87.36976016457899 12.56295976761496, -87.71446390812658 12.158051136245307 M-87.71446390812658 12.158051136245307 C-87.92447674763102 11.876653063872622, -88.13448958713546 11.595254991499939, -88.46210896464063 11.156274872382316 M-87.71446390812658 12.158051136245307 C-87.9855214516223 11.794858721811245, -88.25657899511803 11.431666307377185, -88.46210896464063 11.156274872382316 M-88.46210896464063 11.156274872382316 C-88.6179416489865 10.916874022292204, -88.77377433333236 10.677473172202092, -89.14403387860425 10.108655082055249 M-88.46210896464063 11.156274872382316 C-88.7338925256823 10.73874233851745, -89.00567608672395 10.321209804652586, -89.14403387860425 10.108655082055249 M-89.14403387860425 10.108655082055249 C-89.28197598049647 9.863724911993147, -89.41991808238868 9.618794741931046, -89.7574364742735 9.019496659696289 M-89.14403387860425 10.108655082055249 C-89.35515889321042 9.733781239896038, -89.56628390781658 9.358907397736825, -89.7574364742735 9.019496659696289 M-89.7574364742735 9.019496659696289 C-89.91812816097996 8.685816933999039, -90.0788198476864 8.35213720830179, -90.29979614880834 7.893275190886686 M-89.7574364742735 9.019496659696289 C-89.92205469268508 8.67766340689902, -90.08667291109667 8.33583015410175, -90.29979614880834 7.893275190886686 M-90.29979614880834 7.893275190886686 C-90.48523250020929 7.435243817758377, -90.67066885161024 6.9772124446300685, -90.76888422997033 6.73461856121551 M-90.29979614880834 7.893275190886686 C-90.4068494673739 7.628851424294653, -90.51390278593945 7.3644276577026195, -90.76888422997033 6.73461856121551 M-90.76888422997033 6.73461856121551 C-90.88663259709848 6.379979240080063, -91.00438096422664 6.025339918944616, -91.16277313421489 5.5482879393051325 M-90.76888422997033 6.73461856121551 C-90.8861006088027 6.381581504066095, -91.0033169876351 6.028544446916681, -91.16277313421489 5.5482879393051325 M-91.16277313421489 5.5482879393051325 C-91.23544596450188 5.271154940816962, -91.30811879478887 4.994021942328791, -91.47984428754556 4.339158212148136 M-91.16277313421489 5.5482879393051325 C-91.26780235097004 5.147766015867226, -91.3728315677252 4.747244092429318, -91.47984428754556 4.339158212148136 M-91.47984428754556 4.339158212148136 C-91.53342874455966 4.06401335045972, -91.58701320157377 3.7888684887713047, -91.71879477658177 3.112197953150904 M-91.47984428754556 4.339158212148136 C-91.54076285807645 4.02635422761648, -91.60168142860734 3.7135502430848244, -91.71879477658177 3.112197953150904 M-91.71879477658177 3.112197953150904 C-91.7809323614805 2.630271115130456, -91.84306994637922 2.1483442771100076, -91.87864270250937 1.872449005199809 M-91.71879477658177 3.112197953150904 C-91.75814453802332 2.8070089738996447, -91.79749429946484 2.5018199946483852, -91.87864270250937 1.872449005199809 M-91.87864270250937 1.872449005199809 C-91.899512210814 1.5473895677913196, -91.92038171911862 1.2223301303828304, -91.95873121591342 0.6250057626472781 M-91.87864270250937 1.872449005199809 C-91.89747255491773 1.5791588547563726, -91.91630240732609 1.2858687043129362, -91.95873121591342 0.6250057626472781 M-91.95873121591342 0.6250057626472781 C-91.95873121591342 0.17917332271598724, -91.95873121591342 -0.26665911721530366, -91.95873121591342 -0.6250057626472687 M-91.95873121591342 0.6250057626472781 C-91.95873121591342 0.19445164078608074, -91.95873121591342 -0.23610248107511667, -91.95873121591342 -0.6250057626472687 M-91.95873121591342 -0.6250057626472687 C-91.93715329448294 -0.9610993063116324, -91.91557537305246 -1.2971928499759962, -91.87864270250937 -1.8724490051997822 M-91.95873121591342 -0.6250057626472687 C-91.93294814176984 -1.0265979541562826, -91.90716506762627 -1.4281901456652966, -91.87864270250937 -1.8724490051997822 M-91.87864270250937 -1.8724490051997822 C-91.83133954769384 -2.239322932884459, -91.78403639287833 -2.6061968605691357, -91.71879477658177 -3.112197953150895 M-91.87864270250937 -1.8724490051997822 C-91.83374285341144 -2.2206833683252833, -91.78884300431349 -2.5689177314507843, -91.71879477658177 -3.112197953150895 M-91.71879477658177 -3.112197953150895 C-91.62467128028261 -3.5955022136390826, -91.53054778398347 -4.07880647412727, -91.47984428754556 -4.339158212148126 M-91.71879477658177 -3.112197953150895 C-91.62805221867981 -3.5781418095310547, -91.53730966077785 -4.044085665911214, -91.47984428754556 -4.339158212148126 M-91.47984428754556 -4.339158212148126 C-91.38170031007104 -4.71342373412738, -91.28355633259652 -5.087689256106633, -91.16277313421489 -5.548287939305123 M-91.47984428754556 -4.339158212148126 C-91.39031798521256 -4.680560803888702, -91.30079168287958 -5.021963395629277, -91.16277313421489 -5.548287939305123 M-91.16277313421489 -5.548287939305123 C-91.01177471897586 -6.003071107674792, -90.86077630373683 -6.457854276044462, -90.76888422997033 -6.734618561215485 M-91.16277313421489 -5.548287939305123 C-91.0493882459427 -5.889785157352361, -90.93600335767049 -6.2312823753996, -90.76888422997033 -6.734618561215485 M-90.76888422997033 -6.734618561215485 C-90.66539825917569 -6.990230909843365, -90.56191228838107 -7.245843258471245, -90.29979614880834 -7.893275190886676 M-90.76888422997033 -6.734618561215485 C-90.61983102668165 -7.102782855086161, -90.47077782339298 -7.470947148956838, -90.29979614880834 -7.893275190886676 M-90.29979614880834 -7.893275190886676 C-90.12489028711555 -8.256470955077676, -89.94998442542277 -8.619666719268674, -89.7574364742735 -9.019496659696282 M-90.29979614880834 -7.893275190886676 C-90.17977166133936 -8.142508607228656, -90.05974717387036 -8.391742023570636, -89.7574364742735 -9.019496659696282 M-89.7574364742735 -9.019496659696282 C-89.62446811760287 -9.255595441471147, -89.49149976093224 -9.49169422324601, -89.14403387860425 -10.108655082055243 M-89.7574364742735 -9.019496659696282 C-89.59416293885485 -9.30940535507037, -89.4308894034362 -9.599314050444457, -89.14403387860425 -10.108655082055243 M-89.14403387860425 -10.108655082055243 C-88.97437114374915 -10.36930260361609, -88.80470840889406 -10.629950125176936, -88.46210896464063 -11.156274872382308 M-89.14403387860425 -10.108655082055243 C-88.93738372169955 -10.426125216397793, -88.73073356479485 -10.743595350740343, -88.46210896464063 -11.156274872382308 M-88.46210896464063 -11.156274872382308 C-88.19278690481528 -11.517141896803887, -87.92346484498994 -11.878008921225463, -87.71446390812659 -12.158051136245302 M-88.46210896464063 -11.156274872382308 C-88.19695151503842 -11.511561698508675, -87.93179406543621 -11.86684852463504, -87.71446390812659 -12.158051136245302 M-87.71446390812659 -12.158051136245302 C-87.45190300527426 -12.466470112874255, -87.18934210242193 -12.774889089503208, -86.90417094296866 -13.10986736009567 M-87.71446390812659 -12.158051136245302 C-87.53474867609292 -12.36915487387845, -87.35503344405925 -12.5802586115116, -86.90417094296866 -13.10986736009567 M-86.90417094296866 -13.10986736009567 C-86.7059842217547 -13.314511421181493, -86.50779750054076 -13.519155482267315, -86.03455973676799 -14.007812326905677 M-86.90417094296866 -13.10986736009567 C-86.62818035248257 -13.394850304021439, -86.35218976199648 -13.679833247947206, -86.03455973676799 -14.007812326905677 M-86.03455973676799 -14.007812326905677 C-85.80613713722236 -14.215259688082217, -85.57771453767674 -14.422707049258758, -85.1092037085019 -14.848196188198107 M-86.03455973676799 -14.007812326905677 C-85.81626683514138 -14.20606016444929, -85.59797393351477 -14.404308001992902, -85.1092037085019 -14.848196188198107 M-85.1092037085019 -14.848196188198107 C-84.90797514580407 -15.008670612032676, -84.70674658310625 -15.169145035867242, -84.13190534457871 -15.627565626425149 M-85.1092037085019 -14.848196188198107 C-84.77837966583557 -15.112019558626995, -84.44755562316925 -15.375842929055883, -84.13190534457871 -15.627565626425149 M-84.13190534457871 -15.627565626425149 C-83.89350300227262 -15.793864780146812, -83.65510065996654 -15.960163933868474, -83.10668057360571 -16.342718045390885 M-84.13190534457871 -15.627565626425149 C-83.78230055619433 -15.871434792654727, -83.43269576780995 -16.115303958884304, -83.10668057360571 -16.342718045390885 M-83.10668057360571 -16.342718045390885 C-82.71054138998588 -16.58285994647347, -82.31440220636604 -16.823001847556057, -82.03774226407678 -16.99071473040609 M-83.10668057360571 -16.342718045390885 C-82.83884989418301 -16.5050785772047, -82.57101921476031 -16.667439109018517, -82.03774226407678 -16.99071473040609 M-82.03774226407678 -16.99071473040609 C-81.60194229001436 -17.218071297731253, -81.16614231595194 -17.445427865056416, -80.9294829127924 -17.56889292409717 M-82.03774226407678 -16.99071473040609 C-81.69430270452906 -17.169886928638597, -81.35086314498136 -17.349059126871108, -80.9294829127924 -17.56889292409717 M-80.9294829127924 -17.56889292409717 C-80.63320089737294 -17.70004818342964, -80.33691888195351 -17.831203442762114, -79.78645659514781 -18.07487676824742 M-80.9294829127924 -17.56889292409717 C-80.62635296316543 -17.70307956076656, -80.32322301353845 -17.83726619743595, -79.78645659514781 -18.07487676824742 M-79.78645659514781 -18.07487676824742 C-79.5231443436225 -18.171778110840503, -79.2598320920972 -18.268679453433588, -78.61336025146062 -18.506587066708033 M-79.78645659514781 -18.07487676824742 C-79.46308153608254 -18.193881779229716, -79.13970647701727 -18.312886790212016, -78.61336025146062 -18.506587066708033 M-78.61336025146062 -18.506587066708033 C-78.31030976781744 -18.596530859508878, -78.00725928417427 -18.68647465230972, -77.41501438623541 -18.862249829261067 M-78.61336025146062 -18.506587066708033 C-78.24571323749417 -18.61570277063472, -77.87806622352771 -18.724818474561406, -77.41501438623541 -18.862249829261067 M-77.41501438623541 -18.862249829261067 C-77.1580875645597 -18.920891699704352, -76.90116074288399 -18.979533570147634, -76.19634325967677 -19.140403561325773 M-77.41501438623541 -18.862249829261067 C-77.10730095711949 -18.93248341143899, -76.79958752800357 -19.002716993616918, -76.19634325967677 -19.140403561325773 M-76.19634325967677 -19.140403561325773 C-75.91377477514494 -19.186087042553552, -75.63120629061312 -19.231770523781332, -74.96235465284788 -19.3399052695533 M-76.19634325967677 -19.140403561325773 C-75.71625685166293 -19.21802020864775, -75.23617044364912 -19.295636855969725, -74.96235465284788 -19.3399052695533 M-74.96235465284788 -19.3399052695533 C-74.5173059658738 -19.382838581136333, -74.07225727889974 -19.425771892719364, -73.7181192896239 -19.45993515863156 M-74.96235465284788 -19.3399052695533 C-74.49390813184748 -19.38509574204484, -74.02546161084707 -19.43028621453638, -73.7181192896239 -19.45993515863156 M-73.7181192896239 -19.45993515863156 C-73.321407901629 -19.472656920692682, -72.9246965136341 -19.485378682753804, -72.46875 -19.5 M-73.7181192896239 -19.45993515863156 C-73.2279397947152 -19.475654260956773, -72.73776029980648 -19.49137336328199, -72.46875 -19.5 M-72.46875 -19.5 C-72.46875 -19.5, -72.46875 -19.5, -72.46875 -19.5 M-72.46875 -19.5 C-72.46875 -19.5, -72.46875 -19.5, -72.46875 -19.5&quot; stroke=&quot;#9370DB&quot; stroke-width=&quot;1.3&quot; fill=&quot;none&quot; stroke-dasharray=&quot;0 0&quot; style=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-79.59375, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;159.1875&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;New event registration&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-B-1&quot; data-look=&quot;classic&quot; transform=&quot;translate(242.38671875, 124)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-72.6875&quot; y=&quot;-27&quot; width=&quot;145.375&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-42.6875, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;85.375&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Get Contact&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-C-3&quot; data-look=&quot;classic&quot; transform=&quot;translate(242.38671875, 252)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-130&quot; y=&quot;-51&quot; width=&quot;260&quot; height=&quot;102&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-100, -36)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;200&quot; height=&quot;72&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;List open Leads with same email&lt;br&gt;&lt;/br&gt;oldest first · take 1&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-D-5&quot; data-look=&quot;classic&quot; transform=&quot;translate(242.38671875, 446.28125)&quot;&gt;&lt;polygon points=&quot;93.28125,0 186.5625,-93.28125 93.28125,-186.5625 0,-93.28125&quot; class=&quot;label-container&quot; transform=&quot;translate(-92.78125, 93.28125)&quot;&gt;&lt;/polygon&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-66.28125, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;132.5625&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Open Lead found?&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-E-7&quot; data-look=&quot;classic&quot; transform=&quot;translate(104.2578125, 768.5625)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-96.2578125&quot; y=&quot;-39&quot; width=&quot;192.515625&quot; height=&quot;78&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-66.2578125, -24)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;132.515625&quot; height=&quot;48&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Update Lead:&lt;br&gt;&lt;/br&gt;set Parent Contact&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-F-9&quot; data-look=&quot;classic&quot; transform=&quot;translate(380.515625, 640.5625)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-65.578125&quot; y=&quot;-27&quot; width=&quot;131.15625&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-35.578125, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;71.15625&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Get Event&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-G-11&quot; data-look=&quot;classic&quot; transform=&quot;translate(380.515625, 768.5625)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-130&quot; y=&quot;-51&quot; width=&quot;260&quot; height=&quot;102&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-100, -36)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;200&quot; height=&quot;72&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Create new Lead:&lt;br&gt;&lt;/br&gt;Topic = event · set Originating Event&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-H-13&quot; data-look=&quot;classic&quot; transform=&quot;translate(242.38671875, 889.0625)&quot;&gt;&lt;g class=&quot;basic label-container outer-path&quot;&gt;&lt;path d=&quot;M-12 -19.5 C-3.1407361668421565 -19.5, 5.718527666315687 -19.5, 12 -19.5 C12 -19.5, 12 -19.5, 11.999999999999998 -19.5 C12.478715949077436 -19.484648511277154, 12.957431898154875 -19.46929702255431, 13.2493692896239 -19.45993515863156 C13.591843962463349 -19.42689703882879, 13.934318635302798 -19.393858919026027, 14.493604652847864 -19.3399052695533 C14.960205499120544 -19.26446886327154, 15.426806345393226 -19.18903245698978, 15.727593259676757 -19.140403561325776 C16.18515169903952 -19.035968833389084, 16.64271013840228 -18.931534105452393, 16.94626438623539 -18.862249829261074 C17.37949654945094 -18.73366879730073, 17.81272871266649 -18.605087765340386, 18.144610251460602 -18.50658706670804 C18.452281168861614 -18.393361325025683, 18.759952086262626 -18.280135583343327, 19.317706595147794 -18.074876768247425 C19.75663697976196 -17.88057530738598, 20.195567364376128 -17.68627384652453, 20.46073291279238 -17.568892924097174 C20.715484405347503 -17.435989233607284, 20.97023589790263 -17.303085543117394, 21.568992264076783 -16.990714730406097 C21.848242377100437 -16.821431670835338, 22.12749249012409 -16.65214861126458, 22.637930573605697 -16.342718045390892 C22.87037589044875 -16.18057425475677, 23.102821207291797 -16.01843046412265, 23.663155344578712 -15.627565626425154 C24.04917878320581 -15.319722206635163, 24.435202221832906 -15.011878786845172, 24.64045370850187 -14.848196188198123 C24.934246032701985 -14.581381772678512, 25.228038356902104 -14.3145673571589, 25.565809736767985 -14.007812326905688 C25.83725422263183 -13.727523609244514, 26.108698708495677 -13.44723489158334, 26.435420942968648 -13.10986736009568 C26.743405397570143 -12.748091294908845, 27.05138985217164 -12.386315229722006, 27.245713908126582 -12.158051136245305 C27.54338947383654 -11.759192996995884, 27.841065039546496 -11.360334857746462, 27.993358964640635 -11.156274872382312 C28.243151166049334 -10.772526972420582, 28.492943367458036 -10.388779072458853, 28.675283878604247 -10.108655082055241 C28.885559008088947 -9.735290296989398, 29.09583413757365 -9.361925511923554, 29.2886864742735 -9.019496659696287 C29.47266306919114 -8.637465323881289, 29.656639664108777 -8.25543398806629, 29.83104614880834 -7.893275190886684 C29.981000192156767 -7.5228858046518745, 30.130954235505193 -7.152496418417066, 30.300134229970325 -6.734618561215508 C30.410549159553664 -6.402066385540449, 30.520964089137003 -6.06951420986539, 30.69402313421488 -5.548287939305138 C30.77686816988454 -5.232363913031143, 30.8597132055542 -4.916439886757148, 31.01109428754556 -4.339158212148133 C31.07546861367023 -4.008609653016614, 31.139842939794896 -3.678061093885095, 31.250044776581777 -3.1121979531509023 C31.312351144537566 -2.628962067069814, 31.374657512493354 -2.1457261809887256, 31.409892702509367 -1.872449005199798 C31.434227356922158 -1.4934171201410802, 31.458562011334948 -1.1143852350823624, 31.489981215913414 -0.6250057626472757 C31.489981215913414 -0.2276334070500312, 31.489981215913414 0.16973894854721328, 31.489981215913414 0.625005762647271 C31.47113391568154 0.9185676770256315, 31.452286615449665 1.212129591403992, 31.409892702509367 1.8724490051997846 C31.35160310412185 2.3245316197102306, 31.293313505734332 2.776614234220676, 31.250044776581777 3.1121979531508885 C31.172341449392437 3.511188115664132, 31.094638122203097 3.910178278177375, 31.01109428754556 4.339158212148129 C30.9125754217915 4.714853345614867, 30.814056556037443 5.0905484790816065, 30.694023134214884 5.548287939305125 C30.60276801191501 5.823133828143113, 30.511512889615137 6.0979797169811, 30.30013422997033 6.734618561215495 C30.196132847785318 6.991503985942406, 30.09213146560031 7.248389410669317, 29.831046148808344 7.893275190886679 C29.62583258166163 8.319405553933766, 29.420619014514916 8.745535916980854, 29.288686474273504 9.019496659696284 C29.116327756341082 9.325537016598052, 28.943969038408657 9.631577373499821, 28.67528387860425 10.108655082055236 C28.531625413405887 10.329353062299212, 28.387966948207527 10.550051042543188, 27.99335896464064 11.156274872382301 C27.784596547926792 11.435997492131447, 27.575834131212943 11.715720111880595, 27.245713908126582 12.158051136245302 C26.94752067502152 12.508325875526147, 26.649327441916455 12.858600614806992, 26.43542094296866 13.10986736009567 C26.24467053543582 13.306832816773039, 26.05392012790298 13.503798273450407, 25.56580973676799 14.007812326905684 C25.331475024263465 14.220628912645559, 25.097140311758942 14.433445498385433, 24.640453708501887 14.848196188198111 C24.294176990949513 15.124342655635678, 23.947900273397142 15.400489123073243, 23.663155344578715 15.627565626425152 C23.43493932950539 15.786759239228237, 23.206723314432068 15.945952852031322, 22.637930573605708 16.34271804539089 C22.32583471931482 16.531912386340846, 22.013738865023928 16.721106727290802, 21.568992264076787 16.990714730406093 C21.139272561807672 17.214899223831285, 20.709552859538558 17.439083717256477, 20.460732912792388 17.56889292409717 C20.13714393103642 17.712136167394444, 19.813554949280448 17.855379410691718, 19.317706595147804 18.07487676824742 C19.06495833279886 18.16789046517116, 18.812210070449915 18.260904162094896, 18.144610251460616 18.506587066708033 C17.884366447087935 18.58382606179824, 17.624122642715257 18.661065056888447, 16.946264386235413 18.86224982926107 C16.595686107737922 18.942267033591055, 16.245107829240432 19.02228423792104, 15.727593259676766 19.140403561325773 C15.463371127804518 19.18312094653364, 15.19914899593227 19.225838331741514, 14.493604652847878 19.3399052695533 C14.244559244856761 19.363930380541277, 13.995513836865644 19.387955491529254, 13.2493692896239 19.45993515863156 C12.955931919000403 19.46934512396626, 12.662494548376904 19.478755089300964, 12.000000000000004 19.5 C12.000000000000004 19.5, 12.000000000000002 19.5, 12 19.5 C4.103876759377865 19.5, -3.7922464812442698 19.5, -11.999999999999996 19.5 C-12.29804061786398 19.490442417485973, -12.596081235727963 19.480884834971945, -13.249369289623893 19.45993515863156 C-13.634463092958704 19.42278562256691, -14.019556896293516 19.38563608650226, -14.493604652847871 19.3399052695533 C-14.857267672633807 19.281111052763148, -15.220930692419742 19.222316835972997, -15.727593259676759 19.140403561325773 C-16.142803768475556 19.045634472194234, -16.558014277274356 18.950865383062695, -16.946264386235388 18.862249829261074 C-17.26558574010572 18.76747692758435, -17.58490709397605 18.672704025907628, -18.14461025146059 18.506587066708043 C-18.39969218529403 18.41271455710579, -18.654774119127467 18.318842047503537, -19.317706595147797 18.074876768247425 C-19.665845246183384 17.92076611460013, -20.013983897218967 17.766655460952833, -20.46073291279238 17.568892924097174 C-20.864761350516183 17.35811154692923, -21.26878978823999 17.14733016976129, -21.56899226407678 16.990714730406097 C-21.90841618722877 16.784953953514982, -22.24784011038076 16.579193176623868, -22.637930573605686 16.3427180453909 C-22.87816064481818 16.175143947105237, -23.118390716030678 16.007569848819575, -23.663155344578712 15.627565626425156 C-24.045895726713482 15.322340356821995, -24.42863610884825 15.017115087218835, -24.64045370850187 14.848196188198125 C-24.910578037767355 14.602876419457314, -25.18070236703284 14.357556650716504, -25.565809736767974 14.007812326905697 C-25.846212514986096 13.718273436899254, -26.126615293204217 13.42873454689281, -26.435420942968655 13.109867360095677 C-26.73743177963542 12.755108246443465, -27.03944261630218 12.40034913279125, -27.24571390812658 12.158051136245307 C-27.406003926862 11.943277113860958, -27.56629394559742 11.728503091476608, -27.993358964640635 11.156274872382316 C-28.252755574779922 10.757772021465543, -28.512152184919213 10.359269170548771, -28.675283878604244 10.108655082055249 C-28.802317164394143 9.883094619620225, -28.929350450184042 9.657534157185202, -29.2886864742735 9.019496659696289 C-29.408091002864303 8.771550601229857, -29.527495531455102 8.523604542763424, -29.83104614880834 7.893275190886686 C-29.962468683161205 7.568658990153266, -30.09389121751407 7.244042789419845, -30.300134229970325 6.73461856121551 C-30.425645000704193 6.356600117190707, -30.55115577143806 5.978581673165904, -30.69402313421488 5.5482879393051325 C-30.81622270625888 5.082288009471824, -30.938422278302877 4.616288079638515, -31.011094287545557 4.339158212148136 C-31.0959964230925 3.903203690187282, -31.18089855863945 3.467249168226428, -31.250044776581777 3.112197953150904 C-31.290340644212645 2.799671161124993, -31.33063651184351 2.4871443690990818, -31.409892702509364 1.872449005199809 C-31.434843589815994 1.4838187954053272, -31.45979447712262 1.0951885856108454, -31.489981215913414 0.6250057626472781 C-31.489981215913414 0.28896745191705697, -31.489981215913414 -0.047070858813164196, -31.489981215913414 -0.6250057626472687 C-31.466909931095046 -0.9843596464992813, -31.443838646276678 -1.343713530351294, -31.409892702509367 -1.8724490051997822 C-31.35651964609006 -2.2863998910858085, -31.303146589670757 -2.7003507769718347, -31.250044776581777 -3.112197953150895 C-31.19404014874997 -3.399769880484947, -31.138035520918162 -3.6873418078189997, -31.01109428754556 -4.339158212148126 C-30.907447355643498 -4.734408884355128, -30.80380042374144 -5.12965955656213, -30.694023134214884 -5.548287939305123 C-30.567907023563713 -5.9281295707130175, -30.441790912912545 -6.307971202120912, -30.300134229970332 -6.734618561215485 C-30.164623910670993 -7.069331669798643, -30.029113591371658 -7.404044778381801, -29.831046148808344 -7.893275190886676 C-29.699504883923815 -8.166423441951588, -29.56796361903929 -8.4395716930165, -29.288686474273504 -9.019496659696282 C-29.12737217355258 -9.305926535470523, -28.966057872831655 -9.592356411244763, -28.675283878604247 -10.108655082055243 C-28.483942694472418 -10.402606523183875, -28.29260151034059 -10.696557964312507, -27.99335896464064 -11.156274872382308 C-27.811390341947344 -11.400096249108762, -27.62942171925405 -11.643917625835217, -27.245713908126586 -12.158051136245302 C-26.97102930929948 -12.480711296024072, -26.696344710472374 -12.803371455802841, -26.435420942968662 -13.10986736009567 C-26.090652283468252 -13.465869307063207, -25.745883623967842 -13.821871254030745, -25.565809736767996 -14.007812326905677 C-25.23376735535244 -14.309364432347296, -24.901724973936883 -14.610916537788913, -24.640453708501887 -14.848196188198107 C-24.398853099154515 -15.040866244890413, -24.15725248980714 -15.233536301582717, -23.66315534457872 -15.627565626425149 C-23.427505257373824 -15.791944926131423, -23.191855170168928 -15.956324225837697, -22.63793057360571 -16.342718045390885 C-22.304513999090567 -16.544837132235244, -21.97109742457542 -16.746956219079607, -21.56899226407679 -16.99071473040609 C-21.27471655230827 -17.144238180743137, -20.980440840539746 -17.29776163108019, -20.460732912792388 -17.56889292409717 C-20.105790380782498 -17.726015454021834, -19.750847848772608 -17.883137983946494, -19.317706595147804 -18.07487676824742 C-18.9238169815242 -18.21983178713658, -18.5299273679006 -18.36478680602574, -18.14461025146062 -18.506587066708033 C-17.71028899023067 -18.635491337242257, -17.275967729000723 -18.764395607776486, -16.946264386235413 -18.862249829261067 C-16.675021451929723 -18.924159258990777, -16.403778517624033 -18.986068688720486, -15.727593259676768 -19.140403561325773 C-15.334197390017762 -19.204004754701707, -14.940801520358756 -19.267605948077644, -14.49360465284788 -19.3399052695533 C-14.130482139187281 -19.37493526172742, -13.767359625526682 -19.40996525390154, -13.249369289623903 -19.45993515863156 C-12.820387499308904 -19.47369176968456, -12.391405708993906 -19.48744838073756, -12.000000000000005 -19.5 C-12.000000000000004 -19.5, -12.000000000000002 -19.5, -12 -19.5&quot; stroke=&quot;none&quot; stroke-width=&quot;0&quot; fill=&quot;#ECECFF&quot; style=&quot;&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M-12 -19.5 C-5.128244916658226 -19.5, 1.7435101666835475 -19.5, 12 -19.5 M-12 -19.5 C-3.257097477157094 -19.5, 5.485805045685812 -19.5, 12 -19.5 M12 -19.5 C12 -19.5, 11.999999999999998 -19.5, 11.999999999999998 -19.5 M12 -19.5 C12 -19.5, 12 -19.5, 11.999999999999998 -19.5 M11.999999999999998 -19.5 C12.316605121145313 -19.489847089999355, 12.63321024229063 -19.479694179998706, 13.2493692896239 -19.45993515863156 M11.999999999999998 -19.5 C12.443526127914208 -19.485776980349026, 12.887052255828419 -19.471553960698056, 13.2493692896239 -19.45993515863156 M13.2493692896239 -19.45993515863156 C13.702231471922328 -19.416248088551686, 14.155093654220757 -19.372561018471817, 14.493604652847864 -19.3399052695533 M13.2493692896239 -19.45993515863156 C13.546022699043785 -19.431317361002744, 13.84267610846367 -19.402699563373933, 14.493604652847864 -19.3399052695533 M14.493604652847864 -19.3399052695533 C14.839450454248817 -19.28399160245704, 15.18529625564977 -19.22807793536078, 15.727593259676757 -19.140403561325776 M14.493604652847864 -19.3399052695533 C14.768186802070042 -19.295512957083428, 15.04276895129222 -19.251120644613557, 15.727593259676757 -19.140403561325776 M15.727593259676757 -19.140403561325776 C16.13304793078749 -19.047861178483746, 16.538502601898223 -18.955318795641716, 16.94626438623539 -18.862249829261074 M15.727593259676757 -19.140403561325776 C16.001055872293858 -19.07798750450624, 16.27451848491096 -19.015571447686707, 16.94626438623539 -18.862249829261074 M16.94626438623539 -18.862249829261074 C17.372795200714016 -18.735657722429753, 17.799326015192637 -18.609065615598432, 18.144610251460602 -18.50658706670804 M16.94626438623539 -18.862249829261074 C17.28819485161967 -18.76076666196466, 17.630125317003955 -18.65928349466824, 18.144610251460602 -18.50658706670804 M18.144610251460602 -18.50658706670804 C18.398807644623087 -18.4130400762493, 18.653005037785576 -18.319493085790562, 19.317706595147794 -18.074876768247425 M18.144610251460602 -18.50658706670804 C18.462767239976827 -18.389502353923106, 18.780924228493053 -18.272417641138173, 19.317706595147794 -18.074876768247425 M19.317706595147794 -18.074876768247425 C19.571631322522453 -17.962471823848073, 19.825556049897116 -17.850066879448722, 20.46073291279238 -17.568892924097174 M19.317706595147794 -18.074876768247425 C19.774118243166658 -17.872836870639972, 20.23052989118552 -17.67079697303252, 20.46073291279238 -17.568892924097174 M20.46073291279238 -17.568892924097174 C20.689252167734036 -17.44967457516768, 20.91777142267569 -17.33045622623819, 21.568992264076783 -16.990714730406097 M20.46073291279238 -17.568892924097174 C20.760713856651332 -17.412393057832926, 21.060694800510284 -17.255893191568674, 21.568992264076783 -16.990714730406097 M21.568992264076783 -16.990714730406097 C21.806350901058654 -16.846826529793507, 22.04370953804052 -16.702938329180917, 22.637930573605697 -16.342718045390892 M21.568992264076783 -16.990714730406097 C21.871194064902635 -16.807518222810558, 22.173395865728484 -16.624321715215018, 22.637930573605697 -16.342718045390892 M22.637930573605697 -16.342718045390892 C22.854414234894342 -16.191708414702592, 23.070897896182984 -16.04069878401429, 23.663155344578712 -15.627565626425154 M22.637930573605697 -16.342718045390892 C22.886459658420094 -16.16935491447505, 23.13498874323449 -15.995991783559212, 23.663155344578712 -15.627565626425154 M23.663155344578712 -15.627565626425154 C24.017131376157653 -15.34527916093875, 24.3711074077366 -15.062992695452344, 24.64045370850187 -14.848196188198123 M23.663155344578712 -15.627565626425154 C24.018779000682002 -15.34396522422571, 24.374402656785293 -15.06036482202627, 24.64045370850187 -14.848196188198123 M24.64045370850187 -14.848196188198123 C24.844363850431847 -14.663010392464027, 25.048273992361825 -14.47782459672993, 25.565809736767985 -14.007812326905688 M24.64045370850187 -14.848196188198123 C24.958659140825738 -14.559210433815965, 25.276864573149606 -14.270224679433806, 25.565809736767985 -14.007812326905688 M25.565809736767985 -14.007812326905688 C25.811839811274393 -13.753766075533047, 26.057869885780796 -13.499719824160408, 26.435420942968648 -13.10986736009568 M25.565809736767985 -14.007812326905688 C25.84467259369247 -13.719863532064812, 26.123535450616956 -13.431914737223938, 26.435420942968648 -13.10986736009568 M26.435420942968648 -13.10986736009568 C26.647402184751872 -12.860862131422746, 26.859383426535096 -12.61185690274981, 27.245713908126582 -12.158051136245305 M26.435420942968648 -13.10986736009568 C26.714961932519884 -12.781502607435888, 26.99450292207112 -12.453137854776097, 27.245713908126582 -12.158051136245305 M27.245713908126582 -12.158051136245305 C27.493887945203564 -11.825520535682037, 27.74206198228055 -11.492989935118768, 27.993358964640635 -11.156274872382312 M27.245713908126582 -12.158051136245305 C27.442094991806638 -11.894918374798799, 27.638476075486693 -11.63178561335229, 27.993358964640635 -11.156274872382312 M27.993358964640635 -11.156274872382312 C28.194206714949324 -10.847718792735574, 28.39505446525801 -10.539162713088833, 28.675283878604247 -10.108655082055241 M27.993358964640635 -11.156274872382312 C28.177079822459465 -10.874030298814581, 28.36080068027829 -10.59178572524685, 28.675283878604247 -10.108655082055241 M28.675283878604247 -10.108655082055241 C28.808370671712687 -9.872346004392064, 28.941457464821127 -9.636036926728888, 29.2886864742735 -9.019496659696287 M28.675283878604247 -10.108655082055241 C28.849727232677132 -9.79891324259378, 29.02417058675002 -9.48917140313232, 29.2886864742735 -9.019496659696287 M29.2886864742735 -9.019496659696287 C29.404052658502465 -8.77993630970394, 29.519418842731426 -8.540375959711593, 29.83104614880834 -7.893275190886684 M29.2886864742735 -9.019496659696287 C29.422828977509226 -8.740946881537527, 29.556971480744952 -8.462397103378768, 29.83104614880834 -7.893275190886684 M29.83104614880834 -7.893275190886684 C29.97433362354134 -7.5393523580213095, 30.11762109827434 -7.185429525155934, 30.300134229970325 -6.734618561215508 M29.83104614880834 -7.893275190886684 C29.989871758043748 -7.500972865390976, 30.14869736727915 -7.108670539895267, 30.300134229970325 -6.734618561215508 M30.300134229970325 -6.734618561215508 C30.431896141657457 -6.337772676623531, 30.56365805334459 -5.940926792031554, 30.69402313421488 -5.548287939305138 M30.300134229970325 -6.734618561215508 C30.409317290717834 -6.40577657820232, 30.518500351465345 -6.076934595189133, 30.69402313421488 -5.548287939305138 M30.69402313421488 -5.548287939305138 C30.81224287060272 -5.097464847700447, 30.93046260699056 -4.6466417560957565, 31.01109428754556 -4.339158212148133 M30.69402313421488 -5.548287939305138 C30.80317044756186 -5.132061928768267, 30.912317760908838 -4.715835918231396, 31.01109428754556 -4.339158212148133 M31.01109428754556 -4.339158212148133 C31.07044330888232 -4.03441353100396, 31.129792330219086 -3.729668849859786, 31.250044776581777 -3.1121979531509023 M31.01109428754556 -4.339158212148133 C31.099337742943437 -3.8860467189409365, 31.187581198341316 -3.43293522573374, 31.250044776581777 -3.1121979531509023 M31.250044776581777 -3.1121979531509023 C31.300670584278066 -2.7195541858549874, 31.35129639197435 -2.3269104185590725, 31.409892702509367 -1.872449005199798 M31.250044776581777 -3.1121979531509023 C31.301295600238596 -2.7147066854884674, 31.352546423895415 -2.3172154178260325, 31.409892702509367 -1.872449005199798 M31.409892702509367 -1.872449005199798 C31.432560334143098 -1.5193823455215272, 31.455227965776825 -1.1663156858432564, 31.489981215913414 -0.6250057626472757 M31.409892702509367 -1.872449005199798 C31.434272127916504 -1.4927197757656456, 31.45865155332364 -1.1129905463314933, 31.489981215913414 -0.6250057626472757 M31.489981215913414 -0.6250057626472757 C31.489981215913414 -0.22053062442510551, 31.489981215913414 0.18394451379706467, 31.489981215913414 0.625005762647271 M31.489981215913414 -0.6250057626472757 C31.489981215913414 -0.3341098565219359, 31.489981215913414 -0.043213950396596146, 31.489981215913414 0.625005762647271 M31.489981215913414 0.625005762647271 C31.460318743426253 1.0870227147516696, 31.43065627093909 1.5490396668560682, 31.409892702509367 1.8724490051997846 M31.489981215913414 0.625005762647271 C31.47257775752963 0.8960786747934596, 31.45517429914585 1.167151586939648, 31.409892702509367 1.8724490051997846 M31.409892702509367 1.8724490051997846 C31.361955808159873 2.244238091563974, 31.31401891381038 2.616027177928163, 31.250044776581777 3.1121979531508885 M31.409892702509367 1.8724490051997846 C31.36636538782105 2.2100382624818606, 31.322838073132736 2.547627519763936, 31.250044776581777 3.1121979531508885 M31.250044776581777 3.1121979531508885 C31.177452446196433 3.484944227285168, 31.104860115811093 3.8576905014194476, 31.01109428754556 4.339158212148129 M31.250044776581777 3.1121979531508885 C31.194075866678855 3.3995864764691035, 31.138106956775932 3.6869749997873185, 31.01109428754556 4.339158212148129 M31.01109428754556 4.339158212148129 C30.907985343359343 4.732357304029269, 30.804876399173125 5.12555639591041, 30.694023134214884 5.548287939305125 M31.01109428754556 4.339158212148129 C30.904895229888798 4.744141245956102, 30.798696172232038 5.149124279764075, 30.694023134214884 5.548287939305125 M30.694023134214884 5.548287939305125 C30.560307342307322 5.951018599812501, 30.42659155039976 6.353749260319877, 30.30013422997033 6.734618561215495 M30.694023134214884 5.548287939305125 C30.548708817691345 5.985951507981889, 30.403394501167803 6.423615076658651, 30.30013422997033 6.734618561215495 M30.30013422997033 6.734618561215495 C30.113854508819887 7.19473307393049, 29.927574787669446 7.654847586645486, 29.831046148808344 7.893275190886679 M30.30013422997033 6.734618561215495 C30.168701490096566 7.059259969782847, 30.037268750222804 7.383901378350199, 29.831046148808344 7.893275190886679 M29.831046148808344 7.893275190886679 C29.64191394963863 8.286012249243365, 29.452781750468922 8.678749307600052, 29.288686474273504 9.019496659696284 M29.831046148808344 7.893275190886679 C29.626060426149987 8.3189324299786, 29.42107470349163 8.744589669070521, 29.288686474273504 9.019496659696284 M29.288686474273504 9.019496659696284 C29.06270273099965 9.420753679214403, 28.836718987725792 9.822010698732523, 28.67528387860425 10.108655082055236 M29.288686474273504 9.019496659696284 C29.116592120419554 9.325067611406956, 28.944497766565604 9.630638563117628, 28.67528387860425 10.108655082055236 M28.67528387860425 10.108655082055236 C28.411431809986397 10.514002713653204, 28.147579741368546 10.919350345251173, 27.99335896464064 11.156274872382301 M28.67528387860425 10.108655082055236 C28.406170615271872 10.52208532156331, 28.137057351939497 10.935515561071384, 27.99335896464064 11.156274872382301 M27.99335896464064 11.156274872382301 C27.695314327568898 11.555627533633423, 27.397269690497154 11.954980194884543, 27.245713908126582 12.158051136245302 M27.99335896464064 11.156274872382301 C27.795917317025772 11.420828692882097, 27.598475669410902 11.685382513381892, 27.245713908126582 12.158051136245302 M27.245713908126582 12.158051136245302 C26.99745082987768 12.449675074525803, 26.749187751628778 12.741299012806305, 26.43542094296866 13.10986736009567 M27.245713908126582 12.158051136245302 C26.94172167241902 12.515137713955635, 26.63772943671146 12.872224291665969, 26.43542094296866 13.10986736009567 M26.43542094296866 13.10986736009567 C26.166416075839958 13.387636971116384, 25.897411208711254 13.665406582137098, 25.56580973676799 14.007812326905684 M26.43542094296866 13.10986736009567 C26.234898446241147 13.316923301169982, 26.034375949513635 13.523979242244295, 25.56580973676799 14.007812326905684 M25.56580973676799 14.007812326905684 C25.313769554395968 14.236708551918158, 25.061729372023947 14.465604776930633, 24.640453708501887 14.848196188198111 M25.56580973676799 14.007812326905684 C25.27934675816258 14.267970424680042, 24.992883779557168 14.5281285224544, 24.640453708501887 14.848196188198111 M24.640453708501887 14.848196188198111 C24.259315960739308 15.152143399537342, 23.878178212976728 15.456090610876574, 23.663155344578715 15.627565626425152 M24.640453708501887 14.848196188198111 C24.31909452052766 15.104471588880415, 23.997735332553436 15.360746989562719, 23.663155344578715 15.627565626425152 M23.663155344578715 15.627565626425152 C23.371195287860502 15.831224323244625, 23.079235231142288 16.034883020064097, 22.637930573605708 16.34271804539089 M23.663155344578715 15.627565626425152 C23.43406408096675 15.787369774719897, 23.204972817354783 15.94717392301464, 22.637930573605708 16.34271804539089 M22.637930573605708 16.34271804539089 C22.264276659110113 16.569229244192254, 21.890622744614518 16.79574044299362, 21.568992264076787 16.990714730406093 M22.637930573605708 16.34271804539089 C22.4050807616768 16.483872969759574, 22.172230949747895 16.62502789412826, 21.568992264076787 16.990714730406093 M21.568992264076787 16.990714730406093 C21.281095500874343 17.140910287362132, 20.993198737671896 17.291105844318167, 20.460732912792388 17.56889292409717 M21.568992264076787 16.990714730406093 C21.310387968989854 17.12562842550899, 21.05178367390292 17.260542120611888, 20.460732912792388 17.56889292409717 M20.460732912792388 17.56889292409717 C20.096040022662987 17.730331648327244, 19.731347132533585 17.891770372557318, 19.317706595147804 18.07487676824742 M20.460732912792388 17.56889292409717 C20.0557180757356 17.748180978123937, 19.650703238678815 17.927469032150707, 19.317706595147804 18.07487676824742 M19.317706595147804 18.07487676824742 C18.875021467284565 18.237788987437554, 18.432336339421326 18.40070120662769, 18.144610251460616 18.506587066708033 M19.317706595147804 18.07487676824742 C18.894244970244564 18.230714560648163, 18.470783345341328 18.386552353048902, 18.144610251460616 18.506587066708033 M18.144610251460616 18.506587066708033 C17.809987647961435 18.605901298956702, 17.475365044462258 18.705215531205372, 16.946264386235413 18.86224982926107 M18.144610251460616 18.506587066708033 C17.847859047920878 18.594661266239775, 17.55110784438114 18.682735465771515, 16.946264386235413 18.86224982926107 M16.946264386235413 18.86224982926107 C16.50440548153705 18.96310124085965, 16.062546576838688 19.06395265245823, 15.727593259676766 19.140403561325773 M16.946264386235413 18.86224982926107 C16.470428524262942 18.9708562596371, 15.994592662290472 19.079462690013127, 15.727593259676766 19.140403561325773 M15.727593259676766 19.140403561325773 C15.29418583664511 19.210473512356767, 14.860778413613453 19.28054346338776, 14.493604652847878 19.3399052695533 M15.727593259676766 19.140403561325773 C15.357628509271763 19.200216593051763, 14.987663758866757 19.260029624777758, 14.493604652847878 19.3399052695533 M14.493604652847878 19.3399052695533 C14.18314486677378 19.369854951733345, 13.872685080699684 19.399804633913394, 13.2493692896239 19.45993515863156 M14.493604652847878 19.3399052695533 C14.1641416404946 19.371688170117775, 13.834678628141324 19.40347107068225, 13.2493692896239 19.45993515863156 M13.2493692896239 19.45993515863156 C12.840247727737273 19.473054890814453, 12.431126165850648 19.486174622997346, 12.000000000000004 19.5 M13.2493692896239 19.45993515863156 C12.996685972517513 19.46803822079292, 12.744002655411126 19.476141282954284, 12.000000000000004 19.5 M12.000000000000004 19.5 C12.000000000000002 19.5, 12.000000000000002 19.5, 12 19.5 M12.000000000000004 19.5 C12.000000000000004 19.5, 12.000000000000002 19.5, 12 19.5 M12 19.5 C6.383821717962754 19.5, 0.7676434359255087 19.5, -11.999999999999996 19.5 M12 19.5 C4.949380522478122 19.5, -2.1012389550437565 19.5, -11.999999999999996 19.5 M-11.999999999999996 19.5 C-12.39326785959799 19.487388665192146, -12.786535719195983 19.47477733038429, -13.249369289623893 19.45993515863156 M-11.999999999999996 19.5 C-12.487499324804125 19.484366845513403, -12.974998649608251 19.468733691026806, -13.249369289623893 19.45993515863156 M-13.249369289623893 19.45993515863156 C-13.580124534494441 19.42802759795028, -13.91087977936499 19.396120037268997, -14.493604652847871 19.3399052695533 M-13.249369289623893 19.45993515863156 C-13.614392850336158 19.424721774734707, -13.979416411048422 19.389508390837854, -14.493604652847871 19.3399052695533 M-14.493604652847871 19.3399052695533 C-14.969609211702291 19.2629485439482, -15.44561377055671 19.185991818343105, -15.727593259676759 19.140403561325773 M-14.493604652847871 19.3399052695533 C-14.950931764029567 19.265968168842157, -15.408258875211265 19.192031068131016, -15.727593259676759 19.140403561325773 M-15.727593259676759 19.140403561325773 C-16.15613839074011 19.04259093167889, -16.584683521803463 18.94477830203201, -16.946264386235388 18.862249829261074 M-15.727593259676759 19.140403561325773 C-16.14448503471951 19.045250734145338, -16.56137680976226 18.950097906964906, -16.946264386235388 18.862249829261074 M-16.946264386235388 18.862249829261074 C-17.196516962636146 18.78797617818791, -17.4467695390369 18.713702527114744, -18.14461025146059 18.506587066708043 M-16.946264386235388 18.862249829261074 C-17.404726328517427 18.72618073130761, -17.863188270799462 18.590111633354145, -18.14461025146059 18.506587066708043 M-18.14461025146059 18.506587066708043 C-18.43085606258285 18.40124596218778, -18.71710187370511 18.295904857667516, -19.317706595147797 18.074876768247425 M-18.14461025146059 18.506587066708043 C-18.58879596437328 18.343122618348456, -19.032981677285964 18.17965816998887, -19.317706595147797 18.074876768247425 M-19.317706595147797 18.074876768247425 C-19.724377110296587 17.89485579464327, -20.13104762544538 17.71483482103912, -20.46073291279238 17.568892924097174 M-19.317706595147797 18.074876768247425 C-19.588742779611312 17.954897089388176, -19.859778964074824 17.83491741052893, -20.46073291279238 17.568892924097174 M-20.46073291279238 17.568892924097174 C-20.749312144865815 17.41834132356828, -21.03789137693925 17.267789723039392, -21.56899226407678 16.990714730406097 M-20.46073291279238 17.568892924097174 C-20.871539579983267 17.35457534895792, -21.28234624717415 17.14025777381866, -21.56899226407678 16.990714730406097 M-21.56899226407678 16.990714730406097 C-21.835645336895436 16.829068070636033, -22.10229840971409 16.667421410865973, -22.637930573605686 16.3427180453909 M-21.56899226407678 16.990714730406097 C-21.783551098952383 16.860647903816837, -21.998109933827987 16.730581077227576, -22.637930573605686 16.3427180453909 M-22.637930573605686 16.3427180453909 C-22.910781149151976 16.152389295400855, -23.183631724698266 15.962060545410814, -23.663155344578712 15.627565626425156 M-22.637930573605686 16.3427180453909 C-22.998301542306816 16.091338857832795, -23.358672511007946 15.839959670274693, -23.663155344578712 15.627565626425156 M-23.663155344578712 15.627565626425156 C-23.994271401513924 15.363509382387653, -24.32538745844914 15.099453138350148, -24.64045370850187 14.848196188198125 M-23.663155344578712 15.627565626425156 C-24.01816278514766 15.344456639716167, -24.37317022571661 15.061347653007179, -24.64045370850187 14.848196188198125 M-24.64045370850187 14.848196188198125 C-24.838564357061898 14.668277338896432, -25.036675005621923 14.488358489594738, -25.565809736767974 14.007812326905697 M-24.64045370850187 14.848196188198125 C-24.981801688364975 14.538192984459085, -25.32314966822808 14.228189780720045, -25.565809736767974 14.007812326905697 M-25.565809736767974 14.007812326905697 C-25.86497411156751 13.698900548073219, -26.164138486367044 13.389988769240741, -26.435420942968655 13.109867360095677 M-25.565809736767974 14.007812326905697 C-25.814268617562078 13.751258133632305, -26.062727498356182 13.494703940358914, -26.435420942968655 13.109867360095677 M-26.435420942968655 13.109867360095677 C-26.74507907315596 12.746125300330908, -27.05473720334326 12.382383240566138, -27.24571390812658 12.158051136245307 M-26.435420942968655 13.109867360095677 C-26.742187131672203 12.74952233935386, -27.04895332037575 12.389177318612042, -27.24571390812658 12.158051136245307 M-27.24571390812658 12.158051136245307 C-27.466366187033604 11.862397184346039, -27.687018465940625 11.566743232446768, -27.993358964640635 11.156274872382316 M-27.24571390812658 12.158051136245307 C-27.416240595797976 11.929560910066472, -27.586767283469374 11.701070683887638, -27.993358964640635 11.156274872382316 M-27.993358964640635 11.156274872382316 C-28.13918848112718 10.932241574350785, -28.285017997613732 10.708208276319255, -28.675283878604244 10.108655082055249 M-27.993358964640635 11.156274872382316 C-28.138092589063145 10.933925158849371, -28.282826213485656 10.711575445316427, -28.675283878604244 10.108655082055249 M-28.675283878604244 10.108655082055249 C-28.81514865071664 9.860311016325744, -28.95501342282904 9.61196695059624, -29.2886864742735 9.019496659696289 M-28.675283878604244 10.108655082055249 C-28.895380932588182 9.717850475463303, -29.115477986572124 9.327045868871357, -29.2886864742735 9.019496659696289 M-29.2886864742735 9.019496659696289 C-29.471328362422415 8.640236871044694, -29.653970250571334 8.260977082393097, -29.83104614880834 7.893275190886686 M-29.2886864742735 9.019496659696289 C-29.456578392237276 8.670865499732942, -29.62447031020105 8.322234339769594, -29.83104614880834 7.893275190886686 M-29.83104614880834 7.893275190886686 C-29.93772996827614 7.6297640942098885, -30.04441378774394 7.366252997533091, -30.300134229970325 6.73461856121551 M-29.83104614880834 7.893275190886686 C-29.94809444599724 7.604163633855234, -30.065142743186136 7.315052076823782, -30.300134229970325 6.73461856121551 M-30.300134229970325 6.73461856121551 C-30.41982583940554 6.374126503864811, -30.539517448840755 6.0136344465141125, -30.69402313421488 5.5482879393051325 M-30.300134229970325 6.73461856121551 C-30.420916239801603 6.370842391603581, -30.54169824963288 6.007066221991653, -30.69402313421488 5.5482879393051325 M-30.69402313421488 5.5482879393051325 C-30.763684760245994 5.2826379677088005, -30.833346386277103 5.0169879961124675, -31.011094287545557 4.339158212148136 M-30.69402313421488 5.5482879393051325 C-30.77184811076611 5.251507574157092, -30.849673087317342 4.954727209009051, -31.011094287545557 4.339158212148136 M-31.011094287545557 4.339158212148136 C-31.065471370763383 4.059943382425218, -31.119848453981206 3.780728552702301, -31.250044776581777 3.112197953150904 M-31.011094287545557 4.339158212148136 C-31.061406499281727 4.080815638372631, -31.111718711017893 3.8224730645971245, -31.250044776581777 3.112197953150904 M-31.250044776581777 3.112197953150904 C-31.294603526345256 2.7666090891057533, -31.339162276108734 2.4210202250606025, -31.409892702509364 1.872449005199809 M-31.250044776581777 3.112197953150904 C-31.293711304236133 2.7735289875949176, -31.33737783189049 2.434860022038931, -31.409892702509364 1.872449005199809 M-31.409892702509364 1.872449005199809 C-31.43722279229905 1.4467607962740632, -31.464552882088732 1.0210725873483173, -31.489981215913414 0.6250057626472781 M-31.409892702509364 1.872449005199809 C-31.431028216281643 1.543246317916931, -31.45216373005392 1.214043630634053, -31.489981215913414 0.6250057626472781 M-31.489981215913414 0.6250057626472781 C-31.489981215913414 0.15128843524578356, -31.489981215913414 -0.322428892155711, -31.489981215913414 -0.6250057626472687 M-31.489981215913414 0.6250057626472781 C-31.489981215913414 0.36351353363946415, -31.489981215913414 0.10202130463165016, -31.489981215913414 -0.6250057626472687 M-31.489981215913414 -0.6250057626472687 C-31.473839476286585 -0.8764263867128177, -31.45769773665976 -1.1278470107783667, -31.409892702509367 -1.8724490051997822 M-31.489981215913414 -0.6250057626472687 C-31.46402946891846 -1.0292251699668071, -31.43807772192351 -1.4334445772863456, -31.409892702509367 -1.8724490051997822 M-31.409892702509367 -1.8724490051997822 C-31.356432915176832 -2.287072558921852, -31.3029731278443 -2.701696112643922, -31.250044776581777 -3.112197953150895 M-31.409892702509367 -1.8724490051997822 C-31.360873549149304 -2.252631878733737, -31.31185439578924 -2.6328147522676915, -31.250044776581777 -3.112197953150895 M-31.250044776581777 -3.112197953150895 C-31.15750727718506 -3.5873584547456145, -31.064969777788342 -4.062518956340334, -31.01109428754556 -4.339158212148126 M-31.250044776581777 -3.112197953150895 C-31.177799256826503 -3.4831634279982158, -31.10555373707123 -3.8541289028455363, -31.01109428754556 -4.339158212148126 M-31.01109428754556 -4.339158212148126 C-30.898001452867952 -4.770430205518447, -30.784908618190343 -5.201702198888768, -30.694023134214884 -5.548287939305123 M-31.01109428754556 -4.339158212148126 C-30.900326699950377 -4.761563030624702, -30.789559112355192 -5.183967849101278, -30.694023134214884 -5.548287939305123 M-30.694023134214884 -5.548287939305123 C-30.560970835892604 -5.949020262846972, -30.427918537570328 -6.349752586388822, -30.300134229970332 -6.734618561215485 M-30.694023134214884 -5.548287939305123 C-30.611874794138256 -5.795705651055396, -30.529726454061628 -6.04312336280567, -30.300134229970332 -6.734618561215485 M-30.300134229970332 -6.734618561215485 C-30.16041175859485 -7.079735766863138, -30.02068928721937 -7.424852972510791, -29.831046148808344 -7.893275190886676 M-30.300134229970332 -6.734618561215485 C-30.12398413564492 -7.169712699829646, -29.947834041319506 -7.604806838443808, -29.831046148808344 -7.893275190886676 M-29.831046148808344 -7.893275190886676 C-29.708924458918045 -8.146863492929452, -29.58680276902775 -8.400451794972227, -29.288686474273504 -9.019496659696282 M-29.831046148808344 -7.893275190886676 C-29.676358809097742 -8.214486761574598, -29.521671469387137 -8.53569833226252, -29.288686474273504 -9.019496659696282 M-29.288686474273504 -9.019496659696282 C-29.09877119499075 -9.356710469070176, -28.908855915708 -9.693924278444072, -28.675283878604247 -10.108655082055243 M-29.288686474273504 -9.019496659696282 C-29.128809217662283 -9.303374918137244, -28.968931961051066 -9.587253176578207, -28.675283878604247 -10.108655082055243 M-28.675283878604247 -10.108655082055243 C-28.491285750179934 -10.391325617730581, -28.30728762175562 -10.673996153405922, -27.99335896464064 -11.156274872382308 M-28.675283878604247 -10.108655082055243 C-28.46832227114685 -10.42660368808292, -28.261360663689448 -10.7445522941106, -27.99335896464064 -11.156274872382308 M-27.99335896464064 -11.156274872382308 C-27.782489678683493 -11.43882050497774, -27.57162039272634 -11.72136613757317, -27.245713908126586 -12.158051136245302 M-27.99335896464064 -11.156274872382308 C-27.715419674597037 -11.52868820025052, -27.437480384553428 -11.901101528118732, -27.245713908126586 -12.158051136245302 M-27.245713908126586 -12.158051136245302 C-27.04272807428496 -12.396489846896827, -26.839742240443332 -12.634928557548351, -26.435420942968662 -13.10986736009567 M-27.245713908126586 -12.158051136245302 C-26.96384763520922 -12.489147299059324, -26.681981362291854 -12.820243461873346, -26.435420942968662 -13.10986736009567 M-26.435420942968662 -13.10986736009567 C-26.197504271306844 -13.355535856908508, -25.95958759964503 -13.601204353721348, -25.565809736767996 -14.007812326905677 M-26.435420942968662 -13.10986736009567 C-26.090875509145118 -13.465638808224675, -25.746330075321573 -13.82141025635368, -25.565809736767996 -14.007812326905677 M-25.565809736767996 -14.007812326905677 C-25.348682543416107 -14.205001499037134, -25.13155535006422 -14.402190671168592, -24.640453708501887 -14.848196188198107 M-25.565809736767996 -14.007812326905677 C-25.234072883752994 -14.309086959537751, -24.90233603073799 -14.610361592169824, -24.640453708501887 -14.848196188198107 M-24.640453708501887 -14.848196188198107 C-24.34407637288049 -15.084549226424041, -24.047699037259093 -15.320902264649975, -23.66315534457872 -15.627565626425149 M-24.640453708501887 -14.848196188198107 C-24.283129989603594 -15.133152345235994, -23.9258062707053 -15.41810850227388, -23.66315534457872 -15.627565626425149 M-23.66315534457872 -15.627565626425149 C-23.265543504160075 -15.904922433962039, -22.86793166374143 -16.18227924149893, -22.63793057360571 -16.342718045390885 M-23.66315534457872 -15.627565626425149 C-23.440184831223327 -15.783100204303913, -23.21721431786794 -15.938634782182678, -22.63793057360571 -16.342718045390885 M-22.63793057360571 -16.342718045390885 C-22.381116357770964 -16.49840033223776, -22.124302141936216 -16.654082619084637, -21.56899226407679 -16.99071473040609 M-22.63793057360571 -16.342718045390885 C-22.346387119863298 -16.519453400349043, -22.05484366612088 -16.696188755307205, -21.56899226407679 -16.99071473040609 M-21.56899226407679 -16.99071473040609 C-21.185190751381796 -17.19094373374247, -20.801389238686802 -17.391172737078843, -20.460732912792388 -17.56889292409717 M-21.56899226407679 -16.99071473040609 C-21.168768329485395 -17.199511300726755, -20.768544394894 -17.408307871047423, -20.460732912792388 -17.56889292409717 M-20.460732912792388 -17.56889292409717 C-20.164295428645246 -17.700117004823575, -19.867857944498105 -17.831341085549983, -19.317706595147804 -18.07487676824742 M-20.460732912792388 -17.56889292409717 C-20.097940178778995 -17.729490505580817, -19.7351474447656 -17.89008808706446, -19.317706595147804 -18.07487676824742 M-19.317706595147804 -18.07487676824742 C-19.067687544132255 -18.166886090171914, -18.81766849311671 -18.258895412096408, -18.14461025146062 -18.506587066708033 M-19.317706595147804 -18.07487676824742 C-18.93996925595578 -18.213887600835772, -18.56223191676376 -18.352898433424123, -18.14461025146062 -18.506587066708033 M-18.14461025146062 -18.506587066708033 C-17.72966317488847 -18.629741180932996, -17.314716098316318 -18.75289529515796, -16.946264386235413 -18.862249829261067 M-18.14461025146062 -18.506587066708033 C-17.680815878300773 -18.64423880215553, -17.217021505140927 -18.78189053760303, -16.946264386235413 -18.862249829261067 M-16.946264386235413 -18.862249829261067 C-16.47757029006072 -18.969226198198132, -16.00887619388602 -19.076202567135194, -15.727593259676768 -19.140403561325773 M-16.946264386235413 -18.862249829261067 C-16.479725644954243 -18.96873425250869, -16.01318690367307 -19.07521867575631, -15.727593259676768 -19.140403561325773 M-15.727593259676768 -19.140403561325773 C-15.273600978810629 -19.21380151253349, -14.819608697944489 -19.287199463741207, -14.49360465284788 -19.3399052695533 M-15.727593259676768 -19.140403561325773 C-15.419145369343656 -19.190271024185716, -15.110697479010547 -19.24013848704566, -14.49360465284788 -19.3399052695533 M-14.49360465284788 -19.3399052695533 C-14.000623592137615 -19.38746255958355, -13.507642531427347 -19.4350198496138, -13.249369289623903 -19.45993515863156 M-14.49360465284788 -19.3399052695533 C-14.0921920061293 -19.378629064812902, -13.69077935941072 -19.417352860072505, -13.249369289623903 -19.45993515863156 M-13.249369289623903 -19.45993515863156 C-12.846714409576935 -19.472847516914488, -12.444059529529966 -19.485759875197413, -12.000000000000005 -19.5 M-13.249369289623903 -19.45993515863156 C-12.777182782337247 -19.47507726086496, -12.304996275050591 -19.490219363098362, -12.000000000000005 -19.5 M-12.000000000000005 -19.5 C-12.000000000000004 -19.5, -12.000000000000002 -19.5, -12 -19.5 M-12.000000000000005 -19.5 C-12.000000000000004 -19.5, -12.000000000000002 -19.5, -12 -19.5&quot; stroke=&quot;#9370DB&quot; stroke-width=&quot;1.3&quot; fill=&quot;none&quot; stroke-dasharray=&quot;0 0&quot; style=&quot;&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-19.125, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;38.25&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Done&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-1-drop-shadow&quot; height=&quot;130%&quot; width=&quot;130%&quot;&gt;&lt;feDropShadow dx=&quot;4&quot; dy=&quot;4&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-1-drop-shadow-small&quot; height=&quot;150%&quot; width=&quot;150%&quot;&gt;&lt;feDropShadow dx=&quot;2&quot; dy=&quot;2&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;/svg&gt;&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;build-it&quot;&gt;Build it&lt;/h2&gt;
&lt;h3 id=&quot;1-the-trigger&quot;&gt;1. The trigger&lt;/h3&gt;
&lt;p&gt;Add the Dataverse trigger &lt;strong&gt;When a row is added, modified or deleted&lt;/strong&gt; and configure it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Change type:&lt;/strong&gt; Added&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Table name:&lt;/strong&gt; Event Registrations &lt;em&gt;(&lt;code&gt;msevtmgt_eventregistration&lt;/code&gt;)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Scope:&lt;/strong&gt; Organization&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;strong&gt;Scope&lt;/strong&gt; is the part people get wrong. With &lt;strong&gt;User&lt;/strong&gt; scope the flow only fires for registrations &lt;em&gt;you&lt;/em&gt; own, useless here. &lt;strong&gt;Organization&lt;/strong&gt; means it catches every registration in the environment, which is what we want when this runs under a service account.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;💡 If you want to limit the events in which this happen I would recommend &lt;strong&gt;creating a field on the event table&lt;/strong&gt; which will activate or deactivate the generation of leads. This can also be added as a filter in the &lt;code&gt;Filter rows&lt;/code&gt; option in a trigger.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;trigger with Change type=Added, Table=Event Registrations, Scope=Organization&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Pick &amp;#x27;Event Registrations&amp;#x27; as the table and set the scope to &amp;#x27;Organization&amp;#x27;, otherwise you&amp;#x27;ll wonder why it never triggers for anyone but you.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Pick &apos;Event Registrations&apos; as the table and set the scope to &apos;Organization&apos;, otherwise you&apos;ll wonder why it never triggers for anyone but you.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h3 id=&quot;2-get-the-contact&quot;&gt;2. Get the Contact&lt;/h3&gt;
&lt;p&gt;Add &lt;strong&gt;Get a row by ID&lt;/strong&gt; (Dataverse):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Table name:&lt;/strong&gt; Contacts&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Row ID:&lt;/strong&gt; the contact from the registration. In the expression editor:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;triggerOutputs()?[&apos;body/_msevtmgt_contactid_value&apos;]&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The registration stores the contact as a lookup, and &lt;code&gt;_..._value&lt;/code&gt; is how you read a lookup’s GUID straight off the trigger output. We need the full contact record next, mainly for the &lt;strong&gt;email&lt;/strong&gt; and the &lt;strong&gt;name&lt;/strong&gt;.&lt;/p&gt;
&lt;h3 id=&quot;3-find-an-existing-open-lead&quot;&gt;3. Find an existing open Lead&lt;/h3&gt;
&lt;p&gt;Add &lt;strong&gt;List rows&lt;/strong&gt; (Dataverse) on the &lt;strong&gt;Leads&lt;/strong&gt; table and open &lt;strong&gt;Show advanced options&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Filter rows:&lt;/strong&gt;
&lt;code&gt;emailaddress1 eq &apos;@{outputs(&apos;Get_Contact&apos;)?[&apos;body/emailaddress1&apos;]}&apos; and statecode eq 0&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Sort by:&lt;/strong&gt; &lt;code&gt;createdon asc&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Row count:&lt;/strong&gt; &lt;code&gt;1&lt;/code&gt;
Read it left to right: same email &lt;strong&gt;and&lt;/strong&gt; still active. We sort by &lt;strong&gt;creation date ascending&lt;/strong&gt; and take &lt;strong&gt;one&lt;/strong&gt;, so if there are several matches we deterministically grab the &lt;em&gt;oldest&lt;/em&gt; one (the original) instead of a random duplicate. But here the &lt;strong&gt;logic should be adapted to your organization way of handling leads&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;List rows with Filter rows, Sort by, and Row count filled in under advanced options&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Mind the single quotes around the email in the filter.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Mind the single quotes around the email in the filter.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h3 id=&quot;4-the-condition&quot;&gt;4. The condition&lt;/h3&gt;
&lt;p&gt;Add a &lt;strong&gt;Condition&lt;/strong&gt;. On the left side, use this expression (not dynamic content, type it in the expression editor):&lt;/p&gt;
&lt;p&gt;&lt;code&gt;length(outputs(&apos;Retrieve_Leads_with_same_email&apos;)?[&apos;body/value&apos;])&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Operator &lt;strong&gt;is greater than&lt;/strong&gt;, right side &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;List rows&lt;/code&gt; always returns an array under &lt;code&gt;body/value&lt;/code&gt;. &lt;code&gt;length()&lt;/code&gt; counts it: greater than zero means we found a Lead. This is cleaner and faster than looping.&lt;/p&gt;
&lt;h3 id=&quot;5a-if-yes--link-the-existing-lead&quot;&gt;5a. If YES → link the existing Lead&lt;/h3&gt;
&lt;p&gt;In the &lt;strong&gt;If yes&lt;/strong&gt; branch, add &lt;strong&gt;Update a row&lt;/strong&gt; (Dataverse):&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Table name:&lt;/strong&gt; Leads&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Row ID:&lt;/strong&gt;
&lt;code&gt;first(outputs(&apos;Retrieve_Leads_with_same_email&apos;)?[&apos;body/value&apos;])?[&apos;leadid&apos;]&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Parent Contact for lead (Contacts):&lt;/strong&gt; set this lookup to the contact:
&lt;code&gt;/contacts/@{outputs(&apos;Get_Contact&apos;)?[&apos;body/contactid&apos;]}&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Two small things trip people up here. First, &lt;code&gt;first(...)&lt;/code&gt; grabs the single Lead out of that array (we asked for one, but it’s still an array). Second, a &lt;strong&gt;lookup&lt;/strong&gt; in &lt;em&gt;Update a row&lt;/em&gt; isn’t a plain GUID, you bind it as a path: &lt;code&gt;/contacts/&amp;#x3C;guid&gt;&lt;/code&gt;. The field is &lt;strong&gt;Parent Contact for lead&lt;/strong&gt;, which is the standard Lead → Contact relationship.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Row ID using first(), Parent Contact for lead bound to /contacts/...&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;
&lt;em&gt;The &lt;strong&gt;Row ID&lt;/strong&gt; uses &lt;code&gt;first()&lt;/code&gt; to pull the one Lead from the list, and &lt;strong&gt;Parent Contact for lead&lt;/strong&gt; is bound as &lt;code&gt;/contacts/&amp;#x3C;contactid&gt;&lt;/code&gt;, not just the raw GUID.&lt;/em&gt;&lt;/p&gt;
&lt;h3 id=&quot;5b-if-no--create-a-new-lead&quot;&gt;5b. If NO → create a new Lead&lt;/h3&gt;
&lt;p&gt;The &lt;strong&gt;If no&lt;/strong&gt; branch has two actions. Order matters: get the event &lt;strong&gt;first&lt;/strong&gt;, then create the Lead.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Get a row by ID&lt;/strong&gt; (Dataverse) - &lt;em&gt;Get Event&lt;/em&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Table name:&lt;/strong&gt; Events &lt;em&gt;(&lt;code&gt;msevtmgt_events&lt;/code&gt;)&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Row ID:&lt;/strong&gt; &lt;code&gt;triggerOutputs()?[&apos;body/_msevtmgt_eventid_value&apos;]&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Add a new row&lt;/strong&gt; (Dataverse) - &lt;em&gt;Create new Lead&lt;/em&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Topic&lt;/strong&gt; &lt;em&gt;(&lt;code&gt;subject&lt;/code&gt;)&lt;/em&gt; → the event’s name: &lt;code&gt;outputs(&apos;Get_Event&apos;)?[&apos;body/msevtmgt_name&apos;]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Email&lt;/strong&gt; → &lt;code&gt;outputs(&apos;Get_Contact&apos;)?[&apos;body/emailaddress1&apos;]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Last Name&lt;/strong&gt; → &lt;code&gt;outputs(&apos;Get_Contact&apos;)?[&apos;body/lastname&apos;]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;First Name&lt;/strong&gt; → &lt;code&gt;outputs(&apos;Get_Contact&apos;)?[&apos;body/firstname&apos;]&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Parent Contact for lead (Contacts)&lt;/strong&gt; → &lt;code&gt;/contacts/@{outputs(&apos;Get_Contact&apos;)?[&apos;body/contactid&apos;]}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Originating Event (Events)&lt;/strong&gt; → &lt;code&gt;/msevtmgt_events/@{triggerOutputs()?[&apos;body/_msevtmgt_eventid_value&apos;]}&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That &lt;strong&gt;Originating Event&lt;/strong&gt; field is key. It’s the native CIJ field on the Lead, so once you set it, the platform itself knows this Lead came from this event and it shows up in the event’s insights without any extra work from you.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Create a new row on Leads, with Topic, Email, First/Last name, Parent Contact, and Originating Event lookups&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Both lookups &lt;strong&gt;Parent Contact for lead&lt;/strong&gt; and &lt;strong&gt;Originating Event&lt;/strong&gt; are bound as paths (&lt;code&gt;/contacts/...&lt;/code&gt; and &lt;code&gt;/msevtmgt_events/...&lt;/code&gt;). The &lt;strong&gt;Topic&lt;/strong&gt; carries the event’s name so Sales instantly sees the context.&lt;/em&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;things-id-watch-out-for&quot;&gt;Things I’d watch out for&lt;/h2&gt;
&lt;p&gt;A few pointers before you flip this on for real:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Test in a sandbox first.&lt;/strong&gt; Register a couple of test contacts one brand new, one who already has an open Lead, and confirm both paths behave (create vs. link).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Run it as a service account&lt;/strong&gt; with the right Dataverse privileges (create/update on Leads and Connections), not under your personal user. Not sure how to do it? It’s pretty well explained in this article: &lt;a href=&quot;https://www.powercommunity.com/power-automate-with-a-service-principal-app-registration/&quot;&gt;Power Automate with a Service Principal&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Wrap it in a solution&lt;/strong&gt; and use a &lt;strong&gt;connection reference&lt;/strong&gt; so you’re not rebuilding connections when you ship to Prod. The exported flow already does this.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Lead matching logic.&lt;/strong&gt; This example uses the oldest open Lead with the same email address, but adapt this to your organization’s lead process. In some setups, you may want to match by campaign, event, business unit, owner, or source instead.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bulk registrations.&lt;/strong&gt; This fires once per registration row. If you ever import registrations in big batches, keep an eye on your flow run volume.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Customer Insights Journeys does a good job of handling event registrations, but the Lead-to-Contact relationship can easily become disconnected when you invite Leads to your events.&lt;/p&gt;
&lt;p&gt;With a small Power Automate flow, you can close that gap: every new event registration checks for an existing open Lead, links it to the registered Contact, or creates a new Lead when needed. The result is &lt;strong&gt;cleaner data, better event attribution, and a much clearer handover between marketing and sales&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;But the main idea stays the same: do not let your event registrations live only on the Contact side. Keep the Lead connected too, so Sales can see the full context of who registered, where they came from, and how they already interacted with your company.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Power Automate</category><category>Lead Management</category><category>Event Management</category><category>Power Platform Development</category></item><item><title>Upgrade Your Customer Insights Journeys Events to Teams Webinar V2</title><link>https://martinplopez.com/writing/teamsv2-customer-insights-journeys/</link><guid isPermaLink="true">https://martinplopez.com/writing/teamsv2-customer-insights-journeys/</guid><description>Learn how to configure Teams Webinar V2 authentication for Dynamics 365 Customer Insights Journeys, including the required Entra app registration, Graph permissions, federated credentials, and Teams access policy.</description><pubDate>Fri, 05 Jun 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;For a while now, clients who run webinars in Customer Insights Journeys have been reaching out to me for help setting up Teams Webinar V2.&lt;/p&gt;
&lt;p&gt;Their current Teams webinar option is being marked as &lt;em&gt;“legacy”&lt;/em&gt;, which is basically like saying &lt;strong&gt;Beetlejuice&lt;/strong&gt; for software products 😬&lt;/p&gt;
&lt;p&gt;The timeline is also important: &lt;strong&gt;Microsoft is retiring Teams live events and the related Graph APIs effective June 30, 2026&lt;/strong&gt;. For legacy Teams Webinar and Teams Meeting events, Microsoft honors already scheduled events through February 28, 2027. After that period, Teams Webinar V2 or Teams Meeting V2 should be used.&lt;/p&gt;
&lt;p&gt;Most clients contact me when they try to save a new event as a Teams Webinar V2 and see a message like this:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Oh No!&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;For non-german speakers, the title might look even more intimidating 😅&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;For non-german speakers, the title might look even more intimidating 😅&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Luckily, Microsoft warns us in the &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/teams-web-version-2#create-a-teams-webinar-v2&quot;&gt;documentation of the Teams V2&lt;/a&gt; that before using it, you need to set up authentication for Teams webinars v2.&lt;/p&gt;
&lt;p&gt;They also documented in &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/teams-authentication&quot;&gt;this Microsoft Learn page&lt;/a&gt;, which is the foundation of this article, but in here I share my learnings implementing it, including a script-assisted approach for admins who prefer to automate part of the setup.&lt;/p&gt;
&lt;p&gt;If you’re this person, &lt;strong&gt;you can send this article to your IT Administrator&lt;/strong&gt;, as it can get a bit technical.&lt;/p&gt;
&lt;p&gt;If you’re brave enough (and have the right permissions), &lt;strong&gt;you can also try it out yourself&lt;/strong&gt; 😉&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Teams Webinar V2 in Customer Insights Journeys &lt;strong&gt;requires an additional authentication setup before registrations and attendance tracking can work correctly&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The setup &lt;strong&gt;connects Customer Insights Journeys with Microsoft Teams&lt;/strong&gt; through an Entra app registration, federated credentials, Microsoft Graph permissions, and a Teams Application Access Policy.&lt;/p&gt;
&lt;p&gt;My recommendation: &lt;strong&gt;follow Microsoft’s documented setup first&lt;/strong&gt;, but pay special attention to the federated credential subject, the required Graph permissions, and the PowerShell access policy.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;You do not necessarily need one app registration per Customer Insights environment&lt;/strong&gt;; in my implementation, I used one app registration with separate federated credentials for different environments.&lt;/p&gt;
&lt;p&gt;Also, remember that &lt;strong&gt;attendance/check-in data depends on sending registrants the proper Join in Teams link from the Customer Insights email designer&lt;/strong&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-is-this-required&quot;&gt;Why is this required?&lt;/h2&gt;
&lt;p&gt;Teams does not allow Customer Insights Journeys to create webinar registrations or download attendance reports using the standard integration alone.&lt;/p&gt;
&lt;p&gt;That is why an &lt;strong&gt;additional authentication setup is required&lt;/strong&gt; between our Customer Insights and Teams to send Teams registrations to specific attendees and keep track of the people who attended your webinar.&lt;/p&gt;
&lt;p&gt;This allows 2 pretty cool features:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Each registered person in Customer Insights &lt;strong&gt;can be seen from the Teams App&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;When the Event ends, all the attendees will be checked in with their registrations in Customer Insights Journeys, so &lt;strong&gt;you’ll know exactly which people attended your webinar automatically&lt;/strong&gt;!&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I did some tests and it works very well:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Registrations checked in&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;A little note on this: these features depend on using the &lt;strong&gt;Join in Teams&lt;/strong&gt; link from the Customer Insights email designer. So, &lt;strong&gt;be mindful to add the button in your Emails!&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-i-implemented-it&quot;&gt;How I implemented it&lt;/h2&gt;
&lt;p&gt;I originally followed the article of Microsoft, but I stumbled upon the following questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;they don’t give you any guidance on &lt;strong&gt;how to handle multiple environments of CIJ&lt;/strong&gt; (Customer Insights Journeys). Do I have to repeat the process for each registration?&lt;/li&gt;
&lt;li&gt;I required PowerShell at the last stage, so not everything can be done by clicking which led me to think, &lt;strong&gt;can this be a simple script&lt;/strong&gt;?&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;now-my-conclusions&quot;&gt;Now my conclusions:&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;No, &lt;strong&gt;there is no need to register an app for every environment&lt;/strong&gt;. You can register an app registration, give the right permissions for virtual events and when configuring the Federated credentials in your App, &lt;strong&gt;you can give different federated credentials for the different environments&lt;/strong&gt;:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Different Environments&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;ol start=&quot;2&quot;&gt;
&lt;li&gt;Yes, &lt;strong&gt;especially the azure and teams part&lt;/strong&gt;, I think it’s easier to generate your own credential in CIJ.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;the-microsoft-way-manual&quot;&gt;The Microsoft way (manual)&lt;/h2&gt;
&lt;p&gt;My plan is not to rewrite something that Microsoft has already documented well. Instead, I’ll summarize the main steps in order and link directly to the relevant Microsoft Learn sections.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/teams-authentication#2-register-an-app-in-microsoft-entra&quot;&gt;Create the App Registration and copy the App-ID&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/teams-authentication#3-add-the-app-id-in-customer-insights---journeys&quot;&gt;Create the teams authentication with the App-ID in CIJ&lt;/a&gt; and &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/teams-authentication#3-add-the-app-id-in-customer-insights---journeys&quot;&gt;copy the federated Federated Identity Credential Subject&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/teams-authentication#4-configure-federated-credentials-in-your-app-in-microsoft-entra&quot;&gt;Configure the federated credentials for the App Registration&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/teams-authentication#5-grant-api-permissions&quot;&gt;Give all the API Permissions needed&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/teams-authentication#set-up-the-required-access-policy&quot;&gt;Set an access policy with Powershell&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&quot;my-implementation-notes&quot;&gt;My implementation notes&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The App-ID can be found here:
&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;The App Registration&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;When configuring the Federated Credentials, you should substitute the tenant in the &lt;code&gt;&amp;#x3C;TenantID&gt;&lt;/code&gt; when setting the Issuer &lt;code&gt;https://login.microsoftonline.com/&amp;#x3C;TenantID&gt;/v2.0&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For the PowerShell step should install the &lt;a href=&quot;https://learn.microsoft.com/en-us/microsoftteams/teams-powershell-install&quot;&gt;Microsoft Teams PowerShell Module&lt;/a&gt;. You can just run the following in PowerShell:&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Install-Module -Name PowerShellGet -Force -AllowClobber&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Install-Module -Name MicrosoftTeams -Force -AllowClobber&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;h2 id=&quot;optional-script-assisted-setup-for-admins&quot;&gt;Optional: script-assisted setup for admins&lt;/h2&gt;
&lt;div class=&quot;markdown-alert markdown-alert-caution&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;CAUTION&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ATTENTION: Run at your own risk&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I don’t take responsibility of the consequences of running this PowerShell. I don’t recommend running a script you don’t understand.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;For admins who repeat this setup across environments, a script-assisted approach can save time. &lt;strong&gt;I would only recommend this if you understand what the script is doing&lt;/strong&gt; and have the right permissions in Microsoft Entra and Teams.&lt;/p&gt;
&lt;p&gt;At a high level, the script can help with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Creating or reusing the Entra app registration&lt;/li&gt;
&lt;li&gt;Adding the required Microsoft Graph permissions&lt;/li&gt;
&lt;li&gt;Creating federated credentials for each Customer Insights environment&lt;/li&gt;
&lt;li&gt;Connecting to Microsoft Teams PowerShell&lt;/li&gt;
&lt;li&gt;Creating and assigning the required Application Access Policy&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Do not run automation like this directly in production without reviewing it first. &lt;strong&gt;Start in a test environment&lt;/strong&gt;, validate the permissions, and make sure the policy scope matches your organization’s governance model.&lt;/p&gt;
&lt;p&gt;You can find the Script in my &lt;a href=&quot;https://github.com/martinplopez/CIJ-TeamsV2-Auth&quot;&gt;GitHub Repository&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Moving to Teams Webinar V2 &lt;strong&gt;is not just a cosmetic change&lt;/strong&gt; in Customer Insights Journeys. It introduces a new authentication model between Customer Insights, Microsoft Teams, Microsoft Graph, and Entra ID.&lt;/p&gt;
&lt;p&gt;That can feel like a lot, &lt;strong&gt;especially for teams that only wanted to create a webinar and send invitations&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;But once the setup is done correctly, the experience is much better: registrations can sync to Teams, attendees can receive their individual Join in Teams links, and Customer Insights can automatically populate attendance data after the event.&lt;/p&gt;
&lt;p&gt;My biggest learning from implementing this is that &lt;strong&gt;the process is not necessarily difficult&lt;/strong&gt;, but it touches several admin areas. That means &lt;strong&gt;the real challenge is usually coordination&lt;/strong&gt;: knowing who owns Customer Insights, who owns Entra ID, and who can run the Teams PowerShell commands. (If you are that person for every area, you’re not alone 😅, and it makes the setup quicker)&lt;/p&gt;
&lt;p&gt;If you are a &lt;strong&gt;functional consultant or marketer, use this article as a checklist&lt;/strong&gt; and involve your tenant administrator early.&lt;/p&gt;
&lt;p&gt;If you are the &lt;strong&gt;admin, validate the setup first in a non-production environment&lt;/strong&gt; and document which app registration, federated credentials, permissions, and access policies were created.&lt;/p&gt;
&lt;p&gt;Once this foundation is in place, &lt;strong&gt;Teams Webinar V2 becomes much easier to use&lt;/strong&gt; and your event registrations and attendance tracking can finally work the way users expect&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Update: after a couple of months of running this with clients, I collected the issues that kept coming back in a follow-up note — &lt;a href=&quot;/writing/teamsv2-customer-insights-journeys-lessons/&quot;&gt;Teams Webinar V2: First Lessons Learned&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Power Platform</category><category>Webinar</category><category>Power Platform Development</category><category>Microsoft Teams</category></item><item><title>How to Configure Reply-To for No-Reply Senders in Customer Insights Journeys</title><link>https://martinplopez.com/writing/no-reply-customer-insights-journeys/</link><guid isPermaLink="true">https://martinplopez.com/writing/no-reply-customer-insights-journeys/</guid><description>Learn how to configure Reply-to addresses for no-reply senders in Dynamics 365 Customer Insights Journeys without building custom journeys, triggers, or Power Automate flows.</description><pubDate>Fri, 22 May 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;This week I was taking a look behind the trenches and checked out Odoo Marketing Automation capabilities, and I noticed that they can configure &lt;strong&gt;an automatic reply for people who respond to the sender mailbox&lt;/strong&gt;. Which made me think a lot of things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Why were they creating this action after every email sent?&lt;/li&gt;
&lt;li&gt;Can’t they just trigger this in a different workflow?&lt;/li&gt;
&lt;li&gt;What is the benefit of replying every time if the customer still does not get any real help? 😅&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But most importantly, it made me question &lt;strong&gt;How is this handled in Customer Insights Journeys?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the journey I took to discover a simple but very useful feature in Customer Insights Journeys. 😎&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In Customer Insights Journeys, you do not need to build a journey, custom trigger, or Power Automate flow just to handle replies to a no-reply sender address. You can configure a &lt;code&gt;Reply-to&lt;/code&gt; address directly in the sender settings of your branding profile.&lt;/p&gt;
&lt;p&gt;When recipients hit &lt;strong&gt;“Reply”&lt;/strong&gt; their email client uses the Reply-to header and sends the response to the configured mailbox instead of the no-reply address.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;my-initial-ideas&quot;&gt;My Initial Ideas&lt;/h2&gt;
&lt;p&gt;In my process of how to solve this in Dynamics Customer Insights I had 2 ideas:&lt;/p&gt;
&lt;h3 id=&quot;the-journey-idea&quot;&gt;The Journey Idea&lt;/h3&gt;
&lt;p&gt;My first thought on how to solve this was: &lt;em&gt;“There must be a trigger for this and I can create a journey to handle it for sure”&lt;/em&gt;&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Nowhere to be found&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Yeah, right...&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Yeah, right...&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;&lt;em&gt;“Well, without an out-of-the-box trigger, I cannot create a journey for this.”&lt;/em&gt;&lt;br&gt;
So that led me to the next idea.&lt;/p&gt;
&lt;h3 id=&quot;the-custom-trigger-with-power-automate&quot;&gt;The Custom Trigger with Power Automate&lt;/h3&gt;
&lt;p&gt;So I decided to try creating a &lt;strong&gt;Power Automate flow triggered when an email is received in the no-reply mailbox&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The idea was to &lt;strong&gt;send that event to a custom trigger in Customer Insights Journeys&lt;/strong&gt; and then use a journey to send the customer an email, similar to what I saw in Odoo but &lt;strong&gt;centralized inside the Microsoft ecosystem&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This could also open more interesting scenarios, such as flagging the contact as &lt;strong&gt;someone who interacted with the email but had a problem&lt;/strong&gt;, identifying emails that are not performing well, or even &lt;strong&gt;creating a case directly in Dynamics 365 Customer Service&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;PROBLEM: I don’t even have a no-reply mailbox, it’s clearly a “no-reply” email address 😅&lt;/p&gt;
&lt;p&gt;That is when I decided to look at the &lt;strong&gt;sender configuration&lt;/strong&gt; in Customer Insights Journeys emails.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-microsoft-learn-explains-it&quot;&gt;How Microsoft Learn Explains It&lt;/h2&gt;
&lt;p&gt;I found the &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/email-properties#set-sender-and-receiver-options&quot;&gt;Microsoft Learn article article&lt;/a&gt; where the sender configuration is explained.&lt;/p&gt;
&lt;p&gt;This configuration is currently available in the branding profile. Under the sender tab, you can select the different senders for your brand. When you open one of them, you can see the sender configuration, including the Reply-to address:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Here my default sender&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;The email in the Reply-to field is the recipient when someone hits reply.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;The email in the Reply-to field is the recipient when someone hits reply.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr&gt;
&lt;h2 id=&quot;my-test&quot;&gt;My Test&lt;/h2&gt;
&lt;p&gt;So I decided to make a test email with this default sender to try it out…&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img src=&quot;/writing/no-reply-customer-insights-journeys/image.gif&quot; alt=&quot;It works!&quot; title=&quot;When hitting reply it doesn&amp;#x27;t include the no-reply email address&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;When hitting reply it doesn&apos;t include the no-reply email address&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h3 id=&quot;behind-the-scenes&quot;&gt;Behind the scenes&lt;/h3&gt;
&lt;p&gt;This is a protocol that is documented as the &lt;a href=&quot;https://www.rfc-editor.org/info/rfc5322/#section-3.6.2&quot;&gt;Internet Message Format&lt;/a&gt;. So it universally works with all modern email clients (Outlook, Gmail, Apple Mail, etc.).&lt;/p&gt;
&lt;p&gt;When you inspect the details of the message, you can see this as one of the email headers:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Nowhere to be found&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;The important part is that the visible sender and the reply destination do not need to be the same. The sender can still appear as your no-reply address, while replies are directed to the mailbox configured in the Reply-to header.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;The important part is that the visible sender and the reply destination do not need to be the same. The sender can still appear as your no-reply address, while replies are directed to the mailbox configured in the Reply-to header.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Today I learned two things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;You always learn something when you stay curious.&lt;/li&gt;
&lt;li&gt;Some of the best features in a tool are so well integrated that you almost do not notice them.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In this case, Customer Insights Journeys already had the answer: configure the Reply-to address in the sender settings and &lt;strong&gt;let the email standard do the rest&lt;/strong&gt;.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Power Platform</category><category>Power Platform Development</category></item><item><title>Lead Scoring in Dynamics 365 Customer Insights: The 5Ws and How to Start</title><link>https://martinplopez.com/writing/customer-insights-lead-scoring/</link><guid isPermaLink="true">https://martinplopez.com/writing/customer-insights-lead-scoring/</guid><description>Learn how Lead Scoring works in Dynamics 365 Customer Insights Journeys, when to use it, and how to build practical scoring models that improve lead qualification and sales focus.</description><pubDate>Thu, 07 May 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Lead Scoring has always been a great unknown to me in Dynamics 365 Customer Insights - Journeys. I’ve known about it since the days of outbound marketing, but I never had the chance to see it implemented in a real customer project or help customers adopt it.&lt;/p&gt;
&lt;p&gt;This article gets its inspiration from the session “&lt;em&gt;The chaos of Customer Insights projects - The mistakes we keep making (and pretending we don’t)&lt;/em&gt;” by Vivian Voss in ColorCloud 2026. She asked the public if in their projects of Customer Insights Journeys, their clients could define what a lead is. I think only one person raised a hand. Vivian highlighted that one of &lt;strong&gt;the biggest bottlenecks is that marketing and sales teams often don’t collaborate closely enough&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;This made me think, that it is probably the main cause for people to not even consider the feature lead scoring. But I wanted to explore it further because I believe &lt;strong&gt;it can significantly improve conversion rates&lt;/strong&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Lead Scoring in Dynamics 365 Customer Insights &lt;strong&gt;helps organizations identify which prospects are most likely to convert based on engagement and profile data&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;By combining behavioral signals like email clicks, event registrations, and form submissions with demographic information, marketing and sales teams can focus on the &lt;strong&gt;leads that matter most&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;In this article, we’ll explore:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;what &lt;strong&gt;Lead Scoring actually is&lt;/strong&gt;,&lt;/li&gt;
&lt;li&gt;when it makes sense to use it,&lt;/li&gt;
&lt;li&gt;and &lt;strong&gt;how to start building a practical scoring strategy&lt;/strong&gt; in Customer Insights - Journeys.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-exactly-is-lead-scoring&quot;&gt;What Exactly Is Lead Scoring&lt;/h2&gt;
&lt;p&gt;Lead Scoring is essentially a &lt;strong&gt;prioritization system&lt;/strong&gt;. It allows you to give a score to a lead based on the data that we collected from the lead.&lt;/p&gt;
&lt;p&gt;In order to score the lead you have to &lt;strong&gt;give or remove points to interactions or data from the lead&lt;/strong&gt;. For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Opened email → +2&lt;/li&gt;
&lt;li&gt;Clicked CTA (Call to Action) → +10&lt;/li&gt;
&lt;li&gt;Demo request → +50&lt;/li&gt;
&lt;li&gt;No interaction for 30 days → -20&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This helps identify &lt;strong&gt;how engaged a lead is with your product or service&lt;/strong&gt;. This engagement level can change over time (taking our example, if there is no interaction for 30 days, the engagement is not the same as when he clicked the Call to Action) and ultimately can give us an estimated probability of whether the client is prone to buy or not.&lt;/p&gt;
&lt;p&gt;Negative scoring is just as important as positive scoring because &lt;strong&gt;inactivity or disengagement can indicate reduced buying intent&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Not all actions are equal, and you can adapt this scoring points over time. At least with Dynamics Customer Insights Journeys 😉&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;who-is-lead-scoring-for&quot;&gt;Who Is Lead Scoring For&lt;/h2&gt;
&lt;p&gt;This is an important question because &lt;strong&gt;Lead Scoring should be a shared effort between sales and marketing teams&lt;/strong&gt;. If each team works separately and specially handle leads differently, lead scoring will only be implemented halfway and it won’t reach the purpose. The Marketing team will qualify the lead thanks to lead scoring and the sales team will follow up on the lead. So &lt;strong&gt;they need a common definition on when a lead is qualified&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Regarding organizations, I think it makes the most sense in &lt;strong&gt;organizations with many leads&lt;/strong&gt;, if an organization is not having that many leads or even they don’t use leads at all, lead scoring is going to be like buying a big motorbike when you are already struggling riding a bike.&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;It is always good to start somewhere, so if this is your case, this is how I would do it:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Define &lt;strong&gt;what a lead is&lt;/strong&gt; (involve the Sales and Marketing Teams in this decision)&lt;/li&gt;
&lt;li&gt;Define the &lt;strong&gt;handling process of a lead&lt;/strong&gt; (who will be accountable and until when) and the sources of the leads&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Adapt your processes&lt;/strong&gt; for leads (Marketing Forms, Journeys, Segments)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Introduce Lead Scoring&lt;/strong&gt;, test different models and decide what works best for you&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;where-does-lead-scoring-make-sense&quot;&gt;Where Does Lead Scoring Make Sense&lt;/h2&gt;
&lt;p&gt;Lead scoring can help you best when you need to get the overview of the leads and you have very different ways of evaluating them. If you’re already &lt;strong&gt;setting up webinar or event campaigns&lt;/strong&gt; in customer insights journeys, it makes a lot of sense to introduce &lt;strong&gt;lead scoring to better assess which leads are more engaged with you alongside their participation of your campaign&lt;/strong&gt;. Actually, Lead Scoring is most valuable when intent is gradual rather than immediate.&lt;/p&gt;
&lt;p&gt;So, for instance, if someone downloading a brochure is not necessarily ready to buy. But &lt;strong&gt;if they later attend a webinar and visit pricing pages, intent becomes clearer&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Lead Scoring is also very useful to evaluate leads for the information you already have about them. Taking a look at &lt;strong&gt;demographic or firmographic information of the lead, you can better asses if they are easier to qualify or not&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;An example of this is if you know that your services have a higher conversion rate with big enterprise companies than Small to Medium Companies, you can score the leads from the big companies higher. Or if your lead is from a CEO, it might score higher than a engineer, as it can make a purchasing decision easier than the engineer.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;when-should-you-use-lead-scoring&quot;&gt;When Should You Use Lead Scoring&lt;/h2&gt;
&lt;p&gt;There are situations in a company that beg for Lead Qualifications:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;When marketing is &lt;strong&gt;generating more leads than sales can process&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;when sales complains about &lt;strong&gt;lead quality&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;when &lt;strong&gt;engagement data already exists&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;when customer &lt;strong&gt;journeys become complex&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;On the other hand, Lead Scoring might not be as helpful in early stages, as the system doesn’t have many leads to handle. If you only receive a handful of leads per month, Lead Scoring may create unnecessary complexity to your processes.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-is-lead-scoring-a-good-idea&quot;&gt;Why is Lead Scoring a good idea&lt;/h2&gt;
&lt;p&gt;I feel like Lead Scoring might be one of the &lt;strong&gt;cornerstones of Marketing Automation&lt;/strong&gt;. The possibility to automate the evaluation of leads in such a level of complexity makes &lt;strong&gt;scale in leads handling so much better&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;As the prioritization takes over, sales can do a faster follow-up with the leads that are qualified, which ultimately will result in higher conversion rates of the leads. This &lt;strong&gt;reduces the manual qualification to the minimum&lt;/strong&gt; and makes a bridge between the marketing team and the sales team.&lt;/p&gt;
&lt;p&gt;Customer Insights Journeys is designed to take all the information you’re collecting from your emails, journeys, events, etc. and allows you to make your scoring models adapted to your clear necessities.&lt;/p&gt;
&lt;p&gt;Needless to say it’s a feature included in the Customer Insights Journey license and Microsoft is not going to charge you less if you don’t use it 😁&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-to-start&quot;&gt;How to Start&lt;/h2&gt;
&lt;p&gt;Before building your first scoring model, remember that the goal is &lt;strong&gt;not to create a perfect mathematical system&lt;/strong&gt;. The objective is to help sales teams prioritize conversations more effectively.&lt;/p&gt;
&lt;p&gt;Start with a small number of meaningful interactions and &lt;strong&gt;refine the model over time based on actual conversion results&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;To Setup Lead Scoring Models I followed this &lt;a href=&quot;https://meganvwalker.com/create-lead-scoring-models-in-real-time-marketing&quot;&gt;Post by Megan V Walker&lt;/a&gt; along with the &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/real-time-marketing-create-lead-scoring-model&quot;&gt;Microsoft Documentation&lt;/a&gt;. But in short I’ll put the steps I followed:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I activated the feature Switch for Lead Scoring&lt;/li&gt;
&lt;li&gt;I created a new Model&lt;/li&gt;
&lt;li&gt;I added conditions to my scoring model set up to add or substract on my conditions&lt;/li&gt;
&lt;li&gt;Published my Scoring Model&lt;/li&gt;
&lt;li&gt;Saw the analytics and the score of my leads&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src=&quot;/writing/customer-insights-lead-scoring/image.gif&quot; alt=&quot;Analytics of Scoring Model&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;my-simple-lead-scoring-strategy&quot;&gt;My Simple Lead Scoring Strategy&lt;/h3&gt;
&lt;p&gt;I used a very simple Lead Scoring Strategy. I created a lead scoring to &lt;strong&gt;identify the coffee geeks that are more willing to buy coffee beans in May&lt;/strong&gt;.
I setup the following conditions:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot;&gt;
























&lt;table&gt;&lt;thead&gt;&lt;tr&gt;&lt;th&gt;Interaction&lt;/th&gt;&lt;th&gt;Score&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;Email received&lt;/td&gt;&lt;td&gt;+1&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Email opened&lt;/td&gt;&lt;td&gt;+10&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Barista Course Registered and Checked In&lt;/td&gt;&lt;td&gt;+30&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;Email opted Out&lt;/td&gt;&lt;td&gt;-10&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Here an overview of my scoring model:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Coffee Geeks May Scoring Model&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;After implementing the scoring model you can also &lt;strong&gt;automate the conversion into marketing qualified leads&lt;/strong&gt; (MQL) combining the models (or not) and giving it a threshold to which they’re ready to be worked on by Sales:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Lead Qualification Model&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Different models can have different thresholds to qualify, and &lt;strong&gt;models can become obsolete after a campaign or event&lt;/strong&gt;. There’s always the possibility to stop the qualification model and modify it to fit best your new models.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Lead Scoring is not about building the most complex scoring model possible. It’s about &lt;strong&gt;helping marketing and sales teams focus on the leads that actually matter&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The best scoring models are usually not the ones with dozens of conditions and perfectly calculated formulas. They are the ones &lt;strong&gt;teams understand, trust, and consistently use in their daily processes.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you’re starting with Lead Scoring in Dynamics 365 Customer Insights - Journeys, keep it simple:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;define what a &lt;strong&gt;qualified lead&lt;/strong&gt; means,&lt;/li&gt;
&lt;li&gt;align &lt;strong&gt;marketing and sales&lt;/strong&gt; around that definition,&lt;/li&gt;
&lt;li&gt;start with a few &lt;strong&gt;meaningful interactions&lt;/strong&gt;,&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;refine&lt;/strong&gt; the model over time using &lt;strong&gt;real data&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A scoring model should evolve together with your campaigns, your customer behavior, and your business goals.&lt;/p&gt;
&lt;p&gt;Customer Insights - Journeys already provides the tools to make this possible. The real challenge is not the technology itself, it’s &lt;strong&gt;creating a shared understanding of what buying intent actually looks like in your organization&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;And honestly, that conversation alone may already improve your marketing process more than the scoring model itself.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Lead Scoring</category><category>Marketing Automation</category><category>Dynamics 365 Sales</category><category>Power Platform</category><category>Power Platform Development</category></item><item><title>“Can I Bring Someone?” - Solving Plus-One Waitlisting in Customer Insights Journeys (Part 2)</title><link>https://martinplopez.com/writing/customer-insights-waitlist-2/</link><guid isPermaLink="true">https://martinplopez.com/writing/customer-insights-waitlist-2/</guid><description>In Part 2 of this series, learn how to design reactive registration journeys in Dynamics 365 Customer Insights - Journeys that automatically respond when attendees or their guests are placed on a waitlist.</description><pubDate>Fri, 10 Apr 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Waitlists can be a &lt;strong&gt;powerful tool&lt;/strong&gt;, but they can become difficult to manage, especially &lt;strong&gt;when manual processes are involved&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Handling waitlisted registrations can be straightforward, but once we &lt;strong&gt;involve companions&lt;/strong&gt;, it can quickly become tricky.&lt;/p&gt;
&lt;p&gt;Because what can we do with 2 registrations? how do we communicate the client that we have only place for one? Do we allow them to cancel one of the registrations?&lt;/p&gt;
&lt;p&gt;In my experience, we should &lt;strong&gt;give as much control to attendees as possible&lt;/strong&gt;. Luckily, this is achievable by &lt;strong&gt;setting up journeys&lt;/strong&gt; and informing them via email about the status of their registration.&lt;/p&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Handling waitlists with companions in Customer Insights Journeys can quickly become complex.&lt;/p&gt;
&lt;p&gt;This solution uses:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;2 journeys&lt;/strong&gt; (attendee + companion)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;2 emails&lt;/strong&gt; (waitlist start + waitlist end)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;1 trigger&lt;/strong&gt; (registration status change)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Together, they allow you to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Automatically notify users when they enter the waitlist&lt;/li&gt;
&lt;li&gt;Let attendees cancel their registration directly from email&lt;/li&gt;
&lt;li&gt;React when spots become available&lt;/li&gt;
&lt;li&gt;Clearly communicate when the waitlist closes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The result: a &lt;strong&gt;fully automated, user-friendly waitlist experience&lt;/strong&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-this-matters&quot;&gt;Why This Matters&lt;/h2&gt;
&lt;p&gt;Handling waitlists becomes significantly more complex when companions are involved.&lt;/p&gt;
&lt;p&gt;Without automation, you risk:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Confusing communication (who got in?)&lt;/li&gt;
&lt;li&gt;Manual updates and errors&lt;/li&gt;
&lt;li&gt;Poor attendee experience&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This approach ensures every scenario is handled automatically and clearly communicated.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;solution-overview&quot;&gt;Solution Overview&lt;/h2&gt;
&lt;p&gt;In my experience, the best approach is:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;One Email&lt;/strong&gt; to handle an attendee or companion entering the waitlist&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;One Email&lt;/strong&gt; to handle if the Event Registration has closed and we couldn’t secure a place for the attendee and/or the companion&lt;/li&gt;
&lt;li&gt;One new &lt;strong&gt;Trigger&lt;/strong&gt; to trigger on an Event Registration status change (So people can exit the waitlist journey)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Two Journeys&lt;/strong&gt; (one for the attendee and one for the companion) to handle the emails&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This approach works well if:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;you already have a journey handling your event registrations on create&lt;/li&gt;
&lt;li&gt;you have normally one event at a time (If there are more, we can always create event specific journeys)&lt;/li&gt;
&lt;li&gt;you already struggle with handling standard waitlisting scenarios&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-process&quot;&gt;The process&lt;/h2&gt;
&lt;h3 id=&quot;general-assumptions&quot;&gt;General Assumptions&lt;/h3&gt;
&lt;p&gt;This is Part 2 of the series, I &lt;strong&gt;assume you already know how to handle plus one registrations&lt;/strong&gt; and automatically place them on the waitlist, but it is especially important that &lt;code&gt;Companion&lt;/code&gt; exists as a value in the Primary role Optionset inside the event registration.&lt;/p&gt;
&lt;p&gt;I recommend to take a look at &lt;a href=&quot;/writing/customer-insights-waitlist-1&quot;&gt;Part 1&lt;/a&gt;.&lt;/p&gt;
&lt;h3 id=&quot;1-waitlist---start-email&quot;&gt;1. “Waitlist - Start” Email&lt;/h3&gt;
&lt;p&gt;Create an email and use the following placeholders:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image7.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Dynamic Placeholders&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;The relationships are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Under &lt;code&gt;trigger --&gt; Marketing Event Registration in the Waitlist --&gt; Reference for Marketing Event Registration&lt;/code&gt;
&lt;ul&gt;
&lt;li&gt;Primary Role&lt;/li&gt;
&lt;li&gt;RegistrationID&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;For the EventName &lt;code&gt;trigger --&gt; Marketing Event Registration in the Waitlist --&gt; Reference for Marketing Event --&gt; Event Name&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;FirstName is the default &lt;code&gt;contact --&gt; First Name&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I like to distinguish the registration types in the &lt;strong&gt;title of the email&lt;/strong&gt;, because if both registrations are waitlisted, the contact who signed up for the waitlist will receive 2 emails. &lt;strong&gt;One for the Attendee and one for the Companion.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;This is the reason to provide the Registration ID, event name and primary role of the registration.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Adding a cancellation button&lt;/strong&gt; also gives attendees more control over their registration, in case they want to &lt;strong&gt;free up their spot&lt;/strong&gt; or they’re not interested in the event if they cannot go together.&lt;/p&gt;
&lt;p&gt;So we add the button, it should be &lt;strong&gt;linked to a certain event&lt;/strong&gt;, for which we can use our relationships from the trigger and event registration 😉&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image8.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Cancel Button&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;To reference the text in the email, you can use the following:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;html&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Hi {{FirstName}},&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Thank you again for your interest in attending our upcoming event, we truly appreciate the enthusiasm and support we&apos;ve received.&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Due to an overwhelming number of registrations, we’ve had to place some attendees and/or their companions on a waitlist. While we wish we could accommodate everyone right away, this step helps us ensure the best possible experience for all participants.&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;This Email refers to the Event Registration: &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;font-weight: bold;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;{{RegistrationID}}​&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt; for our &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;font-weight: bold;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;{{Eventname}}​&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt; as &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;font-weight: bold;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;{{Primaryrole}}​&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;If you decide to cancel your registration or that of your companion, you can do so directly from this summary by clicking on the designated cancellation option.&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-editorblocktype&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Button&quot;&lt;/span&gt;&lt;span style=&quot;color:#FDAEB7;font-style:italic&quot;&gt; align&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;-webkit-center&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;margin-top: 10px; margin-bottom: 10px;&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;buttonWrapper&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-link-type&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;EventCancellation&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;buttonClass&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; href&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;{{event_cancellation_1}}&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;&amp;#x26;amp;&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;eventRegistrationId={{RegistrationID}}#_msdynmkt_donottrack=0,_msdynmkt_linkid=9293b116-acfa-43e1-925e-cd27885658b1&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;text-align: center; margin-right: auto; margin-left: auto; display: inline-block; text-decoration: none; width: fit-content; height: auto; max-width: 100%; line-height: normal; background-color: rgb(7, 66, 171); color: rgb(255, 255, 255); border-radius: 4px; padding: 10px 20px;mso-hide: none !important;&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-msdyn-tracking-id&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;b039e73e35e3a81775469549356&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-value-type&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;dynamic&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-placeholder-key&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;event_cancellation_1&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;display: inline-block; min-width: 1px; font-family: Arial, Verdana, sans-serif;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Cancel Registration&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;a&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;The good news is that plans can change, and spots often become available. If that happens, we’ll reach out to you right away with an update.&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;In the meantime, thank you for your patience and understanding - it means a lot to us. We’re hopeful we’ll still be able to welcome you to the event.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Warm regards,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Martin&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It should look like this:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Email Start Example&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;2-waitlist---finish-email&quot;&gt;2. “Waitlist - Finish” Email&lt;/h3&gt;
&lt;p&gt;Here we have to create an email that will be used &lt;strong&gt;to handle attendees and companions&lt;/strong&gt;, but in different ways.&lt;/p&gt;
&lt;p&gt;We’ll introduce an &lt;strong&gt;inline condition to personalize the message&lt;/strong&gt;, we’ll filter the message depending if it’s an attendee and we say that we’re sorry they cannot attend or if they’re not, they are told that they can’t bring a companion:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image9.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Inline Condition&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;For this Email, we’ll be using the same relationships as the &lt;a href=&quot;#1-waitlist---start-email&quot;&gt;previous Email&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Here the HTML of the text;&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;html&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Hi {{FirstName}},&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Thank you very much for your interest in our event and for taking the time to register.&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{{#if IsWaitlistAttendee}}Due to the high level of demand, we regret to inform you that we were unable to secure a spot for you.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    As the event is now fully booked and the waitlist has officially closed, no additional places will become available.&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{{else}}Due to the high level of demand, we regret to inform you that we were unable to secure a spot for your companion.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    As the event is now fully booked and the waitlist has officially closed, no additional places will become available.&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{{/if}}This Email refers to the Event Registration:&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;&amp;#x26;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;font-weight: bold;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;{{RegistrationID}}​&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt; for our&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;&amp;#x26;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;font-weight: bold;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;{{Eventname}}​ &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;as&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;&amp;#x26;nbsp;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;font-weight: bold;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;{{Primaryrole}}​&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;We truly appreciate your enthusiasm and understanding. While we’re disappointed not to be able to welcome you this time, we hope to have the opportunity to host you at a future event.&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;If you’d like to stay informed about upcoming events, we’d be happy to keep you in the loop.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Thank you again, and we hope to connect with you soon.&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Warm regards,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt; &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Martin&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It should be kept simple, it should look like this:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image10.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Email Finish Example&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;3-event-registration-status-change-trigger&quot;&gt;3. “Event Registration Status Change” Trigger&lt;/h3&gt;
&lt;p&gt;This trigger is designed to remove contacts from the journeys if their &lt;strong&gt;registrations get canceled or registered&lt;/strong&gt;. To set it up:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Name the trigger &lt;code&gt;Event Registration Status Change&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;What action will activate the trigger? &lt;code&gt;When a record related to a customer is created or updated&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;In which table is the record created or updated? &lt;code&gt;Event Registration&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Who is the audience for this trigger? &lt;code&gt;Contact&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Which attribute contains the audience? &lt;code&gt;Contact&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;When is the trigger activated? &lt;code&gt;An existing record was updated&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Which attribute updates should activate the trigger? &lt;code&gt;Status reason&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Setup Trigger&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;4-waitlist-attendees-journey&quot;&gt;4. “Waitlist Attendees” Journey&lt;/h3&gt;
&lt;p&gt;Create a trigger Journey and choose the &lt;code&gt;Marketing Event Registration Waitlisted&lt;/code&gt; Trigger and add the condition that the Primary role is &lt;code&gt;Attendee&lt;/code&gt; and allow to repeat the journey &lt;code&gt;After 1 Minutes&lt;/code&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Trigger Setup&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Add the &lt;a href=&quot;#1-waitlist---start-email&quot;&gt;Waitlist - Start&lt;/a&gt; Email that we created to the journey as the first action.&lt;/p&gt;
&lt;p&gt;Then we add a wait condition and set it up to &lt;code&gt;Until a specified by a trigger&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;As we have access to the event from the trigger, I set this up to the &lt;strong&gt;date you plan to close the waitlist&lt;/strong&gt;, in this example 1 day before the start of the event.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Wait Setup&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;This will send the &lt;a href=&quot;#2-waitlist---finish-email&quot;&gt;second email we created&lt;/a&gt; to the people that are in the waitlist at that point.&lt;/p&gt;
&lt;p&gt;For those who entered the journey &lt;strong&gt;but got registered automatically&lt;/strong&gt; if someone else unregisters, we should exit them from this journey, so we should configure the alternate exits, and that’s when &lt;a href=&quot;#3-event-registration-status-change-trigger&quot;&gt;our trigger&lt;/a&gt; comes to play.&lt;/p&gt;
&lt;p&gt;We would select it as an alternate exit and we will add the following conditions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Status Reason does not equal &lt;code&gt;Waitlisted&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Primary Role equals &lt;code&gt;Attendee&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Exit Setup&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;With this journey the waitlisted registrations for the &lt;strong&gt;people in the attendee role will be handled&lt;/strong&gt;, additionally, we’ll add a journey for the companions.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;5-waitlist-companions-journey&quot;&gt;5. “Waitlist Companions” Journey&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;Save as&lt;/em&gt; the previous Journey and setup the start and the exit so that it is filtered for the companion instead of the attendee as a primary role:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Exit Setup&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;last-tips&quot;&gt;Last Tips&lt;/h3&gt;
&lt;p&gt;&lt;em&gt;This setup can cause issues if you have multiple events using these journeys for waitlisting and registration. To avoid this I recommend using these journeys as a template and create 2 Journeys filtered by event so they don’t overlap.&lt;/em&gt;&lt;/p&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Handling waitlists is already challenging—but when companions are involved, the complexity increases quickly.&lt;/p&gt;
&lt;p&gt;By separating attendees and companions into &lt;strong&gt;dedicated journeys&lt;/strong&gt;, and combining them with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;dynamic emails&lt;/li&gt;
&lt;li&gt;a status change trigger&lt;/li&gt;
&lt;li&gt;and clear communication logic&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;you can turn a messy manual process into a &lt;strong&gt;fully automated and user-friendly experience&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The key idea is simple:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Give control back to the attendee while keeping the system reactive.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;This pattern is not limited to events—you can reuse it in:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;capacity-based campaigns&lt;/li&gt;
&lt;li&gt;VIP access scenarios&lt;/li&gt;
&lt;li&gt;or any process where availability changes over time&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you haven’t read &lt;a href=&quot;/writing/customer-insights-waitlist-1&quot;&gt;Part 1&lt;/a&gt; yet, I highly recommend starting there to understand how the waitlisting logic is initialized.&lt;/p&gt;
&lt;p&gt;And if you try this approach in your projects, I’d love to hear how it worked for you 😉&lt;/p&gt;</content:encoded><category>Power Platform</category><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Waitlisting</category><category>Event Management</category><category>Power Platform Development</category></item><item><title>“Can I Bring Someone?” Solving Plus-One Waitlisting in Customer Insights Journeys (Part 1)</title><link>https://martinplopez.com/writing/customer-insights-waitlist-1/</link><guid isPermaLink="true">https://martinplopez.com/writing/customer-insights-waitlist-1/</guid><description>Learn how to handle plus-one event registrations in Dynamics 365 Customer Insights Journeys using waitlists and Power Automate. Extend the out-of-the-box event logic to avoid overbooking and improve attendee management.</description><pubDate>Thu, 26 Mar 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Events are rarely a solo experience.&lt;/p&gt;
&lt;p&gt;In many scenarios, attendees want to bring a guest — a colleague, a partner, or a friend. But in &lt;strong&gt;Dynamics 365 Customer Insights – Journeys&lt;/strong&gt;, handling “plus one” scenarios is not supported out-of-the-box.&lt;/p&gt;
&lt;p&gt;This creates a real problem:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Your event shows &lt;strong&gt;1 registration&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;But &lt;strong&gt;2 people actually show up&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Multiply that across dozens of attendees… and suddenly your event is over capacity.&lt;/p&gt;
&lt;p&gt;In this article, I’ll show you how to solve this using:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;built-in waitlist feature&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;Power Automate flow&lt;/strong&gt; to create companion registrations&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Customer Insights Journeys includes a built-in waitlist for events&lt;/li&gt;
&lt;li&gt;It works well for single attendees but not for “plus one” scenarios&lt;/li&gt;
&lt;li&gt;We can extend it with Power Automate to create and manage companion registrations&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-problem-with-plus-one-registrations&quot;&gt;The Problem with Plus-One Registrations&lt;/h2&gt;
&lt;p&gt;The typical flow looks like this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;A contact registers and selects “I’ll bring someone”&lt;/li&gt;
&lt;li&gt;A single registration is created&lt;/li&gt;
&lt;li&gt;The event capacity increases by &lt;strong&gt;1&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;In reality, &lt;strong&gt;2 people attend&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This leads to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Overbooked venues&lt;/li&gt;
&lt;li&gt;Poor attendee experience&lt;/li&gt;
&lt;li&gt;Manual corrections by organizers&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;possible-approaches-and-why-they-fall-short&quot;&gt;Possible Approaches (and Why They Fall Short)&lt;/h2&gt;
&lt;h3 id=&quot;-disable-plus-one-option&quot;&gt;❌ Disable plus-one option&lt;/h3&gt;
&lt;p&gt;Simple, but negatively impacts user experience.&lt;/p&gt;
&lt;h3 id=&quot;-manual-registration-handling&quot;&gt;❌ Manual registration handling&lt;/h3&gt;
&lt;p&gt;Works for small events, but not scalable.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-solution&quot;&gt;The Solution&lt;/h2&gt;
&lt;p&gt;We extend the standard process with:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A new &lt;strong&gt;“Companion” role&lt;/strong&gt; in Event Registration&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;Power Automate flow&lt;/strong&gt; that:
&lt;ul&gt;
&lt;li&gt;Detects plus-one selections&lt;/li&gt;
&lt;li&gt;Creates an additional registration&lt;/li&gt;
&lt;li&gt;Applies waitlisting when needed&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;how-does-the-process-look-like&quot;&gt;How does the process look like&lt;/h3&gt;
&lt;p&gt;Before diving into the implementation, here’s the idea:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;The attendee registers normally&lt;/li&gt;
&lt;li&gt;We detect if they selected “plus one”&lt;/li&gt;
&lt;li&gt;We create an additional registration:
&lt;ul&gt;
&lt;li&gt;If capacity allows → Registered&lt;/li&gt;
&lt;li&gt;If not → Waitlisted&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;We assign a custom role (Companion) to distinguish it&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot; style=&quot;--dw:737px&quot;&gt;&lt;svg id=&quot;mermaid-0&quot; width=&quot;100%&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; class=&quot;flowchart&quot; style=&quot;max-width: 736.828125px;&quot; viewBox=&quot;0 0 736.828125 174&quot; role=&quot;graphics-document document&quot; aria-roledescription=&quot;flowchart-v2&quot;&gt;&lt;style&gt;#mermaid-0{font-family:arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-0 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-0 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-0 .error-icon{fill:#552222;}#mermaid-0 .error-text{fill:#552222;stroke:#552222;}#mermaid-0 .edge-thickness-normal{stroke-width:1px;}#mermaid-0 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-0 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-0 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-0 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-0 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-0 .marker{fill:#333333;stroke:#333333;}#mermaid-0 .marker.cross{stroke:#333333;}#mermaid-0 svg{font-family:arial,sans-serif;font-size:16px;}#mermaid-0 p{margin:0;}#mermaid-0 .label{font-family:arial,sans-serif;color:#333;}#mermaid-0 .cluster-label text{fill:#333;}#mermaid-0 .cluster-label span{color:#333;}#mermaid-0 .cluster-label span p{background-color:transparent;}#mermaid-0 .label text,#mermaid-0 span{fill:#333;color:#333;}#mermaid-0 .node rect,#mermaid-0 .node circle,#mermaid-0 .node ellipse,#mermaid-0 .node polygon,#mermaid-0 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-0 .rough-node .label text,#mermaid-0 .node .label text,#mermaid-0 .image-shape .label,#mermaid-0 .icon-shape .label{text-anchor:middle;}#mermaid-0 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-0 .rough-node .label,#mermaid-0 .node .label,#mermaid-0 .image-shape .label,#mermaid-0 .icon-shape .label{text-align:center;}#mermaid-0 .node.clickable{cursor:pointer;}#mermaid-0 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-0 .arrowheadPath{fill:#333333;}#mermaid-0 .edgePath .path{stroke:#333333;stroke-width:1px;}#mermaid-0 .flowchart-link{stroke:#333333;fill:none;}#mermaid-0 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-0 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-0 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-0 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-0 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-0 .cluster text{fill:#333;}#mermaid-0 .cluster span{color:#333;}#mermaid-0 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-0 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-0 rect.text{fill:none;stroke-width:0;}#mermaid-0 .icon-shape,#mermaid-0 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-0 .icon-shape p,#mermaid-0 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-0 .icon-shape .label rect,#mermaid-0 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-0 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-0 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-0 .node .neo-node{stroke:#9370DB;}#mermaid-0 [data-look=&quot;neo&quot;].node rect,#mermaid-0 [data-look=&quot;neo&quot;].cluster rect,#mermaid-0 [data-look=&quot;neo&quot;].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node path{stroke:#9370DB;stroke-width:1px;}#mermaid-0 [data-look=&quot;neo&quot;].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node .neo-line path{stroke:#9370DB;filter:none;}#mermaid-0 [data-look=&quot;neo&quot;].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node circle .state-start{fill:#000000;}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 :root{--mermaid-font-family:arial,sans-serif;}&lt;/style&gt;&lt;g&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 10 5 L 0 10 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;4.5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 5 L 10 10 L 10 0 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;11.5&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;10.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 11.5 7 L 0 14 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;1&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;polygon points=&quot;0,7 11.5,14 11.5,0&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/polygon&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;11&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-1&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refY=&quot;5&quot; refX=&quot;12.25&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-2&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossEnd&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;12&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossStart&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;-1&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossEnd-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;17.7&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossStart-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;-3.5&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;g class=&quot;root&quot;&gt;&lt;g class=&quot;clusters&quot;&gt;&lt;/g&gt;&lt;g class=&quot;edgePaths&quot;&gt;&lt;path d=&quot;M153.375,87L157.542,87C161.708,87,170.042,87,177.708,87C185.375,87,192.375,87,195.875,87L199.375,87&quot; id=&quot;mermaid-0-L_A_B_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_A_B_0&quot; data-points=&quot;W3sieCI6MTUzLjM3NSwieSI6ODd9LHsieCI6MTc4LjM3NSwieSI6ODd9LHsieCI6MjAzLjM3NSwieSI6ODd9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M297.156,87L301.323,87C305.49,87,313.823,87,321.49,87C329.156,87,336.156,87,339.656,87L343.156,87&quot; id=&quot;mermaid-0-L_B_C_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_B_C_0&quot; data-points=&quot;W3sieCI6Mjk3LjE1NjI1LCJ5Ijo4N30seyJ4IjozMjIuMTU2MjUsInkiOjg3fSx7IngiOjM0Ny4xNTYyNSwieSI6ODd9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M507.728,60L517.515,55.833C527.303,51.667,546.878,43.333,560.166,39.167C573.453,35,580.453,35,583.953,35L587.453,35&quot; id=&quot;mermaid-0-L_C_D_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_C_D_0&quot; data-points=&quot;W3sieCI6NTA3LjcyNzkxNDY2MzQ2MTU1LCJ5Ijo2MH0seyJ4Ijo1NjYuNDUzMTI1LCJ5IjozNX0seyJ4Ijo1OTEuNDUzMTI1LCJ5IjozNX1d&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M507.728,114L517.515,118.167C527.303,122.333,546.878,130.667,560.883,134.833C574.888,139,583.323,139,587.54,139L591.758,139&quot; id=&quot;mermaid-0-L_C_E_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_C_E_0&quot; data-points=&quot;W3sieCI6NTA3LjcyNzkxNDY2MzQ2MTU1LCJ5IjoxMTR9LHsieCI6NTY2LjQ1MzEyNSwieSI6MTM5fSx7IngiOjU5NS43NTc4MTI1LCJ5IjoxMzl9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabels&quot;&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_A_B_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_B_C_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_C_D_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_C_E_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;nodes&quot;&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-A-0&quot; data-look=&quot;classic&quot; transform=&quot;translate(80.6875, 87)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-72.6875&quot; y=&quot;-27&quot; width=&quot;145.375&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-42.6875, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;85.375&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Registration&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-B-1&quot; data-look=&quot;classic&quot; transform=&quot;translate(250.265625, 87)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-46.890625&quot; y=&quot;-27&quot; width=&quot;93.78125&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-16.890625, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;33.78125&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Flow&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-C-3&quot; data-look=&quot;classic&quot; transform=&quot;translate(444.3046875, 87)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-97.1484375&quot; y=&quot;-27&quot; width=&quot;194.296875&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-67.1484375, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;134.296875&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Create Companion&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-D-5&quot; data-look=&quot;classic&quot; transform=&quot;translate(660.140625, 35)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-68.6875&quot; y=&quot;-27&quot; width=&quot;137.375&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-38.6875, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;77.375&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Registered&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-E-7&quot; data-look=&quot;classic&quot; transform=&quot;translate(660.140625, 139)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-64.3828125&quot; y=&quot;-27&quot; width=&quot;128.765625&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-34.3828125, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;68.765625&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Waitlisted&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-0-drop-shadow&quot; height=&quot;130%&quot; width=&quot;130%&quot;&gt;&lt;feDropShadow dx=&quot;4&quot; dy=&quot;4&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-0-drop-shadow-small&quot; height=&quot;150%&quot; width=&quot;150%&quot;&gt;&lt;feDropShadow dx=&quot;2&quot; dy=&quot;2&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;/svg&gt;&lt;/div&gt;
&lt;p&gt;This keeps the event capacity accurate and leverages the native waitlist logic.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-to-make-this-happen&quot;&gt;How to make this happen&lt;/h2&gt;
&lt;p&gt;This solution involves &lt;strong&gt;only one customization&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Adding a new option in the &lt;strong&gt;“Primary Role”&lt;/strong&gt; of the registration&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Primary Role of Registration&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;If this sounds too heavy, you can use a &lt;strong&gt;ready-made solution&lt;/strong&gt;: &lt;a href=&quot;https://github.com/martinplopez/CompanionRole&quot;&gt;Companion Role Solution in Github&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Once created, you’ll see the new option in the &lt;strong&gt;registration form&lt;/strong&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;The New Option!&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;If companion it&amp;#x27;s not a correct word for an acompañante/Begleitungperson, I&amp;#x27;m sorry, not a native english speaker 😅&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;If companion it&apos;s not a correct word for an acompañante/Begleitungperson, I&apos;m sorry, not a native english speaker 😅&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr&gt;
&lt;h3 id=&quot;setup-of-the-form&quot;&gt;Setup of the Form&lt;/h3&gt;
&lt;p&gt;For setting up the form, you’ll need an unmapped field in the form (I recommend of type Dropdown) with the options to come alone or with a plus one.&lt;/p&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Important:&lt;/strong&gt; Save the &lt;strong&gt;logical field name&lt;/strong&gt;, this will be used to fetch the response in Power Automate&lt;/p&gt;
&lt;p&gt;Make sure:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The field is &lt;strong&gt;required&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Default value is &lt;strong&gt;“No, I’m coming alone”&lt;/strong&gt; (recommended)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Setup the Form&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Also ensure:&lt;/p&gt;
&lt;p&gt;The event has &lt;strong&gt;waitlist enabled&lt;/strong&gt; — otherwise, &lt;strong&gt;everyone will be registered&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Waitlist Settings&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;power-automate-flow-for-creating-the-extra-registrations&quot;&gt;Power Automate Flow for creating the extra registrations&lt;/h3&gt;
&lt;p&gt;Now we build the flow that will &lt;strong&gt;handle plus-one registrations automatically&lt;/strong&gt;&lt;/p&gt;
&lt;h3 id=&quot;1-trigger&quot;&gt;1. Trigger&lt;/h3&gt;
&lt;p&gt;We’ll set up the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change type —&gt; &lt;strong&gt;Added&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Table Name —&gt; &lt;strong&gt;Event Registrations&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Scope —&gt; &lt;strong&gt;Organization&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Filter Rows —&gt; &lt;code&gt;msevtmgt_primaryrole eq null&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Trigger&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;2-retrieve-field-submissions&quot;&gt;2. Retrieve Field Submissions&lt;/h3&gt;
&lt;p&gt;We’ll add the &lt;strong&gt;List Rows&lt;/strong&gt; Action for the Table &lt;strong&gt;Field Submissions&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Retrieve Field Submissions&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Then it’s easier and more efficient to use a &lt;strong&gt;fetchxml query&lt;/strong&gt;, you just have to modify the &lt;code&gt;[LOGICALNAME]&lt;/code&gt; for the logical field name that you gave in your form &lt;a href=&quot;#setup-of-the-form&quot;&gt;while setting it up&lt;/a&gt;&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;xml&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; top&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;1&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;entity&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; name&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_marketingfieldsubmission&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;attribute&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; name&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_localizedfieldvalue&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;filter&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;          &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;condition&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; attribute&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_localizedfieldname&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; operator&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;like&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; value&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;[LOGICALNAME]&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;filter&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;order&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; attribute&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_localizedfieldname&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;link-entity&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; name&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_marketingformsubmission&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; from&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_marketingformsubmissionid&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; to&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_marketingformsubmissionid&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; alias&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Formsubmission&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;          &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;filter&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;condition&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; attribute&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_eventregistration&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; operator&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;eq&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; value&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;@{triggerOutputs()?[&apos;body/msevtmgt_eventregistrationid&apos;]}&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;          &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;filter&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;link-entity&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;entity&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;fetch&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;h3 id=&quot;3-update-primary-registration&quot;&gt;3. Update Primary Registration&lt;/h3&gt;
&lt;p&gt;We’ll &lt;strong&gt;Update a Row&lt;/strong&gt; with of the entity &lt;strong&gt;Event Registrations&lt;/strong&gt;. With this action, we’ll update the current registration to give the role of the &lt;strong&gt;Attendee&lt;/strong&gt;. In the Row ID, make sure to choose the &lt;strong&gt;Event Registration&lt;/strong&gt; from the trigger a.k.a &lt;code&gt;@{triggerOutputs()?[&apos;body/msevtmgt_eventregistrationid&apos;]}&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image7.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Update Primary Registration&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;4-add-a-condition&quot;&gt;4. Add a condition&lt;/h3&gt;
&lt;p&gt;We’ll add a condition where we check if the &lt;strong&gt;Localized Value Field&lt;/strong&gt; (1) or in technical name &lt;code&gt;@items(&apos;Apply_to_each&apos;)?[&apos;msdynmkt_localizedfieldvalue&apos;]&lt;/code&gt; is equal to 2 (2) (which is the value os the second dropdown normally).&lt;/p&gt;
&lt;p&gt;Be sure to use &lt;code&gt;string(2)&lt;/code&gt; when you’re comparing it, as the value in the localized value field will be a string.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image8.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Add a condition&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;5-add-a-registration-for-the-plus-one&quot;&gt;5. Add a Registration for the plus one&lt;/h3&gt;
&lt;p&gt;Add a new Row, where the following elements are there:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Table Name —&gt; Event Registrations&lt;/li&gt;
&lt;li&gt;Event (Events) —&gt; &lt;code&gt;/msevtmgt_events/@{triggerOutputs()?[&apos;body/_msevtmgt_eventid_value&apos;]}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Contact (Contacts) —&gt; &lt;code&gt;/contacts/@{triggerOutputs()?[&apos;body/_msevtmgt_contactid_value&apos;]}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Registration ID —&gt; &lt;code&gt;@null&lt;/code&gt; (this is an expression)&lt;/li&gt;
&lt;li&gt;Primary Role —&gt; Companion&lt;/li&gt;
&lt;li&gt;Status code —&gt; &lt;strong&gt;Registered&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image9.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;dd a Registration for the plus one&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;The names might differ from the picture as my marketing environment is in german, as I&amp;#x27;m based in Switzerland&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;The names might differ from the picture as my marketing environment is in german, as I&apos;m based in Switzerland&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr&gt;
&lt;h3 id=&quot;6-add-a-waitlisted-registration-for-the-plus-one&quot;&gt;6. Add a waitlisted registration for the plus one&lt;/h3&gt;
&lt;p&gt;Add a new Row, where the following elements are there:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Table Name —&gt; Event Registrations&lt;/li&gt;
&lt;li&gt;Event (Events) —&gt; &lt;code&gt;/msevtmgt_events/@{triggerOutputs()?[&apos;body/_msevtmgt_eventid_value&apos;]}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Contact (Contacts) —&gt; &lt;code&gt;/contacts/@{triggerOutputs()?[&apos;body/_msevtmgt_contactid_value&apos;]}&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Registration ID —&gt; &lt;code&gt;@null&lt;/code&gt; (this is an expression)&lt;/li&gt;
&lt;li&gt;Primary Role —&gt; Companion&lt;/li&gt;
&lt;li&gt;Status code —&gt; &lt;strong&gt;Waitlisted&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;But the main point of this action, it’s that it should run only when the previous action has failed (this happens due to an event being over capacity).&lt;/p&gt;
&lt;p&gt;The steps can be found in &lt;a href=&quot;https://learn.microsoft.com/en-us/power-automate/guidance/coding-guidelines/error-handling#configure-run-after-settings&quot;&gt;this Microsoft Learn Article&lt;/a&gt;, but basically can be summarized in:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;...&lt;/code&gt; —&gt; Configure run after —&gt; has failed&lt;/p&gt;
&lt;p&gt;After configuring this, you should see a different line connecting your two “Add a Row”&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image10.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Waitlist Settings&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;stay-tuned-for-the-part-2&quot;&gt;Stay tuned for the Part 2&lt;/h2&gt;
&lt;p&gt;Great! This has been the first part of the &lt;strong&gt;“Can I Bring Someone?”&lt;/strong&gt; Series. We’d gone over:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;How to &lt;strong&gt;capture plus-one intent in forms&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;How to &lt;strong&gt;extend registration roles&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;How to &lt;strong&gt;automate companion registrations with Power Automate&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;In Part 2, we’ll take it further:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Notify users if their &lt;strong&gt;plus one is waitlisted&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Allow them to &lt;strong&gt;cancel if needed&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Send updates when &lt;strong&gt;spots become available&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I hope this first part helps you build a cleaner and more reliable &lt;strong&gt;registration process&lt;/strong&gt;. In the next article of the series, we’ll look at how &lt;strong&gt;to communicate the outcome to attendees&lt;/strong&gt; and make the experience smoother when plus ones are involved.&lt;/p&gt;
&lt;p&gt;Until then, take care 🐣&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;⚠️ &lt;strong&gt;UPDATE&lt;/strong&gt; Part 2 is already available in &lt;a href=&quot;/writing/customer-insights-waitlist-2&quot;&gt;“Can I Bring Someone?” - Solving Plus-One Waitlisting in Customer Insights Journeys (Part 2)&lt;/a&gt;&lt;/p&gt;</content:encoded><category>Power Platform</category><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Waitlisting</category><category>Event Management</category><category>Power Automate</category></item><item><title>Guide Users in Customer Insights - Journeys with Custom Help Panes</title><link>https://martinplopez.com/writing/custom-help-page-event/</link><guid isPermaLink="true">https://martinplopez.com/writing/custom-help-page-event/</guid><description>Discover how to use Custom Help Panes in model-driven apps to guide users in Dynamics 365 Customer Insights - Journeys. Improve adoption and reduce training with contextual in-app help.</description><pubDate>Fri, 13 Mar 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Customer Insights - Journeys offers a powerful set of features:
emails, journeys, segments, triggers, events, and forms.&lt;/p&gt;
&lt;p&gt;But for many marketing teams, the challenge isn’t the lack of functionality - it’s navigating all those features efficiently.&lt;/p&gt;
&lt;p&gt;New users often ask questions like:&lt;/p&gt;
&lt;p&gt;Where do I start?
What should I configure first?
Did I miss a step?&lt;/p&gt;
&lt;p&gt;Training sessions and documentation help, but they require users to leave the application to find answers.&lt;/p&gt;
&lt;p&gt;What if the guidance could live directly inside the interface?&lt;/p&gt;
&lt;p&gt;That’s exactly what &lt;strong&gt;Custom Help Panes&lt;/strong&gt; allow you to do.&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Customer Insights – Journeys runs on a &lt;strong&gt;model-driven app&lt;/strong&gt;, which means you can enable &lt;strong&gt;Custom Help Panes&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;These panes allow you to:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Embed contextual help directly inside forms&lt;/li&gt;
&lt;li&gt;Guide users through processes like email or event creation&lt;/li&gt;
&lt;li&gt;Link to other pages inside the application&lt;/li&gt;
&lt;li&gt;Provide checklists and best practices&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Instead of external documentation, marketers get &lt;strong&gt;step-by-step guidance inside the product&lt;/strong&gt;.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-are-custom-help-panes&quot;&gt;What Are Custom Help Panes&lt;/h2&gt;
&lt;p&gt;Custom help panes allow you to add &lt;strong&gt;context-sensitive help content inside model-driven apps&lt;/strong&gt;. (In case you were wondering, Customer Insights - Journeys is based in a model-driven app)&lt;/p&gt;
&lt;p&gt;They appear as a &lt;strong&gt;side panel next to the form or page&lt;/strong&gt; and can contain:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rich text&lt;/li&gt;
&lt;li&gt;Links&lt;/li&gt;
&lt;li&gt;Images&lt;/li&gt;
&lt;li&gt;Videos&lt;/li&gt;
&lt;li&gt;Coach marks and help balloons&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One useful behavior: the help pane &lt;strong&gt;remains open while the user navigates between forms&lt;/strong&gt;, so you can guide users across multiple steps.&lt;/p&gt;
&lt;p&gt;This makes it ideal for &lt;strong&gt;step-by-step marketing processes!&lt;/strong&gt;.&lt;/p&gt;
&lt;h2 id=&quot;why-they-are-useful-for-ci-journeys&quot;&gt;Why They Are Useful for CI Journeys&lt;/h2&gt;
&lt;p&gt;Instead of making a documentation about all the steps the marketers have to do to create an email, or a journey, you can just directly add a help pane to the Journey or the Email!&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/writing/custom-help-page-event/image.gif&quot; alt=&quot;Ballons and Coachmarks are super useful&quot;&gt;&lt;/p&gt;
&lt;p&gt;But it’s better to see some real life examples 🐣&lt;/p&gt;
&lt;h3 id=&quot;example-1--email-creation&quot;&gt;Example 1 – Email creation&lt;/h3&gt;
&lt;p&gt;Inside the email form you can create a Email creation guidance. Here a sample of how the pane can look like
Help pane content example:&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example Help Page for Email&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;purpose&quot;&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Use this checklist when creating marketing emails in &lt;strong&gt;Customer Insights - Journeys&lt;/strong&gt; to ensure branding, compliance, and deliverability best
practices are followed.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;1-use-an-approved-template&quot;&gt;1. Use an Approved Template&lt;/h2&gt;
&lt;p&gt;Start from an &lt;strong&gt;approved marketing template&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Checklist:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the official &lt;strong&gt;company email template&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Verify &lt;strong&gt;branding elements&lt;/strong&gt; (logo, colors, fonts)&lt;/li&gt;
&lt;li&gt;Do not remove required &lt;strong&gt;footer elements&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Ensure layout works on &lt;strong&gt;desktop and mobile&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;2-verify-sender-information&quot;&gt;2. Verify Sender Information&lt;/h2&gt;
&lt;p&gt;Ensure the sender is recognizable and trustworthy.&lt;/p&gt;
&lt;p&gt;Checklist:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Confirm the &lt;strong&gt;Sender Name&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Confirm the &lt;strong&gt;Sender Email Address&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Use an approved sender domain&lt;/li&gt;
&lt;li&gt;Avoid generic names like &lt;code&gt;Marketing Team&lt;/code&gt; unless defined by brand
guidelines&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Sender Name: Martin P Lopez&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Sender Email Address: events@martinplopez.com&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;h2 id=&quot;3-check-personalization&quot;&gt;3. Check Personalization&lt;/h2&gt;
&lt;p&gt;Validate all dynamic content.&lt;/p&gt;
&lt;p&gt;Checklist:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Review &lt;strong&gt;dynamic fields&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Add &lt;strong&gt;fallback values&lt;/strong&gt; where needed&lt;/li&gt;
&lt;li&gt;Preview using &lt;strong&gt;sample contacts&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Hello {{FirstName | default:&quot;there&quot;}}&lt;/code&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;4-review-the-compliance-profile&quot;&gt;4. Review the Compliance Profile&lt;/h2&gt;
&lt;p&gt;Customer Insights - Journeys enforces consent and regulatory
requirements through &lt;strong&gt;Compliance Profiles&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Before using the email:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Select the &lt;strong&gt;correct Compliance Profile&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Verify the &lt;strong&gt;communication purpose&lt;/strong&gt; (e.g., commercial,
informational)&lt;/li&gt;
&lt;li&gt;Ensure &lt;strong&gt;unsubscribe links&lt;/strong&gt; are present&lt;/li&gt;
&lt;li&gt;Ensure the &lt;strong&gt;preference center link&lt;/strong&gt; is included&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If unsure, use the &lt;strong&gt;default marketing compliance profile&lt;/strong&gt; defined by
your organization.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;5-test-the-email&quot;&gt;5. Test the Email&lt;/h2&gt;
&lt;p&gt;Always test before using the email in a journey.&lt;/p&gt;
&lt;p&gt;Checklist:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use &lt;strong&gt;Preview and Test Send&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Send a test email to yourself&lt;/li&gt;
&lt;li&gt;Verify:
&lt;ul&gt;
&lt;li&gt;Mobile rendering&lt;/li&gt;
&lt;li&gt;Images&lt;/li&gt;
&lt;li&gt;Links and buttons&lt;/li&gt;
&lt;li&gt;Personalization fields&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;6-final-validation&quot;&gt;6. Final Validation&lt;/h2&gt;
&lt;p&gt;Before activating the email or using it in a journey:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Subject line reviewed&lt;/li&gt;
&lt;li&gt;Preheader text added&lt;/li&gt;
&lt;li&gt;Compliance profile confirmed&lt;/li&gt;
&lt;li&gt;Links tested&lt;/li&gt;
&lt;li&gt;Email approved (if applicable)&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;💡 &lt;strong&gt;Tip&lt;/strong&gt; Clear subject lines and minimal spam trigger words improve
deliverability.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;This is how it might look like:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;It&amp;#x27;s very intuitive&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;example-2--event-creation&quot;&gt;Example 2 – Event creation&lt;/h3&gt;
&lt;p&gt;Here is another example of how a checklist can help you organize your event:&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example Help Page for an Event&lt;/strong&gt;&lt;/p&gt;
&lt;h2 id=&quot;purpose-1&quot;&gt;Purpose&lt;/h2&gt;
&lt;p&gt;Use this checklist when creating &lt;strong&gt;events in Customer Insights – Journeys&lt;/strong&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;1-define-event-details&quot;&gt;1. Define Event Details&lt;/h2&gt;
&lt;p&gt;Checklist:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Event name&lt;/li&gt;
&lt;li&gt;Description&lt;/li&gt;
&lt;li&gt;Event type (online / hybrid / in‑person)&lt;/li&gt;
&lt;li&gt;Date and time&lt;/li&gt;
&lt;li&gt;Location or meeting link&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;2-configure-registration&quot;&gt;2. Configure Registration&lt;/h2&gt;
&lt;p&gt;Checklist:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Registration form created&lt;/li&gt;
&lt;li&gt;Required fields defined&lt;/li&gt;
&lt;li&gt;Capacity limits configured&lt;/li&gt;
&lt;li&gt;Waitlist enabled if needed&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example fields:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First Name&lt;/li&gt;
&lt;li&gt;Last Name&lt;/li&gt;
&lt;li&gt;Email&lt;/li&gt;
&lt;li&gt;Company&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;3-configure-event-communications&quot;&gt;3. Configure Event Communications&lt;/h2&gt;
&lt;p&gt;Recommended emails:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Registration confirmation&lt;/li&gt;
&lt;li&gt;Event reminder&lt;/li&gt;
&lt;li&gt;Post‑event follow‑up&lt;/li&gt;
&lt;li&gt;Follow-up for No-Show (optional)&lt;/li&gt;
&lt;li&gt;Unregistered Confirmation (optional)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example timeline:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Registration Confirmation → Immediately&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Reminder → 1 Day Before Event&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Reminder → 1 Hour Before Event&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;h2 id=&quot;4-configure-event-journeys&quot;&gt;4. Configure Event Journeys&lt;/h2&gt;
&lt;p&gt;Recommended emails:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Registration confirmation&lt;/li&gt;
&lt;li&gt;Event reminder&lt;/li&gt;
&lt;li&gt;Post‑event follow‑up&lt;/li&gt;
&lt;li&gt;Follow-up for No-Show (optional)&lt;/li&gt;
&lt;li&gt;Unregistered Confirmation (optional)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Example timeline:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Registration Confirmation → Immediately&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Reminder → 1 Day Before Event&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Reminder → 1 Hour Before Event&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;hr&gt;
&lt;h2 id=&quot;5-test-the-registration-process&quot;&gt;5. Test the Registration Process&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Complete a &lt;strong&gt;test registration&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Verify confirmation email&lt;/li&gt;
&lt;li&gt;Validate reminder emails&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;This is how it might look like:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Point Out your Content in Form&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;using-help-panes-as-process-maps&quot;&gt;Using help panes as process maps&lt;/h2&gt;
&lt;p&gt;But the real value comes from how you structure your Help Panes. So it can be used as a map inside your intention.&lt;/p&gt;
&lt;p&gt;So imagine you have a normal campaign script:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot; style=&quot;--dw:938px&quot;&gt;&lt;svg id=&quot;mermaid-0&quot; width=&quot;100%&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; class=&quot;flowchart&quot; style=&quot;max-width: 937.796875px;&quot; viewBox=&quot;0 0 937.796875 218.53125&quot; role=&quot;graphics-document document&quot; aria-roledescription=&quot;flowchart-v2&quot;&gt;&lt;style&gt;#mermaid-0{font-family:arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-0 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-0 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-0 .error-icon{fill:#552222;}#mermaid-0 .error-text{fill:#552222;stroke:#552222;}#mermaid-0 .edge-thickness-normal{stroke-width:1px;}#mermaid-0 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-0 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-0 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-0 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-0 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-0 .marker{fill:#333333;stroke:#333333;}#mermaid-0 .marker.cross{stroke:#333333;}#mermaid-0 svg{font-family:arial,sans-serif;font-size:16px;}#mermaid-0 p{margin:0;}#mermaid-0 .label{font-family:arial,sans-serif;color:#333;}#mermaid-0 .cluster-label text{fill:#333;}#mermaid-0 .cluster-label span{color:#333;}#mermaid-0 .cluster-label span p{background-color:transparent;}#mermaid-0 .label text,#mermaid-0 span{fill:#333;color:#333;}#mermaid-0 .node rect,#mermaid-0 .node circle,#mermaid-0 .node ellipse,#mermaid-0 .node polygon,#mermaid-0 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-0 .rough-node .label text,#mermaid-0 .node .label text,#mermaid-0 .image-shape .label,#mermaid-0 .icon-shape .label{text-anchor:middle;}#mermaid-0 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-0 .rough-node .label,#mermaid-0 .node .label,#mermaid-0 .image-shape .label,#mermaid-0 .icon-shape .label{text-align:center;}#mermaid-0 .node.clickable{cursor:pointer;}#mermaid-0 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-0 .arrowheadPath{fill:#333333;}#mermaid-0 .edgePath .path{stroke:#333333;stroke-width:1px;}#mermaid-0 .flowchart-link{stroke:#333333;fill:none;}#mermaid-0 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-0 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-0 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-0 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-0 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-0 .cluster text{fill:#333;}#mermaid-0 .cluster span{color:#333;}#mermaid-0 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-0 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-0 rect.text{fill:none;stroke-width:0;}#mermaid-0 .icon-shape,#mermaid-0 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-0 .icon-shape p,#mermaid-0 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-0 .icon-shape .label rect,#mermaid-0 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-0 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-0 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-0 .node .neo-node{stroke:#9370DB;}#mermaid-0 [data-look=&quot;neo&quot;].node rect,#mermaid-0 [data-look=&quot;neo&quot;].cluster rect,#mermaid-0 [data-look=&quot;neo&quot;].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node path{stroke:#9370DB;stroke-width:1px;}#mermaid-0 [data-look=&quot;neo&quot;].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node .neo-line path{stroke:#9370DB;filter:none;}#mermaid-0 [data-look=&quot;neo&quot;].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].node circle .state-start{fill:#000000;}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 [data-look=&quot;neo&quot;].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-0 :root{--mermaid-font-family:arial,sans-serif;}&lt;/style&gt;&lt;g&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 10 5 L 0 10 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;4.5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 5 L 10 10 L 10 0 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;11.5&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;10.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 11.5 7 L 0 14 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-pointStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;1&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;polygon points=&quot;0,7 11.5,14 11.5,0&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/polygon&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;11&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-1&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refY=&quot;5&quot; refX=&quot;12.25&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-circleStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-2&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossEnd&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;12&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossStart&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;-1&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossEnd-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;17.7&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-0_flowchart-v2-crossStart-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;-3.5&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;g class=&quot;root&quot;&gt;&lt;g class=&quot;clusters&quot;&gt;&lt;/g&gt;&lt;g class=&quot;edgePaths&quot;&gt;&lt;path d=&quot;M164.281,109.266L168.448,109.266C172.615,109.266,180.948,109.266,188.615,109.266C196.281,109.266,203.281,109.266,206.781,109.266L210.281,109.266&quot; id=&quot;mermaid-0-L_A_B_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_A_B_0&quot; data-points=&quot;W3sieCI6MTY0LjI4MTI1LCJ5IjoxMDkuMjY1NjI1fSx7IngiOjE4OS4yODEyNSwieSI6MTA5LjI2NTYyNX0seyJ4IjoyMTQuMjgxMjUsInkiOjEwOS4yNjU2MjV9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M384.938,77.391L394.417,73.037C403.896,68.683,422.854,59.974,435.833,55.62C448.813,51.266,455.813,51.266,459.313,51.266L462.813,51.266&quot; id=&quot;mermaid-0-L_B_C_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_B_C_0&quot; data-points=&quot;W3sieCI6Mzg0LjkzNzgyODU4NDc1MzcsInkiOjc3LjM5MDk1MzU4NDc1MzY3fSx7IngiOjQ0MS44MTI1LCJ5Ijo1MS4yNjU2MjV9LHsieCI6NDY2LjgxMjUsInkiOjUxLjI2NTYyNX1d&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M384.938,141.14L394.417,145.495C403.896,149.849,422.854,158.557,436.418,162.911C449.982,167.266,458.151,167.266,462.236,167.266L466.32,167.266&quot; id=&quot;mermaid-0-L_B_D_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_B_D_0&quot; data-points=&quot;W3sieCI6Mzg0LjkzNzgyODU4NDc1MzcsInkiOjE0MS4xNDAyOTY0MTUyNDYzM30seyJ4Ijo0NDEuODEyNSwieSI6MTY3LjI2NTYyNX0seyJ4Ijo0NzAuMzIwMzEyNSwieSI6MTY3LjI2NTYyNX1d&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M696.813,51.266L700.979,51.266C705.146,51.266,713.479,51.266,727.426,56.135C741.373,61.005,760.934,70.744,770.714,75.613L780.495,80.483&quot; id=&quot;mermaid-0-L_C_E_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_C_E_0&quot; data-points=&quot;W3sieCI6Njk2LjgxMjUsInkiOjUxLjI2NTYyNX0seyJ4Ijo3MjEuODEyNSwieSI6NTEuMjY1NjI1fSx7IngiOjc4NC4wNzU1NjU3MzI3NTg2LCJ5Ijo4Mi4yNjU2MjV9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M693.305,167.266L698.056,167.266C702.807,167.266,712.31,167.266,726.842,162.396C741.373,157.527,760.934,147.787,770.714,142.918L780.495,138.048&quot; id=&quot;mermaid-0-L_D_E_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_D_E_0&quot; data-points=&quot;W3sieCI6NjkzLjMwNDY4NzUsInkiOjE2Ny4yNjU2MjV9LHsieCI6NzIxLjgxMjUsInkiOjE2Ny4yNjU2MjV9LHsieCI6Nzg0LjA3NTU2NTczMjc1ODYsInkiOjEzNi4yNjU2MjV9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-0_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabels&quot;&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_A_B_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_B_C_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_B_D_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_C_E_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_D_E_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;nodes&quot;&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-A-0&quot; data-look=&quot;classic&quot; transform=&quot;translate(86.140625, 109.265625)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; rx=&quot;5&quot; ry=&quot;5&quot; x=&quot;-78.140625&quot; y=&quot;-27&quot; width=&quot;156.28125&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-63.140625, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;126.28125&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Create your email&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-B-1&quot; data-look=&quot;classic&quot; transform=&quot;translate(315.546875, 109.265625)&quot;&gt;&lt;polygon points=&quot;101.265625,0 202.53125,-101.265625 101.265625,-202.53125 0,-101.265625&quot; class=&quot;label-container&quot; transform=&quot;translate(-100.765625, 101.265625)&quot;&gt;&lt;/polygon&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-74.265625, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;148.53125&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Is it segment-based?&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-C-3&quot; data-look=&quot;classic&quot; transform=&quot;translate(581.8125, 51.265625)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; rx=&quot;5&quot; ry=&quot;5&quot; x=&quot;-115&quot; y=&quot;-39&quot; width=&quot;230&quot; height=&quot;78&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-100, -24)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;200&quot; height=&quot;48&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table; white-space: break-spaces; line-height: 1.5; max-width: 200px; text-align: center; width: 200px;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Create/Choose your segment&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-D-5&quot; data-look=&quot;classic&quot; transform=&quot;translate(581.8125, 167.265625)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; rx=&quot;5&quot; ry=&quot;5&quot; x=&quot;-111.4921875&quot; y=&quot;-27&quot; width=&quot;222.984375&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-96.4921875, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;192.984375&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Create/Choose your trigger&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-0-flowchart-E-7&quot; data-look=&quot;classic&quot; transform=&quot;translate(838.3046875, 109.265625)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; rx=&quot;5&quot; ry=&quot;5&quot; x=&quot;-91.4921875&quot; y=&quot;-27&quot; width=&quot;182.984375&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-76.4921875, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;152.984375&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Configure the journey&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-0-drop-shadow&quot; height=&quot;130%&quot; width=&quot;130%&quot;&gt;&lt;feDropShadow dx=&quot;4&quot; dy=&quot;4&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-0-drop-shadow-small&quot; height=&quot;150%&quot; width=&quot;150%&quot;&gt;&lt;feDropShadow dx=&quot;2&quot; dy=&quot;2&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;/svg&gt;&lt;/div&gt;
&lt;p&gt;How great would it be if you could link your next step directly in your help pane?&lt;/p&gt;
&lt;h3 id=&quot;campaign-launch-guide&quot;&gt;Campaign Launch Guide&lt;/h3&gt;
&lt;p&gt;Creating a map of the campaign for each step, and adding it as a section to your pane helps you identify where you are in your standard process and what are the next steps:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Section with Map in Emails&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Tip&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Don’t forget to hyperlink the map with the section you want to redirect to, that’s how you get 100% of the value from this feature.&lt;/p&gt;
&lt;/div&gt;
&lt;h3 id=&quot;event-launch-guide&quot;&gt;Event Launch Guide&lt;/h3&gt;
&lt;p&gt;To organize an event usually requires more elements as one might think, help guide them through this process&lt;/p&gt;
&lt;p&gt;I recommend using this sequence when creating an event in Dynamics Customer Insights Journeys:&lt;/p&gt;
&lt;div class=&quot;scroll-x&quot; tabindex=&quot;0&quot; style=&quot;--dw:598px&quot;&gt;&lt;svg id=&quot;mermaid-1&quot; width=&quot;100%&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; class=&quot;flowchart&quot; style=&quot;max-width: 597.1875px;&quot; viewBox=&quot;0 0 597.1875 70&quot; role=&quot;graphics-document document&quot; aria-roledescription=&quot;flowchart-v2&quot;&gt;&lt;style&gt;#mermaid-1{font-family:arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-1 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-1 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-1 .error-icon{fill:#552222;}#mermaid-1 .error-text{fill:#552222;stroke:#552222;}#mermaid-1 .edge-thickness-normal{stroke-width:1px;}#mermaid-1 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-1 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-1 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-1 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-1 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-1 .marker{fill:#333333;stroke:#333333;}#mermaid-1 .marker.cross{stroke:#333333;}#mermaid-1 svg{font-family:arial,sans-serif;font-size:16px;}#mermaid-1 p{margin:0;}#mermaid-1 .label{font-family:arial,sans-serif;color:#333;}#mermaid-1 .cluster-label text{fill:#333;}#mermaid-1 .cluster-label span{color:#333;}#mermaid-1 .cluster-label span p{background-color:transparent;}#mermaid-1 .label text,#mermaid-1 span{fill:#333;color:#333;}#mermaid-1 .node rect,#mermaid-1 .node circle,#mermaid-1 .node ellipse,#mermaid-1 .node polygon,#mermaid-1 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-1 .rough-node .label text,#mermaid-1 .node .label text,#mermaid-1 .image-shape .label,#mermaid-1 .icon-shape .label{text-anchor:middle;}#mermaid-1 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-1 .rough-node .label,#mermaid-1 .node .label,#mermaid-1 .image-shape .label,#mermaid-1 .icon-shape .label{text-align:center;}#mermaid-1 .node.clickable{cursor:pointer;}#mermaid-1 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-1 .arrowheadPath{fill:#333333;}#mermaid-1 .edgePath .path{stroke:#333333;stroke-width:1px;}#mermaid-1 .flowchart-link{stroke:#333333;fill:none;}#mermaid-1 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-1 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-1 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-1 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-1 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-1 .cluster text{fill:#333;}#mermaid-1 .cluster span{color:#333;}#mermaid-1 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-1 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-1 rect.text{fill:none;stroke-width:0;}#mermaid-1 .icon-shape,#mermaid-1 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-1 .icon-shape p,#mermaid-1 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-1 .icon-shape .label rect,#mermaid-1 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-1 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-1 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-1 .node .neo-node{stroke:#9370DB;}#mermaid-1 [data-look=&quot;neo&quot;].node rect,#mermaid-1 [data-look=&quot;neo&quot;].cluster rect,#mermaid-1 [data-look=&quot;neo&quot;].node polygon{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 [data-look=&quot;neo&quot;].node path{stroke:#9370DB;stroke-width:1px;}#mermaid-1 [data-look=&quot;neo&quot;].node .outer-path{filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 [data-look=&quot;neo&quot;].node .neo-line path{stroke:#9370DB;filter:none;}#mermaid-1 [data-look=&quot;neo&quot;].node circle{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 [data-look=&quot;neo&quot;].node circle .state-start{fill:#000000;}#mermaid-1 [data-look=&quot;neo&quot;].icon-shape .icon{fill:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 [data-look=&quot;neo&quot;].icon-shape .icon-neo path{stroke:#9370DB;filter:drop-shadow(1px 2px 2px rgba(185, 185, 185, 1));}#mermaid-1 :root{--mermaid-font-family:arial,sans-serif;}&lt;/style&gt;&lt;g&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-pointEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 10 5 L 0 10 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-pointStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;4.5&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;8&quot; markerHeight=&quot;8&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 5 L 10 10 L 10 0 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-pointEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;11.5&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;10.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 0 0 L 11.5 7 L 0 14 z&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-pointStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 11.5 14&quot; refX=&quot;1&quot; refY=&quot;7&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11.5&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;polygon points=&quot;0,7 11.5,14 11.5,0&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/polygon&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-circleEnd&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;11&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-circleStart&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-1&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 1; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-circleEnd-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refY=&quot;5&quot; refX=&quot;12.25&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-circleStart-margin&quot; class=&quot;marker flowchart-v2&quot; viewBox=&quot;0 0 10 10&quot; refX=&quot;-2&quot; refY=&quot;5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;14&quot; markerHeight=&quot;14&quot; orient=&quot;auto&quot;&gt;&lt;circle cx=&quot;5&quot; cy=&quot;5&quot; r=&quot;5&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 0; stroke-dasharray: 1, 0;&quot;&gt;&lt;/circle&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-crossEnd&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;12&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-crossStart&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 11 11&quot; refX=&quot;-1&quot; refY=&quot;5.2&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;11&quot; markerHeight=&quot;11&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 l 9,9 M 10,1 l -9,9&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-crossEnd-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;17.7&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;marker id=&quot;mermaid-1_flowchart-v2-crossStart-margin&quot; class=&quot;marker cross flowchart-v2&quot; viewBox=&quot;0 0 15 15&quot; refX=&quot;-3.5&quot; refY=&quot;7.5&quot; markerUnits=&quot;userSpaceOnUse&quot; markerWidth=&quot;12&quot; markerHeight=&quot;12&quot; orient=&quot;auto&quot;&gt;&lt;path d=&quot;M 1,1 L 14,14 M 1,14 L 14,1&quot; class=&quot;arrowMarkerPath&quot; style=&quot;stroke-width: 2.5; stroke-dasharray: 1, 0;&quot;&gt;&lt;/path&gt;&lt;/marker&gt;&lt;g class=&quot;root&quot;&gt;&lt;g class=&quot;clusters&quot;&gt;&lt;/g&gt;&lt;g class=&quot;edgePaths&quot;&gt;&lt;path d=&quot;M116.016,35L120.182,35C124.349,35,132.682,35,140.349,35C148.016,35,155.016,35,158.516,35L162.016,35&quot; id=&quot;mermaid-1-L_A_B_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_A_B_0&quot; data-points=&quot;W3sieCI6MTE2LjAxNTYyNSwieSI6MzV9LHsieCI6MTQxLjAxNTYyNSwieSI6MzV9LHsieCI6MTY2LjAxNTYyNSwieSI6MzV9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M290.938,35L295.104,35C299.271,35,307.604,35,315.271,35C322.938,35,329.938,35,333.438,35L336.938,35&quot; id=&quot;mermaid-1-L_B_C_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_B_C_0&quot; data-points=&quot;W3sieCI6MjkwLjkzNzUsInkiOjM1fSx7IngiOjMxNS45Mzc1LCJ5IjozNX0seyJ4IjozNDAuOTM3NSwieSI6MzV9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;path d=&quot;M438.266,35L442.432,35C446.599,35,454.932,35,462.599,35C470.266,35,477.266,35,480.766,35L484.266,35&quot; id=&quot;mermaid-1-L_C_D_0&quot; class=&quot;edge-thickness-normal edge-pattern-solid edge-thickness-normal edge-pattern-solid flowchart-link&quot; style=&quot;;&quot; data-edge=&quot;true&quot; data-et=&quot;edge&quot; data-id=&quot;L_C_D_0&quot; data-points=&quot;W3sieCI6NDM4LjI2NTYyNSwieSI6MzV9LHsieCI6NDYzLjI2NTYyNSwieSI6MzV9LHsieCI6NDg4LjI2NTYyNSwieSI6MzV9XQ==&quot; data-look=&quot;classic&quot; marker-end=&quot;url(#mermaid-1_flowchart-v2-pointEnd)&quot;&gt;&lt;/path&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabels&quot;&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_A_B_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_B_C_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;edgeLabel&quot;&gt;&lt;g class=&quot;label&quot; data-id=&quot;L_C_D_0&quot; transform=&quot;translate(0, 0)&quot;&gt;&lt;foreignObject width=&quot;0&quot; height=&quot;0&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; class=&quot;labelBkg&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;edgeLabel&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;nodes&quot;&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-A-0&quot; data-look=&quot;classic&quot; transform=&quot;translate(62.0078125, 35)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-54.0078125&quot; y=&quot;-27&quot; width=&quot;108.015625&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-24.0078125, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;48.015625&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Emails&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-B-1&quot; data-look=&quot;classic&quot; transform=&quot;translate(228.4765625, 35)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-62.4609375&quot; y=&quot;-27&quot; width=&quot;124.921875&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-32.4609375, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;64.921875&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Journeys&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-C-3&quot; data-look=&quot;classic&quot; transform=&quot;translate(389.6015625, 35)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-48.6640625&quot; y=&quot;-27&quot; width=&quot;97.328125&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-18.6640625, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;37.328125&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Form&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;g class=&quot;node default&quot; id=&quot;mermaid-1-flowchart-D-5&quot; data-look=&quot;classic&quot; transform=&quot;translate(538.7265625, 35)&quot;&gt;&lt;rect class=&quot;basic label-container&quot; style=&quot;&quot; x=&quot;-50.4609375&quot; y=&quot;-27&quot; width=&quot;100.921875&quot; height=&quot;54&quot;&gt;&lt;/rect&gt;&lt;g class=&quot;label&quot; style=&quot;&quot; transform=&quot;translate(-20.4609375, -12)&quot;&gt;&lt;rect&gt;&lt;/rect&gt;&lt;foreignObject width=&quot;40.921875&quot; height=&quot;24&quot;&gt;&lt;div xmlns=&quot;http://www.w3.org/1999/xhtml&quot; style=&quot;display: table-cell; white-space: nowrap; line-height: 1.5; max-width: 200px; text-align: center;&quot;&gt;&lt;span class=&quot;nodeLabel&quot;&gt;&lt;p&gt;Event&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;/foreignObject&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;/g&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-1-drop-shadow&quot; height=&quot;130%&quot; width=&quot;130%&quot;&gt;&lt;feDropShadow dx=&quot;4&quot; dy=&quot;4&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;defs&gt;&lt;filter id=&quot;mermaid-1-drop-shadow-small&quot; height=&quot;150%&quot; width=&quot;150%&quot;&gt;&lt;feDropShadow dx=&quot;2&quot; dy=&quot;2&quot; stdDeviation=&quot;0&quot; flood-opacity=&quot;0.06&quot; flood-color=&quot;#000000&quot;&gt;&lt;/feDropShadow&gt;&lt;/filter&gt;&lt;/defs&gt;&lt;/svg&gt;&lt;/div&gt;
&lt;p&gt;But how do I take this to the Help pane? Just like before, add a section with a checklist of the step you’re in and section with a map to know which section is next or was before:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Section with checklist and Map in Journeys&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;For the Checklist, I’d recommend less is more, keep it simple and put no more than 5 checks.&lt;/p&gt;
&lt;p&gt;And if your event includes an external registration portal, you can also &lt;a href=&quot;/writing/build-event-website-power-pages-dynamics-365/&quot;&gt;build a branded event website connected to Customer Insights - Journeys&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;how-to-enable&quot;&gt;How to enable&lt;/h2&gt;
&lt;p&gt;Microsoft documentation already explains the setup process very well: &lt;a href=&quot;https://learn.microsoft.com/en-us/power-apps/maker/data-platform/create-custom-help-pages&quot;&gt;Create guided help for your model-driven app&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here are the high-level steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open &lt;strong&gt;Power Platform Admin Center&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Navigate to &lt;strong&gt;Environment Settings&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Enable &lt;strong&gt;Custom Help Panes&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Create help pages in Dataverse (recommended inside a solution)&lt;/li&gt;
&lt;li&gt;Assign security roles&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Important:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To enable this feature, you might require Power Platform Administrator or Dynamics 365 Administrator role in your tenant&lt;/li&gt;
&lt;li&gt;Users need permission to read the Help Page table, adapt the security role accordingly&lt;/li&gt;
&lt;li&gt;Authors need privileges to create and edit help pages.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;More Info about Security and privileges under &lt;a href=&quot;https://learn.microsoft.com/en-us/power-apps/maker/data-platform/create-custom-help-pages#privileges-required&quot;&gt;Privileges required&lt;/a&gt;&lt;/p&gt;
&lt;h2 id=&quot;best-practices&quot;&gt;Best practices&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Help panes are linked to a specific language. If the user doesn’t have a help pane for his language, he won’t see anything.&lt;/li&gt;
&lt;li&gt;If you use balloons or checkmarks take into account that this elements are linked to the HTML element. So if the element is inside a collapsed HTML element, it will not show or not show correctly. Keep in mind that the users can be more confused than helped with this kind of things.&lt;/li&gt;
&lt;li&gt;Dropdown or Optionset elements don’t always work with Coachmarks or ballons (for instance in Email)&lt;/li&gt;
&lt;li&gt;I’m more of a reader but if you have workshops in video and you can divide them into different sections, you can directly embed the videos in the help panes&lt;/li&gt;
&lt;li&gt;Use the links to reference other sections of Customer Insights - Journeys&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;final-thoughts&quot;&gt;Final Thoughts&lt;/h2&gt;
&lt;p&gt;Custom Help Panes are one of the most underrated capabilities in Dynamics 365 and Power Apps model-driven applications.&lt;/p&gt;
&lt;p&gt;Instead of relying on external documentation or training sessions, you can guide users directly inside the interface.&lt;/p&gt;
&lt;p&gt;For teams using &lt;strong&gt;Customer Insights - Journeys&lt;/strong&gt;, this means:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Fewer onboarding questions&lt;/li&gt;
&lt;li&gt;Better process consistency&lt;/li&gt;
&lt;li&gt;Faster campaign execution&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;With just a few help pages and checklists, you can transform the application from a complex tool into a &lt;strong&gt;guided marketing workspace&lt;/strong&gt;.&lt;/p&gt;</content:encoded><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Power Platform</category><category>Power Platform Development</category></item><item><title>Clean Up Dataverse File Columns with Power Automate</title><link>https://martinplopez.com/writing/dataverse-delete-file/</link><guid isPermaLink="true">https://martinplopez.com/writing/dataverse-delete-file/</guid><description>Learn how to delete and clean up Dataverse file column data using Power Automate. This step-by-step guide shows how to safely remove file attachments and optimize storage in Microsoft Dataverse.</description><pubDate>Fri, 20 Feb 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A few weeks after delivering a Power Automate process that generates and stores PDFs in a Dataverse file column, my client asked for something simple:&lt;/p&gt;
&lt;p&gt;“Can we make this process run on demand?”&lt;/p&gt;
&lt;p&gt;That’s when I hit an unexpected limitation:&lt;/p&gt;
&lt;p&gt;You &lt;strong&gt;cannot clear a Dataverse File column using “Update a row”&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;I assumed it would be straightforward. But when I tried to use the &lt;strong&gt;Update a Row&lt;/strong&gt; action, the file column didn’t even appear 😐&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you need to &lt;strong&gt;clear a Dataverse File column using Power Automate&lt;/strong&gt;, you cannot do it with &lt;strong&gt;Update a row&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Instead:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use &lt;strong&gt;Perform an unbound action&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Select the &lt;strong&gt;DeleteFile&lt;/strong&gt; action&lt;/li&gt;
&lt;li&gt;Pass the &lt;strong&gt;FileId&lt;/strong&gt; of the file stored in the column&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Dataverse stores file content in a separate File record. Deleting that record using &lt;code&gt;DeleteFile&lt;/code&gt; properly removes the file from the column.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;things-i-tried&quot;&gt;Things I tried&lt;/h2&gt;
&lt;p&gt;First, I attempted to use &lt;strong&gt;Update a Row&lt;/strong&gt; and set the file column to &lt;code&gt;null&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;That doesn’t work — because the File column does not appear in the action.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;⚠️ Note: For &lt;strong&gt;Image columns&lt;/strong&gt;, clearing with &lt;code&gt;null&lt;/code&gt; &lt;em&gt;does&lt;/em&gt; work using Update a Row. This limitation applies specifically to &lt;strong&gt;File columns&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Next, I tried using the &lt;strong&gt;Upload a file or an image&lt;/strong&gt; action and passed &lt;code&gt;null&lt;/code&gt; as content:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Fill Out the Content name and Content with null expressions&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Interestingly, this creates a blank file instead of deleting it:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;untitled.txt is the default null value with \&amp;#x22;null\&amp;#x22; written inside&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;It works as a workaround — but it does not actually remove the file. It simply replaces it with an empty one.&lt;/p&gt;
&lt;p&gt;Not good enough.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-this-happens&quot;&gt;Why This Happens&lt;/h2&gt;
&lt;p&gt;When you upload a file into a Dataverse File column:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Dataverse creates a separate &lt;strong&gt;File record&lt;/strong&gt; behind the scenes&lt;/li&gt;
&lt;li&gt;The File column does not directly store the binary content&lt;/li&gt;
&lt;li&gt;Instead, it stores a reference (&lt;code&gt;FileId&lt;/code&gt;) to that File record&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That’s why the column doesn’t appear in &lt;strong&gt;Update a row&lt;/strong&gt; for clearing with null.&lt;/p&gt;
&lt;p&gt;To properly remove the file, you must delete the underlying File record.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-solution&quot;&gt;The Solution&lt;/h2&gt;
&lt;p&gt;My instinct told me:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“If this exists in Dataverse, there must be an action for it.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In Power Automate, that usually means checking:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Perform a bound action&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Perform an unbound action&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Since File columns are generic and not tied to a specific table type, this had to be an &lt;strong&gt;unbound action&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;After scrolling through the list…&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Unbound Actions possible&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;That is quite a list of actions...&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;That is quite a list of actions...&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;I found exactly what I needed:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;DeleteFile&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;When selecting it, the action requires one parameter:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;FileId&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And that’s the key insight.&lt;/p&gt;
&lt;p&gt;When a file is stored in a File column, the record exposes its &lt;strong&gt;FileId&lt;/strong&gt; — which you can retrieve dynamically.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;File Column in the API&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;If you pass that FileId into the &lt;code&gt;DeleteFile&lt;/code&gt; action — the file is completely removed.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;File emptied!&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Voilà 😎&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;step-by-step-deleting-a-dataverse-file-column&quot;&gt;Step-by-Step: Deleting a Dataverse File Column&lt;/h2&gt;
&lt;p&gt;1️⃣ Add &lt;strong&gt;Perform an unbound action&lt;/strong&gt;&lt;br&gt;
2️⃣ Select action: &lt;code&gt;DeleteFile&lt;/code&gt;&lt;br&gt;
3️⃣ In the &lt;strong&gt;FileId&lt;/strong&gt; parameter, pass the FileId from your record&lt;br&gt;
4️⃣ Save and test&lt;/p&gt;
&lt;p&gt;Once executed, the file content is fully removed from the column.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;important-notes&quot;&gt;Important Notes&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;This applies to &lt;strong&gt;File columns&lt;/strong&gt;, not Image columns.&lt;/li&gt;
&lt;li&gt;You must have proper permissions to delete files.&lt;/li&gt;
&lt;li&gt;Many advanced Dataverse capabilities are exposed via unbound actions — even if they’re not available in standard connector actions.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;If you ever feel stuck because something isn’t available in a standard Dataverse connector action, check the &lt;strong&gt;bound and unbound actions&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;Very often, the platform already provides a proper way to handle it — you just need to look a little deeper.&lt;/p&gt;
&lt;p&gt;While preparing this article, I tried generating an AI image to illustrate the problem. Ironically, the AI generated something very close to the solution 😅&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;AI knew the Solution&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;And I think this is important:&lt;/p&gt;
&lt;p&gt;Even if someone has written about this before, your explanation, your scenario, and your experience will help someone in a different way.&lt;/p&gt;
&lt;p&gt;If this article saves someone 30 minutes of frustration — it’s worth publishing.&lt;/p&gt;
&lt;p&gt;👉 If you need help with this kind of stuff, feel free to &lt;a href=&quot;mailto:comment@martinplopez.com&quot;&gt;send me an Email&lt;/a&gt;, . I’ll gladly try to help 😉&lt;/p&gt;</content:encoded><category>Dataverse</category><category>Power Automate</category><category>File Columns</category><category>Power Platform</category><category>Power Platform Development</category></item><item><title>Personalized Christmas Emails in Seconds with Power Automate + AI</title><link>https://martinplopez.com/writing/power-automate-ai-personalized-emails-dataverse/</link><guid isPermaLink="true">https://martinplopez.com/writing/power-automate-ai-personalized-emails-dataverse/</guid><description>Learn how to use AI prompts in Power Automate to generate personalized emails using Dataverse contact data, adding context and intelligence to your automations.</description><pubDate>Thu, 18 Dec 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;When I was a kid, I remember spending hours preparing Christmas cards by hand - paper, crayons, glitter, and a lot of patience. Writing a thoughtful message, waiting for the glue to dry, finding a stamp, and finally dropping the envelope into the school mailbox was all part of the ritual.&lt;/p&gt;
&lt;p&gt;Today, very few people send physical Christmas cards anymore. But the intention behind them hasn’t changed: letting people know we’re thinking of them and that they matter.&lt;/p&gt;
&lt;p&gt;Companies feel the same need toward their customers. They want to communicate in a way that feels personal and genuine - but when you’re dealing with hundreds or thousands of contacts, that quickly becomes a challenge. Generic email templates don’t feel special, and complex conditional logic only goes so far.&lt;/p&gt;
&lt;p&gt;This is where &lt;strong&gt;Power Automate&lt;/strong&gt; and &lt;strong&gt;Artificial Intelligence&lt;/strong&gt; come into play. By combining Dataverse data with AI-powered prompts inside a flow, it’s possible to generate highly personalized emails at scale - messages that adapt to each recipient’s context without sacrificing automation.&lt;/p&gt;
&lt;p&gt;In this article, I’ll show how you can use &lt;strong&gt;Power Automate + AI&lt;/strong&gt; to turn a single click into hundreds (or thousands) of truly personal emails.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/writing/power-automate-ai-personalized-emails-dataverse/image.gif&quot; alt=&quot;Here&amp;#x27;s a list of the messages&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-note&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;NOTE&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;With &lt;strong&gt;Power Automate&lt;/strong&gt; and the &lt;strong&gt;AI Prompt connector&lt;/strong&gt;, you can generate hundreds or thousands of highly personalized emails using Dataverse contact data - without building complex logic or templates.&lt;/p&gt;
&lt;p&gt;In this article, I’ll show how to use AI prompts inside a flow to add &lt;strong&gt;context, tone, and intelligence&lt;/strong&gt; to your email communications, while keeping everything scalable and automated.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-personalization-at-scale-problem&quot;&gt;The personalization-at-scale problem&lt;/h2&gt;
&lt;p&gt;Personalization has been a buzzword for years, but in practice it’s often reduced to little more than:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;“Hi {{FirstName}}”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The result?&lt;br&gt;
Messages are sent at scale, but they don’t &lt;em&gt;feel&lt;/em&gt; personal - and recipients notice.&lt;/p&gt;
&lt;p&gt;At the same time, writing individual emails manually simply doesn’t scale. No one has the time to craft hundreds of unique messages, even if the intent is there.&lt;/p&gt;
&lt;p&gt;What’s missing is a way to keep:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the &lt;strong&gt;efficiency of automation&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;while regaining the &lt;strong&gt;human tone and context&lt;/strong&gt; of a personal message&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;That gap is exactly where AI can add real value.&lt;/p&gt;
&lt;p&gt;If you’ve read this far, you might be thinking: &lt;em&gt;Alright Martin, but this is the third Post I read today about AI being the solution&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;I can say, yes, buuuuut probably not within &lt;strong&gt;Power Automate&lt;/strong&gt; 🙌&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;introducing-power-automate--ai-prompts&quot;&gt;Introducing: Power Automate + AI Prompts&lt;/h3&gt;
&lt;p&gt;Power Automate has always been excellent at orchestrating processes: triggering actions, retrieving data, and sending messages. What it traditionally lacked was the ability to &lt;em&gt;think&lt;/em&gt; about the content it was sending.&lt;/p&gt;
&lt;p&gt;That changes with the &lt;strong&gt;AI Prompt connector&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;By introducing AI into your flows, you can move beyond fixed templates and rules, and instead &lt;strong&gt;generate content dynamically&lt;/strong&gt;, based on real data and context.&lt;/p&gt;
&lt;p&gt;In this approach:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Dataverse&lt;/strong&gt; provides structured information about each contact&lt;br&gt;
(name, role, company, preferences, history, etc.)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Power Automate&lt;/strong&gt; controls &lt;em&gt;when&lt;/em&gt; and &lt;em&gt;to whom&lt;/em&gt; messages are sent&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;AI prompts&lt;/strong&gt; decide &lt;em&gt;how&lt;/em&gt; the message should be written&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Instead of hardcoding dozens of variations, you describe &lt;strong&gt;what kind of message you want&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;the tone (formal, friendly, festive…)&lt;/li&gt;
&lt;li&gt;the context (customer relationship, event, time of year)&lt;/li&gt;
&lt;li&gt;the key facts the AI should consider&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The AI then generates a unique message for each recipient, using the data you pass into the prompt.&lt;/p&gt;
&lt;p&gt;The result is a powerful combination:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;One flow&lt;/li&gt;
&lt;li&gt;One prompt&lt;/li&gt;
&lt;li&gt;Potentially thousands of emails
&lt;ul&gt;
&lt;li&gt;each one different, relevant, and human-sounding.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This doesn’t replace automation. It &lt;strong&gt;enhances it&lt;/strong&gt;, turning Power Automate from a message delivery engine into a personalization engine.&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-warning&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;WARNING&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Responsible use note&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;AI-generated text can be wrong or inappropriate. Consider adding approval for high-value customers, logging outputs, and avoiding sensitive attributes unless you have consent and a clear business need.&lt;/p&gt;
&lt;/div&gt;
&lt;hr&gt;
&lt;h2 id=&quot;lets-build-it&quot;&gt;Let’s build it&lt;/h2&gt;
&lt;h3 id=&quot;step-1-create-the-flow&quot;&gt;Step 1: Create the flow&lt;/h3&gt;
&lt;p&gt;For starters, I recommend creating a manually triggered Power Automate Flow with a Dataverse “List rows” action. This will allow us to control exactly when the emails are sent and to whom.&lt;/p&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Recommendations&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Rename the action to describe what it does (best practice): e.g., &lt;strong&gt;List Dataverse Contacts&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Use &lt;strong&gt;Select columns&lt;/strong&gt; for only the fields you’ll pass to the prompt&lt;/li&gt;
&lt;li&gt;Filter out contacts without an email address to avoid failures&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Filling out the Dataverse Action&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;step-2-create-the-ai-prompt&quot;&gt;Step 2: Create the AI Prompt&lt;/h3&gt;
&lt;p&gt;The next step is to select the &lt;strong&gt;Run a prompt&lt;/strong&gt; action. This lets us generate a personalized email using the Dataverse data we just retrieved&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Selecting \&amp;#x22;Run a Prompt\&amp;#x22; from Power Automate Actions&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;We’ll create a new prompt from scratch, so click on ”+ New custom prompt”, this will open a window like the following:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Editing a Custom Prompt&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;In my experience, I found very useful and straightforward to use the &amp;#x60;Get Started with Copilot (Preview)&amp;#x60; Option. It works very well to give you a draft&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;In my experience, I found very useful and straightforward to use the `Get Started with Copilot (Preview)` Option. It works very well to give you a draft&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Here my final version of my prompt, so you can feel free to use it:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;You are tasked with composing personalized Christmas email based on provided contact information.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;The email should be tailored to each individual using their first name, last name, birthdate, gender, and country.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Additionally, the email content must be translated appropriately to match the language or cultural context of the recipient’s country.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;### Instructions:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;1. **Personalization:**&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   - Use the first name and last name to address the recipient warmly and personally.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   - Optionally, incorporate a friendly mention of their birthdate if relevant and appropriate.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;2. **Cultural Sensitivity:**&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   - Adapt the tone and style of the Christmas greeting to suit the cultural norms of the recipient’s country.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;3. **Translation:**&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   - Translate the entire email content into the primary language of the recipient’s country.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   - Ensure the translation preserves the warmth and festive spirit of the original message.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;4. **Email Content:**&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   - Include a warm Christmas greeting.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   - Optionally, add a positive, festive message or wish for the upcoming year (2026).&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;5. **Output:**&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;   - Provide the personalized and translated email text.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;### Guidelines:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;- Do not assume the language of the country without verification; use common language associations (e.g., Spain → Spanish, France → French).&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;- Keep the message respectful, warm, and festive.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;- Avoid overly formal or informal language unless culturally appropriate.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;- Extract all personalization details strictly from the provided contact info.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;- Add a Signature of Martin P Lopez&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;### Output Format:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Output the personalized Christmas email in json format:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;example:&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&quot;subject&quot;:&quot;&quot;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&quot;email&quot;:&quot;&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Include a Subject for the Email in the subject and the email content in html in the email.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Provide the contact information here: &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;firstname: {{firstname}}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;lastname:  {{lastname}}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;birthdate:  {{birthdate}}   &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;gender:  {{gender}}&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;country:  {{country}}  &lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&quot;markdown-alert markdown-alert-tip&quot; dir=&quot;auto&quot;&gt;
&lt;p class=&quot;markdown-alert-title&quot; dir=&quot;auto&quot;&gt;&lt;svg class=&quot;octicon&quot; viewBox=&quot;0 0 16 16&quot; width=&quot;16&quot; height=&quot;16&quot; aria-hidden=&quot;true&quot;&gt;&lt;path d=&quot;M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z&quot;&gt;&lt;/path&gt;&lt;/svg&gt;TIP&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Notes regarding the prompt&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Feel free to edit the prompt as you need, this prompt should be used as reference.&lt;/li&gt;
&lt;li&gt;I used the cultural sensitivity, translation and output instructions as I provide different Countries of reference&lt;/li&gt;
&lt;li&gt;In the email content I found problems when you don’t indicate the coming year, so I recommend adding it&lt;/li&gt;
&lt;li&gt;In the Guidelines I indicated to add my signature, that worked very nicely for all languages&lt;/li&gt;
&lt;li&gt;I find very useful to have an output in JSON so you can have the subject and body of the email as output&lt;/li&gt;
&lt;li&gt;In the last part, the dynamic contents are added. They’re a normal text contents, we provide the data from Dataverse afterwards.&lt;/li&gt;
&lt;li&gt;My recommendation is to give a clear name of the function to the prompt as a best practice&lt;/li&gt;
&lt;li&gt;The Output in HTML is to ensure the Email is formatted correctly with spacing.&lt;/li&gt;
&lt;li&gt;For better results I recommend the ChatGPT 4.1 Model instead of the Mini, it will improve the result a lot.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;p&gt;Once we’re done, we save the prompt and we can map the variables with the data from Dataverse:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Mapping the variables with Dataverse&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;For the gender I use the &amp;#x60;item()?[&amp;#x27;gendercode@OData.Community.Display.V1.FormattedValue&amp;#x27;]&amp;#x60; expression, as by default it will give you 1 or 2 as value&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;For the gender I use the `item()?[&apos;gendercode@OData.Community.Display.V1.FormattedValue&apos;]` expression, as by default it will give you 1 or 2 as value&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Power Automate will automatically wrap the prompt and email actions in an &lt;code&gt;Apply to each&lt;/code&gt; loop over the returned contacts.&lt;/p&gt;
&lt;h3 id=&quot;step-3-send-the-email&quot;&gt;Step 3: Send the Email&lt;/h3&gt;
&lt;p&gt;Now add the Outlook action to send the emails. Map the prompt output (subject and email) to the email subject and body, and use the contact’s email address from Dataverse as the recipient. The flow should be ready!&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Setting up the Email Part&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Be mindful, that the &amp;#x60;Send an Email (V2)&amp;#x60; Action will send all the emails directly, if you prefer to review them before sending, I recommend the &amp;#x60;Draft an email message&amp;#x60; Action&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Be mindful, that the `Send an Email (V2)` Action will send all the emails directly, if you prefer to review them before sending, I recommend the `Draft an email message` Action&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;I really like this solution, it’s simple, easy to implement and gives many extension possibilities:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Send everything dynamically uploading an Excel of contacts to a SharePoint site&lt;/li&gt;
&lt;li&gt;Connect and expand with Dynamics Customer Insights Journeys&lt;/li&gt;
&lt;li&gt;Adapt it to be more personal in your marketing strategy, for example by sending Event follow-ups, VIP customer outreach or targeted campaigns&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This opens up a lot of possibilities and creates a super-powered version of Power Automate. I’m excited about what’s coming in 2026…😊&lt;/p&gt;
&lt;p&gt;How about you? You think this combination has other possibilities, I’d love to read them! 😉 &lt;a href=&quot;mailto:comment@martinplopez.com&quot;&gt;email me&lt;/a&gt; or tag me on LinkedIn!&lt;/p&gt;</content:encoded><category>Power Platform</category><category>Artificial Intelligence</category><category>Power Platform Development</category><category>Power Automate</category><category>Copilot</category></item><item><title>Don’t Waste Your Thank-You Page: Use Dynamic Data to Drive Next-Step Actions</title><link>https://martinplopez.com/writing/dynamic-thank-you-page-dynamics-365/</link><guid isPermaLink="true">https://martinplopez.com/writing/dynamic-thank-you-page-dynamics-365/</guid><description>Learn how to turn your thank-you page into a high-value engagement tool using dynamic form data in Dynamics 365 Customer Insights - Journeys.</description><pubDate>Wed, 26 Nov 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;If you’ve worked with &lt;strong&gt;Dynamics 365 Customer Insights Journeys&lt;/strong&gt;, you’ve probably noticed that the default form submission  experience - a simple logo and “Thank you” message - often feels underwhelming for users.&lt;/p&gt;
&lt;p&gt;You’re not alone 😁 Many teams want something more engaging, more branded, and more helpful than the out-of-the-box version. Luckily, Dynamics 365 allows you to redirect users to a custom thank-you page, giving you full control over design and content.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;BEFORE&lt;/strong&gt;:
&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Out of the Box Thank You Message&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;
&lt;strong&gt;AFTER&lt;/strong&gt;:
&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image9.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Custom Thank You Message&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;In this article, we’ll walk through how to quickly create a personalized, dynamic thank-you page - including how to pass form submission data using &lt;code&gt;sessionStorage&lt;/code&gt; so you can greet each user with relevant information right after they hit submit.&lt;/p&gt;
&lt;p&gt;This idea (using sessionStorage) comes from an article by the great Megan V Walker, worth a read if this topic interests you 👉 &lt;a href=&quot;https://meganvwalker.com/session-registration-confirmation-page/&quot;&gt;Format Session Registration Confirmation Page On Your Own Domain&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;br&gt;
Dynamics 365 CI Journeys lets you redirect form submissions to a custom thank-you page.&lt;br&gt;
By saving form data into &lt;code&gt;sessionStorage&lt;/code&gt; during &lt;code&gt;onsubmit&lt;/code&gt;, you can create a fully personalized thank-you experience that updates instantly - no server calls needed.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id=&quot;step-1-build-your-custom-thank-you-page&quot;&gt;Step 1: Build Your Custom Thank-You Page&lt;/h2&gt;
&lt;p&gt;We’ll continue with the example page I created in Power Pages &lt;a href=&quot;../build-event-website-power-pages-dynamics-365/&quot;&gt;in my previous article&lt;/a&gt;. And as we are using Power Pages, we’ll keep it simple and click on &lt;strong&gt;+ Page&lt;/strong&gt; in our Website editor.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Vibe Creating a Thank You Page&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;This will open a Copilot option, which I had tried out by writing &amp;#x60;Make a Thank You Page to redirect to when a user submits for an event&amp;#x60;&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;This will open a Copilot option, which I had tried out by writing `Make a Thank You Page to redirect to when a user submits for an event`&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The Result is definitely not bad 😎&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Thank You Page from Copilot&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Now let’s customize it.&lt;/p&gt;
&lt;h3 id=&quot;add-dynamic-placeholders&quot;&gt;Add dynamic placeholders&lt;/h3&gt;
&lt;p&gt;Open &lt;strong&gt;Edit Code&lt;/strong&gt;, then we can modify our &lt;code&gt;h1&lt;/code&gt; and &lt;code&gt;h3&lt;/code&gt; tags to add a &lt;code&gt;span&lt;/code&gt; tag which we’ll change dynamically. Here is my Page:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;html&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-component-theme&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;portalThemeColor8&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;row sectionBlockLayout&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;padding: 8px; margin: 0px; display: flex; flex-wrap: wrap; min-height: 60vh; background-image: url(&quot;/Event-2.jpg&quot;); background-position: center center; background-repeat: no-repeat; background-size: cover;&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;container&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;col-md-12 columnBlockLayout&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;min-width: 250px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; margin: 120px 0px;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;text-align: center; color: #ffffff; text-shadow: 2px 2px 4px rgba(0,0,0,0.7);&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Thank You, &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-form-field&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;firstname&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;there!&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;h1&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;h3&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;text-align: center; color: #ffffff; text-shadow: 1px 1px 3px rgba(0,0,0,0.6);&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Your registration for the &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-form-field&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;event&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;event&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt; was successful.&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;h3&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-component-theme&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;portalThemeColor&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;row sectionBlockLayout&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;margin: 0px; display: flex; flex-wrap: wrap; min-height: auto; padding: 40px 0px;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;container&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;col-lg-12 columnBlockLayout&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;min-width: 250px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;h2&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;What Happens Next?&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;h2&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;We have sent a confirmation email with all the event details to your inbox. Please check your email and add the event to your calendar.&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; onclick&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;window&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;location&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;href&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;/&apos;&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; type&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;button&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; value&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;/&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;button1&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; style&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;width: fit-content;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;Return to Homepage&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;button&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;add-script-to-update-the-placeholders&quot;&gt;Add script to update the placeholders&lt;/h3&gt;
&lt;p&gt;Open the &lt;code&gt;*.customjs.js&lt;/code&gt; of the newly created Thank You Page and paste the following javascript that will substitute the dynamic value of page for the variables we will save in the session storage when we submit the form:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;js&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;document.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;DOMContentLoaded&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; () {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;  populateThankYouPageFromSession&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  function&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; populateThankYouPageFromSession&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt;options&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; config&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; Object.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;assign&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        storageKey: &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;ciFormData&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        clearAfterUse: &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;true&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      },&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      options&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    );&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; raw&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; sessionStorage.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;getItem&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(config.storageKey);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;raw) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      console.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;warn&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;No form data found in sessionStorage under key:&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, config.storageKey);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;      return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    let&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; formData;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    try&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      formData &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; JSON&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;parse&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(raw);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    } &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;catch&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (error) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      console.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;error&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;Could not parse form data from sessionStorage:&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, error);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;      return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; boundElements&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; document.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;querySelectorAll&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;[data-form-field]&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    boundElements.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;forEach&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt;el&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;      const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; fieldName&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; el.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;getAttribute&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;data-form-field&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;      if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;fieldName) &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;      const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; value&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; formData[fieldName];&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;      if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (value &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;===&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; undefined&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; value &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;===&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; value &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;===&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &apos;&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;      if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (el.tagName &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;===&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &apos;INPUT&apos;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; ||&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; el.tagName &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;===&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &apos;TEXTAREA&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        el.value &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; value;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      } &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        el.textContent &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; value;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (config.clearAfterUse) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      sessionStorage.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;removeItem&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(config.storageKey);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Your page should look like this:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image7.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;VSCode for Power Pages&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;step-2-configure-the-form-in-customer-insights-journeys&quot;&gt;Step 2: Configure the Form in Customer Insights Journeys&lt;/h2&gt;
&lt;h3 id=&quot;enable-redirect&quot;&gt;Enable Redirect&lt;/h3&gt;
&lt;p&gt;Open your event form in CI Journeys and set:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Post submission action:&lt;/strong&gt; Redirect&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Redirect URL:&lt;/strong&gt; full URL of your new thank-you page&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image8.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Edit Form in Customer Insights Journeys&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;⚠️ If your thank-you page is on a &lt;em&gt;different domain&lt;/em&gt; than your form, &lt;code&gt;sessionStorage&lt;/code&gt; will not persist.&lt;br&gt;
Use &lt;strong&gt;localStorage&lt;/strong&gt; instead if needed.&lt;/p&gt;
&lt;h3 id=&quot;save-form-values-into-session-storage&quot;&gt;Save form values into session storage&lt;/h3&gt;
&lt;p&gt;Edit the HTML of your form and paste the script &lt;em&gt;after the closing &lt;code&gt;&amp;#x3C;/style&gt;&lt;/code&gt; tag&lt;/em&gt;:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;html&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  document.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;d365mkt-afterformsubmit&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; detail&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; event.detail &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;||&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {};&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; payload&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; detail.payload &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;||&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {};&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; eventTitle&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      document.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;querySelector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;h1 .msdynmkt_personalization&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)?.textContent?.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;trim&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;() &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;||&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; firstname&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      payload.firstname &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;||&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      document.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;querySelector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;input[name=&quot;firstname&quot;]&apos;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)?.value &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;||&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;      &quot;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; formData&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      firstname,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      event: eventTitle&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    };&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    sessionStorage.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;setItem&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;ciFormData&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;JSON&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;stringify&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(formData));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After adding this script is the moment of the truth, cross your fingers, go to your registration page, fill it out and…&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img src=&quot;/writing/dynamic-thank-you-page-dynamics-365/image1.gif&quot; alt=&quot;That&amp;#x27;s a success!&quot; title=&quot;Now you have a fully dynamic, branded thank-you experience! 😊&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Now you have a fully dynamic, branded thank-you experience! 😊&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;csp-configuration-power-pages-only&quot;&gt;CSP Configuration (Power Pages Only)&lt;/h2&gt;
&lt;p&gt;If the page redirects correctly &lt;strong&gt;but does not show the dynamic data&lt;/strong&gt;, Power Pages may be blocking inline scripts.&lt;/p&gt;
&lt;p&gt;In order to solve this, we can adjust our power pages by allowing this, I found a perfect article for this 👉 &lt;a href=&quot;https://michelcarlo.com/2024/11/23/power-pages-csp-starter-settings/&quot;&gt;Power Pages CSP: Starter Settings&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Add this to your CSP settings:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;plaintext&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;script-src &apos;self&apos; &apos;unsafe-eval&apos; &apos;unsafe-inline&apos; https://*.microsoft.com content.powerapps.com https://*.azureedge.net;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image10.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Setup the CSP&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Here we can see the example of how to configure it, as the article says, you can create or edit it.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Here we can see the example of how to configure it, as the article says, you can create or edit it.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Upgrading your thank-you page from the out-of-the-box message to a dynamic, branded experience is a small change with a big impact.&lt;/p&gt;
&lt;p&gt;By capturing values in &lt;code&gt;sessionStorage&lt;/code&gt; during submission and injecting them into Power Pages, you can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Personalize the confirmation&lt;/li&gt;
&lt;li&gt;Reinforce your brand&lt;/li&gt;
&lt;li&gt;Guide users to meaningful next steps&lt;/li&gt;
&lt;li&gt;Reuse this pattern across all CI Journeys forms&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It’s a lightweight technique that dramatically improves user experience and makes your event flows feel more polished and intentional.&lt;/p&gt;
&lt;p&gt;If you try it out, I’d love to hear how it worked for you, &lt;a href=&quot;mailto:comment@martinplopez.com&quot;&gt;email me&lt;/a&gt; or tag me on LinkedIn!&lt;/p&gt;</content:encoded><category>Power Platform</category><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Power Platform Development</category><category>Power Pages</category></item><item><title>Build a Branded Event Website in 20 Minutes with Power Pages and Dynamics 365 Customer Insights – Journeys</title><link>https://martinplopez.com/writing/build-event-website-power-pages-dynamics-365/</link><guid isPermaLink="true">https://martinplopez.com/writing/build-event-website-power-pages-dynamics-365/</guid><description>Learn how to quickly build a live, branded event website using Microsoft Power Pages and Dynamics 365 Customer Insights – Journeys. No code, just results.</description><pubDate>Sun, 09 Nov 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Some years ago, I was responsible for two Power Pages sites (at that time called Dynamics Portals) that were connected to Dynamics 365 Customer Insights – Journeys (back then: Dynamics 365 Marketing). At that time, adapting and branding an event portal was… painful. It took a lot of effort to get something that looked good and felt on-brand.&lt;/p&gt;
&lt;p&gt;Fast forward to today: after a few renames and a &lt;strong&gt;lot&lt;/strong&gt; of updates, Microsoft has evolved these tools to the point where I was able to set up a portal, brand it, and connect it to my Dynamics 365 Customer Insights – Journeys environment in as little as &lt;strong&gt;20 minutes&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The best part? After a bit of experimenting, I realized you can do this mostly by &lt;strong&gt;customizing and copying a code snippet&lt;/strong&gt; — no deep coding skills needed.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img src=&quot;/writing/build-event-website-power-pages-dynamics-365/image1.gif&quot; alt=&quot;Responsive event page demo&quot; title=&quot;The Webpage is responsive and people can register to events easily&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;The Webpage is responsive and people can register to events easily&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;I decided to put together this guide for you, so you can also set up your &lt;strong&gt;branded event website with no code knowledge needed&lt;/strong&gt;. 😊&lt;/p&gt;
&lt;p&gt;I’m basing this on Microsoft’s guide:&lt;br&gt;
&lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/event-portal-template&quot;&gt;Build an event registration portal with Power Pages&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;…but I had to fight a bit with the tools to understand what’s the &lt;strong&gt;quickest and least painful way&lt;/strong&gt; of setting things up. This article is that shortcut.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Use the &lt;strong&gt;Event portal template&lt;/strong&gt; in Power Pages.&lt;/li&gt;
&lt;li&gt;Quickly brand the &lt;strong&gt;hero, header and footer&lt;/strong&gt; with your logo and imagery.&lt;/li&gt;
&lt;li&gt;Replace the default registration logic with the &lt;strong&gt;embedded form snippet&lt;/strong&gt; from Customer Insights – Journeys.&lt;/li&gt;
&lt;li&gt;In CIJ, add your &lt;strong&gt;domain&lt;/strong&gt; and &lt;strong&gt;Power Pages website&lt;/strong&gt; under Event Management.&lt;/li&gt;
&lt;li&gt;Create an event, point it to your portal and publish — your branded event page is live. 🚀&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id=&quot;what-will-you-need&quot;&gt;What will you need?&lt;/h2&gt;
&lt;p&gt;For this use case, if you want to do it in record time, we have to be prepared beforehand, so I advice you to have the following prepared:&lt;/p&gt;
&lt;ul class=&quot;contains-task-list&quot;&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; checked disabled&gt; Logo of your company (without background works even better, I’m using a png)&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; checked disabled&gt; A cover picture that will match with your company Branding&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; checked disabled&gt; The name of your Company and a Heading Text&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; checked disabled&gt; A license of Powerapps (One can start with a Trial license and convert it in a production license)&lt;/li&gt;
&lt;li class=&quot;task-list-item&quot;&gt;&lt;input type=&quot;checkbox&quot; disabled&gt; An Omega Speedmaster or Rolex Daytona to measure your speed (optional — the clock app on your computer works just as well 😁)&lt;/li&gt;
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Important:&lt;/strong&gt; This guide is accurate &amp;#x26; working at date of publishing&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-to-build-it&quot;&gt;How to build it&lt;/h2&gt;
&lt;p&gt;To achieve this in record time, we’ll divide the process into two parts:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Set up Power Pages&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Set up Dynamics 365 Customer Insights – Journeys&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;h2 id=&quot;1-set-up-power-pages&quot;&gt;1. Set up Power Pages&lt;/h2&gt;
&lt;h3 id=&quot;create-the-site&quot;&gt;Create the site&lt;/h3&gt;
&lt;p&gt;Start at &lt;a href=&quot;https://make.powerpages.microsoft.com/&quot;&gt;Power Pages Get Started&lt;/a&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Select the correct &lt;strong&gt;environment&lt;/strong&gt; in the top-right corner.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Start with a template&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Select a template.&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Find an Event Portal template in Dynamics 365 and select &amp;#x27;Choose this template&amp;#x27;&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Find an Event Portal template in Dynamics 365 and select &apos;Choose this template&apos;&lt;/figcaption&gt;&lt;/figure&gt;
&lt;ol start=&quot;3&quot;&gt;
&lt;li&gt;Give your site a &lt;strong&gt;name&lt;/strong&gt; and set the &lt;strong&gt;language&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Done&lt;/strong&gt; in the bottom-right corner.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You can change the web address later to use your own domain name. If that’s interesting for you, I’ll write a separate article on how to do it.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Template provisioning&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;It takes a few minutes to get your site ready. When it finishes, it redirects you to the home page to edit.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;It takes a few minutes to get your site ready. When it finishes, it redirects you to the home page to edit.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr&gt;
&lt;h3 id=&quot;substitute-heading-cover-and-logos&quot;&gt;Substitute heading, cover, and logos&lt;/h3&gt;
&lt;p&gt;Now we have our website ready, but at first you might see something like this:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Something doesn&amp;#x27;t look right...&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Give the page a refresh (Ctrl + F5 is even better) and you should see something like this:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Now it does :)&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Here we can click on **Edit background** to change the cover picture to match our company branding.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Here we can click on **Edit background** to change the cover picture to match our company branding.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Click &lt;strong&gt;Edit background&lt;/strong&gt; to change the hero image. You can &lt;strong&gt;Upload Image&lt;/strong&gt; and reuse that image later on other pages.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Also possible to choose a fill color&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;You can click on the &lt;strong&gt;title text&lt;/strong&gt; in the hero area to edit it. This is where you tell visitors what this site is about:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image7.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Welcome!&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Scroll down to the footer. There, click on the &lt;strong&gt;Contoso&lt;/strong&gt; logo (the standard logo) and change it to your own:&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image8.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Upload your logo without background if possible&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;If the logo is too tall (like it was for me), you can adjust the width to whatever feels appropriate — the layout will adjust automatically while maintaining the aspect ratio.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image9.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;No button to save, just click on the screen&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;For the header, I found it easier to change the logo and site name via &lt;strong&gt;Edit code&lt;/strong&gt;, because changing it only in the designer wasn’t reliable at the time of writing. This might be improved by Microsoft later, but here’s the workaround.&lt;/p&gt;
&lt;p&gt;Click &lt;strong&gt;Edit code&lt;/strong&gt;:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image10.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;We will change only names, not code&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;From the next stage, click on **Open Visual Studio Code** and a new tab will open.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;From the next stage, click on **Open Visual Studio Code** and a new tab will open.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;In Visual Studio Code, open the &lt;strong&gt;content snippets&lt;/strong&gt; folder. There you’ll find:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Logo URL&lt;/strong&gt; (2)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Site name&lt;/strong&gt; (3)&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image11.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Make sure to save (Ctrl+S)&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;In &amp;#x27;Site name&amp;#x27; you define the text displayed in the header.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;In &apos;Site name&apos; you define the text displayed in the header.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;In &lt;strong&gt;Logo URL&lt;/strong&gt;, set the file name of the logo you uploaded (after the &lt;code&gt;\&lt;/code&gt;). For example:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image12.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Make sure to save (Ctrl+S)&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Update the Logo URL with the name of your uploaded logo file and the Site name with your company name.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Update the Logo URL with the name of your uploaded logo file and the Site name with your company name.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Save (Ctrl+S) and refresh your portal.&lt;/p&gt;
&lt;p&gt;Now you have a &lt;strong&gt;nicely branded page&lt;/strong&gt;!&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;adapt-home-cards-to-events&quot;&gt;Adapt home cards to events&lt;/h3&gt;
&lt;p&gt;Back in the &lt;strong&gt;Power Pages designer&lt;/strong&gt;, you can adapt the cards on the home page to display your event information.&lt;/p&gt;
&lt;p&gt;You can:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Choose a different &lt;strong&gt;layout&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Select which &lt;strong&gt;event fields&lt;/strong&gt; to display&lt;/li&gt;
&lt;li&gt;Adjust the list to show only &lt;strong&gt;upcoming&lt;/strong&gt; events&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image17.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Very easy and straightforward&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;This is where you turn the template into &lt;strong&gt;your&lt;/strong&gt; event showcase.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;make-the-portal-public&quot;&gt;Make the portal public&lt;/h3&gt;
&lt;p&gt;When the portal is ready to go public:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to the top of the designer and click on the &lt;strong&gt;site title&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Select &lt;strong&gt;Manage site visibility&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image18.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;It can be private or public&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Choose &lt;strong&gt;Public&lt;/strong&gt; and confirm. This will allow people (outside your organization) to access the site and register for your events.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image19.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Set it when you want to make your portal public&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;2-set-up-the-portal-in-dynamics-365-customer-insights--journeys&quot;&gt;2. Set up the portal in Dynamics 365 Customer Insights – Journeys&lt;/h2&gt;
&lt;p&gt;We also need a bit of setup on the Dynamics side to connect your new Power Pages site to &lt;strong&gt;Events&lt;/strong&gt; in Customer Insights – Journeys.&lt;/p&gt;
&lt;h3 id=&quot;add-the-domain&quot;&gt;Add the domain&lt;/h3&gt;
&lt;p&gt;We need to validate our domain for external form hosting. This is required so the forms from Customer Insights – Journeys can load in a registered domain.&lt;/p&gt;
&lt;p&gt;The good news: you don’t need to touch DNS or add records manually.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In Customer Insights – Journeys, go to &lt;strong&gt;Settings → Domains&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Create a &lt;strong&gt;new domain&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In the form that opens, provide your &lt;strong&gt;Power Pages URL&lt;/strong&gt; (the site you just created).&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you’re unsure about the URL, go back to the Power Pages designer and click &lt;strong&gt;Preview&lt;/strong&gt; in the top-right corner — copy that URL.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image20.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Fill the URL in this format&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Make sure you only check **External form validation**. This will get approved almost instantly.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Make sure you only check **External form validation**. This will get approved almost instantly.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Click &lt;strong&gt;Next&lt;/strong&gt;, then &lt;strong&gt;Verify&lt;/strong&gt;, then &lt;strong&gt;Done&lt;/strong&gt;. This should be automatic because the host of this webpage is Microsoft.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;add-the-power-pages-website&quot;&gt;Add the Power Pages website&lt;/h3&gt;
&lt;p&gt;Now we’ll link the website itself.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;strong&gt;Settings&lt;/strong&gt; again.&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Event management&lt;/strong&gt;, open &lt;strong&gt;Power Pages websites&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Add your newly created site.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image21.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Fill the URL in this format&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Include in the Registration page URL the portal URL plus the path &amp;#x27;/Register-to-Event&amp;#x27;. Use this screenshot as an example.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Include in the Registration page URL the portal URL plus the path &apos;/Register-to-Event&apos;. Use this screenshot as an example.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Make sure the &lt;strong&gt;Registration page URL&lt;/strong&gt; points to your Power Pages site plus &lt;code&gt;/Register-to-Event&lt;/code&gt;.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;create-an-event-and-publish-it-to-the-power-page&quot;&gt;Create an event and publish it to the Power Page&lt;/h3&gt;
&lt;p&gt;Now for the fun part — try creating an event.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Create a new &lt;strong&gt;Event&lt;/strong&gt; in Customer Insights – Journeys.&lt;/li&gt;
&lt;li&gt;When it’s ready, in &lt;strong&gt;Where do you want attendees to register for this event?&lt;/strong&gt;, select &lt;strong&gt;Event portal using Power Pages&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;If it doesn’t automatically select your portal, choose it manually from the lookup.&lt;/li&gt;
&lt;/ol&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image22.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;It will autofill if it&amp;#x27;s the default portal&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;When everything is filled out, publish the event. You’ll get a registration URL on your newly created portal.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;When everything is filled out, publish the event. You’ll get a registration URL on your newly created portal.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Publish the event.&lt;/p&gt;
&lt;p&gt;You’ll now get a &lt;strong&gt;registration URL&lt;/strong&gt; that points to your new branded Power Pages portal.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;You should now have:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;branded portal&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Showing &lt;strong&gt;events&lt;/strong&gt; you publish in Dynamics 365 Customer Insights – Journeys&lt;/li&gt;
&lt;li&gt;With a &lt;strong&gt;working registration form&lt;/strong&gt; embedded directly from CIJ&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;All ready for real visitors and registrations.&lt;/p&gt;
&lt;p&gt;I highly recommend you try it out in a &lt;strong&gt;test event&lt;/strong&gt; first:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Publish a couple of events&lt;/li&gt;
&lt;li&gt;Register as a test attendee&lt;/li&gt;
&lt;li&gt;Confirm the registration and check that the data lands correctly in Customer Insights – Journeys&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;While preparing this article, I timed myself. The quickest I managed to set everything up was &lt;strong&gt;15 minutes and 14 seconds&lt;/strong&gt;. ⏱️&lt;/p&gt;
&lt;p&gt;Do you think you can beat that?&lt;br&gt;
Try to set it up yourself — I’d love to hear your times! 😁&lt;/p&gt;
&lt;p&gt;👉 &lt;a href=&quot;mailto:comment@martinplopez.com&quot;&gt;Email me your time or any questions&lt;/a&gt;, and feel free to tag me on LinkedIn so we can turn this into the &lt;strong&gt;fastest “time-to-live” event portal&lt;/strong&gt; scenario in Microsoft’s ecosystem.&lt;/p&gt;</content:encoded><category>Power Platform</category><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Power Pages</category><category>Power Platform Development</category></item><item><title>How Solution Health Hub Prevents Downtime in Dynamics 365 Customer Insights Journeys</title><link>https://martinplopez.com/writing/solution-health-hub-customer-insights-journeys/</link><guid isPermaLink="true">https://martinplopez.com/writing/solution-health-hub-customer-insights-journeys/</guid><description>Discover how the Solution Health Hub prevents downtime in Dynamics 365 Customer Insights Journeys by auto-fixing common errors before they impact campaigns.</description><pubDate>Sun, 26 Oct 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Have you ever had a journey that suddenly stops triggering? You could swear it worked yesterday, but now it isn’t firing when it should.
Maybe you experienced trying to publish a form or a journey and it’s taking forever until it gives you an error that doesn’t give you much information…&lt;/p&gt;
&lt;p&gt;I have to admit, I was once (or twice) where you were (or are) and invested time to debug what was happening. Luckily, I got help from Microsoft engineers who recommended this solution—so I’m sharing it with as many people as possible. 😊&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;What it is:&lt;/strong&gt; an app in your Dynamics 365 environment that automatically checks the health of installed solutions—including &lt;strong&gt;Customer Insights – Journeys&lt;/strong&gt;—and provides &lt;strong&gt;targeted, one-click fixes&lt;/strong&gt; for common issues. In this post I’ll show you how I use it.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;br&gt;
If journeys stop triggering or publishing fails with unhelpful errors, use the &lt;strong&gt;Solution Health Hub&lt;/strong&gt;. Create a &lt;strong&gt;Marketing Rule Set&lt;/strong&gt; analysis job, let it run (~2 minutes), then click &lt;strong&gt;Resolve&lt;/strong&gt; on failed checks. Re-run until all results are &lt;strong&gt;Pass&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id=&quot;common-problems-and-why-they-happen&quot;&gt;Common problems (and why they happen)&lt;/h2&gt;
&lt;p&gt;I mentioned a few scenarios in the introduction that I’ve solved with Solution Health Hub. Other common problems include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;A real-time trigger stopped working, with no visible error.&lt;/li&gt;
&lt;li&gt;An upgrade fails because background processes are owned by disabled users.&lt;/li&gt;
&lt;li&gt;SMS/push don’t go out because a required security role/profile is missing.&lt;/li&gt;
&lt;li&gt;Journeys configuration records went missing after partial uninstalls/installs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you read until here you might be asking yourself: &lt;em&gt;Ok, I have these problems and you’re gonna help me solve them, but why does that happen?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Why this happens:&lt;/strong&gt; Customer Insights – Journeys has many moving parts (plugins, background processes, application users, roles). If &lt;strong&gt;one dependency is missing or misconfigured&lt;/strong&gt;, the whole publishing/triggering pipeline can stall. Common root causes include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Plugin steps or background workflows/flows disabled during imports, upgrades, or cleanups.&lt;/li&gt;
&lt;li&gt;Owners of critical processes are &lt;strong&gt;disabled users&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Key configuration entities missing after partial uninstalls or failed installs.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;MarketingServices&lt;/strong&gt; app user or roles lack required permissions.&lt;/li&gt;
&lt;li&gt;Direct customizations to OOB components conflicting with managed updates.&lt;/li&gt;
&lt;li&gt;Dataverse hiccups (throttling/network) leaving components partially applied.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;h2 id=&quot;how-to-use-the-solution-health-hub&quot;&gt;How to use the Solution Health Hub&lt;/h2&gt;
&lt;p&gt;Open the app, create a new analysis job, let it run (≈2 minutes), then review the results and click Resolve where checks failed—easy, right? 😎&lt;/p&gt;
&lt;p&gt;I will summarize the most important points in the article, but I’m basing myself in the Documentation provided by Microsoft in this Article 👉 &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/troubleshoot-marketing-solution-health&quot;&gt;Troubleshoot issues with Solution Health Hub for Customer Insights – Journeys&lt;/a&gt;&lt;/p&gt;
&lt;h3 id=&quot;1-create-a-new-analysis-job&quot;&gt;1) Create a new analysis job&lt;/h3&gt;
&lt;p&gt;In the app, the default view is Analysis Jobs. Click New, then in the dialog select Marketing Rule Set and click OK.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/media/troubleshoot-solution-health-marketing-rules.png&quot; alt=&quot;Image from Microsoft Learn&quot;&gt;&lt;/p&gt;
&lt;p&gt;Once created, it will automatically open the Analysis Job that you just created with status Running. In about 2 minutes (up to ~5 minutes on the first run) it should complete and display results.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/media/troubleshoot-solution-health-fs-rules-analysis.png&quot; alt=&quot;Image from Microsoft Learn&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;2-go-over-the-results-and-resolve-failures&quot;&gt;2) Go Over the results and resolve failures&lt;/h3&gt;
&lt;p&gt;Once completed, scroll to the subgrid at the bottom and review the Return Status column:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/media/troubleshoot-solution-health-resolve.png&quot; alt=&quot;Image from Microsoft Learn&quot;&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;For any row with &lt;strong&gt;Fail&lt;/strong&gt;, select it and click &lt;strong&gt;Resolve&lt;/strong&gt; on the ribbon.&lt;/li&gt;
&lt;li&gt;Confirm in the dialog (&lt;strong&gt;OK&lt;/strong&gt;).&lt;/li&gt;
&lt;li&gt;You’ll see &lt;strong&gt;Resolution is in progress&lt;/strong&gt; → then &lt;strong&gt;Resolution is completed&lt;/strong&gt;. 🎉&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;⚠️ &lt;strong&gt;Important:&lt;/strong&gt; run the &lt;strong&gt;analysis job again&lt;/strong&gt; to confirm everything turns &lt;strong&gt;Pass&lt;/strong&gt;. I’ve had Microsoft engineers explicitly ask for a second pass to be sure.&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;recommendations-and-tips&quot;&gt;Recommendations and Tips&lt;/h3&gt;
&lt;p&gt;✅ Run Solution Health Hub &lt;strong&gt;before and after upgrades&lt;/strong&gt;.&lt;br&gt;
✅ Re-run the analysis until &lt;strong&gt;all checks = Pass&lt;/strong&gt;.&lt;br&gt;
✅ If &lt;strong&gt;Resolve&lt;/strong&gt; isn’t available for &lt;em&gt;CheckIfProcessesOwnedByDisabledUsers&lt;/em&gt;, open the analysis result → review &lt;strong&gt;Failing Records&lt;/strong&gt; → reassign those processes to a system/admin user.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Permissions:&lt;/strong&gt; You’ll generally need &lt;strong&gt;System Administrator&lt;/strong&gt; (or similar admin privileges) to run/resolve across environments.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚠️ Customization Warning&lt;/strong&gt;&lt;br&gt;
If you customized &lt;strong&gt;out-of-box components&lt;/strong&gt;, Solution Health Hub resolutions may &lt;strong&gt;reapply the Microsoft baseline&lt;/strong&gt; to the active layer, which can overwrite your changes.&lt;br&gt;
&lt;strong&gt;Recommendation:&lt;/strong&gt; avoid altering OOB components directly; use &lt;strong&gt;custom components&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;Downtime in Customer Insights – Journeys is not normally caused by you doing something wrong. It’s the complexity of dependencies. As we saw above, a single missing permission, disabled step, or orphaned owner can halt triggers and publishing.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Solution Health Hub&lt;/strong&gt; is your built-in first-aid kit: it diagnoses, explains, and often &lt;strong&gt;auto-fixes&lt;/strong&gt; issues before they become lost campaigns or late-night fire drills. After you use it a few times, you’ll wonder why you ever debugged this manually.&lt;/p&gt;
&lt;p&gt;👉 &lt;strong&gt;Next step:&lt;/strong&gt; run a &lt;strong&gt;Marketing Rule Set&lt;/strong&gt; analysis in your environment. Even if everything is green, you’ll have the peace of mind that your system sits on a healthy baseline—and you’ll know exactly where to look if something breaks.&lt;/p&gt;
&lt;p&gt;Have you already used the Solution Health Hub in your projects? I’d love to hear your experiences — &lt;a href=&quot;mailto:comment@martinplopez.com&quot;&gt;email me a comment&lt;/a&gt;, tag me on LinkedIn so we can help more teams keep &lt;strong&gt;Customer Insights – Journeys&lt;/strong&gt; running smoothly. 😉&lt;/p&gt;</content:encoded><category>Power Platform</category><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Troubleshooting</category><category>Solution Health Hub</category><category>Power Platform Development</category></item><item><title>Dataverse Clone Wars: Bulk-Merging Duplicates with SSIS (KingswaySoft Guide)</title><link>https://martinplopez.com/writing/dataverse-ssis-merge-duplicates/</link><guid isPermaLink="true">https://martinplopez.com/writing/dataverse-ssis-merge-duplicates/</guid><description>How to bulk-merge duplicate Contacts and Accounts in Microsoft Dataverse using SSIS and KingswaySoft: matching, normalization, ranking, previewing, and safe execution.</description><pubDate>Sun, 12 Oct 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A long time ago in a database far, far away… 😁&lt;/p&gt;
&lt;p&gt;It is a time of chaos.
The mighty Dataverse is under siege by an overwhelming army of duplicate records.
Accounts and contacts have been cloned endlessly, threatening to destabilize the CRM galaxy.&lt;/p&gt;
&lt;p&gt;Armed only with an SSIS (SQL Server Integration Services) package, a brave data engineer rises to bring balance to the system.
Their mission: to bulk merge duplicates, unify scattered data, and restore peace to the Dataverse.&lt;/p&gt;
&lt;p&gt;At this point, you might be asking yourself:&lt;br&gt;
&lt;em&gt;“Is SSIS really the only choice? I never heard of SSIS, but Power Automate always makes my dreams come true.”&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;And I tell you &lt;strong&gt;No, Power Automate can do it, but you might want to go for a walk while it finishes…&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt;&lt;br&gt;
Use the ready-made &lt;strong&gt;KingswaySoft SSIS package&lt;/strong&gt; to bulk-merge duplicates in Dataverse.&lt;br&gt;
Connect via SOAP (or OAuth), define your match logic (e.g., &lt;code&gt;emailaddress1&lt;/code&gt;), adjust comparison settings, preview results with &lt;strong&gt;Data Viewer&lt;/strong&gt;, and always &lt;strong&gt;test safely in a sandbox&lt;/strong&gt; before going full Jedi.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id=&quot;why-not-do-it-in-power-automate&quot;&gt;Why not do it in Power Automate?&lt;/h2&gt;
&lt;p&gt;Power Automate can trigger actions that can merge Records — I tried this myself, but making it efficient is a challenge I’ve yet to accept.&lt;/p&gt;
&lt;p&gt;The main issue isn’t functionality — it’s &lt;strong&gt;scale&lt;/strong&gt;. When you’re comparing thousands of records, Power Automate becomes more of a Padawan than a Jedi Master.&lt;/p&gt;
&lt;p&gt;So if your duplicates are manageable in number, Power Automate might still be the right tool. I recommend this article:&lt;br&gt;
👉 &lt;a href=&quot;https://accessorange.com/automatic-duplicate-account-merge-in-dynamics-365-sales-with-power-automate&quot;&gt;Automatic Duplicate Account Merge in Dynamics 365 Sales with Power Automate&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But if you’re facing &lt;strong&gt;50,000+ contacts or accounts&lt;/strong&gt;, SSIS will handle the load like a true Sith Lord of data.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;requirements&quot;&gt;Requirements&lt;/h2&gt;
&lt;p&gt;To prepare your SSIS package for battle, you’ll need the following tools:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Visual Studio 2019/2022 (Professional or Enterprise edition)&lt;/li&gt;
&lt;li&gt;SQL Server Data Tools (SSDT) for Visual Studio&lt;/li&gt;
&lt;li&gt;KingswaySoft SSIS Productivity Pack&lt;/li&gt;
&lt;li&gt;KingswaySoft SSIS Integration Toolkit for Microsoft Dynamics 365&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If it’s your first time working with SSIS — I’m proud of you! 🫡&lt;br&gt;
Start here: &lt;a href=&quot;https://fredrikengseth.com/install-ssis-kingswaysoft-visual-studio-dynamics-365/&quot;&gt;How to install SSIS, KingswaySoft, and Visual Studio for Dynamics 365&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;⚠️ Safety first&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Run in a &lt;strong&gt;sandbox&lt;/strong&gt; environment first.&lt;/li&gt;
&lt;li&gt;Export a CSV of candidate duplicates (source + master).&lt;/li&gt;
&lt;li&gt;Keep an &lt;strong&gt;audit log&lt;/strong&gt; of merges (&lt;code&gt;winnerid → loserid&lt;/code&gt;) so you can restore data if needed.&lt;/li&gt;
&lt;li&gt;Start small: test with &lt;strong&gt;Top 100&lt;/strong&gt; records before a full-scale run.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h2 id=&quot;the-battle&quot;&gt;The Battle&lt;/h2&gt;
&lt;p&gt;Once we’re all set, the nice guys of Kingswaysoft already offered a packaged solution to your problems, you just have to set it up 😊&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://www.kingswaysoft.com/downloads/samples/dynamics-365/MergeCRMDuplicates.zip&quot;&gt;Click here to download the Kingswaysoft SSIS Package&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Open Visual Studio and create a new project: &lt;strong&gt;Integration Services Project&lt;/strong&gt;.&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Lookup Integration Searching for Templates&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;If you&amp;#x27;re not able to see this kind of Project make sure you installed the &amp;#x27;SQL Server Data Tools (SSDT) for Visual Studio&amp;#x27; package&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;If you&apos;re not able to see this kind of Project make sure you installed the &apos;SQL Server Data Tools (SSDT) for Visual Studio&apos; package&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Ok, now unzip the KingswaySoft package and add it to your project. In the &lt;strong&gt;Solution Explorer&lt;/strong&gt;, right-click &lt;strong&gt;SSIS Packages&lt;/strong&gt; → &lt;em&gt;Add Existing Package&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Until I saw \&amp;#x22;Add existing Package\&amp;#x22;, it took a while...&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Choose &lt;strong&gt;File System&lt;/strong&gt; as the Package Location, and then browse to the unzipped package path.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Make sure to select the right package&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;When you see “Succeeded in upgrading the package” means you’re on the right track 😉&lt;/p&gt;
&lt;p&gt;Next, open the &lt;strong&gt;MergeCRMDuplicates.dtsx&lt;/strong&gt; package, and double-click the &lt;em&gt;Find and Merge CRM Duplicate Contacts&lt;/em&gt; task in the &lt;strong&gt;Control Flow&lt;/strong&gt;. You’ll land right in the command center:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Does it remind you of Power Automate?&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;It does feel familiar, doesn’t it?&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;It does feel familiar, doesn’t it?&lt;/figcaption&gt;&lt;/figure&gt;
&lt;hr&gt;
&lt;h3 id=&quot;setting-up-the-connection&quot;&gt;Setting up the Connection&lt;/h3&gt;
&lt;p&gt;Then we can Click on “Dynamics CRM Connection Manager” and set up the Connection to our Dynamics environment:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image5.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;I recommend using the Soap Connection, even if the WebAPI seems tempting&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;I would choose for a single use case the following option, then you just have to fill out the User Name and your Dataverse URL. Make sure to test connection before clicking Ok 😁&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;I would choose for a single use case the following option, then you just have to fill out the User Name and your Dataverse URL. Make sure to test connection before clicking Ok 😁&lt;/figcaption&gt;&lt;/figure&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Connection tip:&lt;/strong&gt; Even though to use the &lt;strong&gt;Dynamics 365/Dataverse Connection Manager&lt;/strong&gt; with &lt;strong&gt;OAuth (Web API)&lt;/strong&gt; seems more appealing than SOAP. In my experience the SOAP connection technology is more developed than the Web API with Kingswaysoft. I had cases in which the logics built in SSIS were working perfectly with SOAP but not with WebAPI.
For reference: &lt;a href=&quot;https://www.kingswaysoft.com/products/ssis-integration-toolkit-for-microsoft-dynamics-365/help-manual/crm/connection-manager&quot;&gt;Using the CRM/Dataverse/CDS Connection Manager&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;hr&gt;
&lt;h3 id=&quot;the-duplicate-logic&quot;&gt;The Duplicate Logic&lt;/h3&gt;
&lt;p&gt;In my example, contacts are duplicated by &lt;strong&gt;email address&lt;/strong&gt;.&lt;br&gt;
The KingswaySoft package already retrieves all contacts, so I opened the &lt;em&gt;Duplicate Detection on name&lt;/em&gt; component and will rename it to &lt;em&gt;Duplicate Detection on email&lt;/em&gt; for clarity.&lt;/p&gt;
&lt;p&gt;Here you can define:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The &lt;strong&gt;column&lt;/strong&gt; to match on (e.g., &lt;code&gt;emailaddress1&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;match type&lt;/strong&gt; (Exact Match, Fuzzy Match, etc.)&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;similarity threshold&lt;/strong&gt; (percentage of similarity to be considered a match)&lt;/li&gt;
&lt;/ul&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image6.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;As soon as you reduce the threshold, the matching becomes fuzzy&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;For the example case I&amp;#x27;ll pick the emailaddress1 as column, with exact match.&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;For the example case I&apos;ll pick the emailaddress1 as column, with exact match.&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;The &lt;strong&gt;real power&lt;/strong&gt; of this step lies in the &lt;strong&gt;comparison settings&lt;/strong&gt;. These options normalize your column values before matching — for example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Ignore extra spaces&lt;/li&gt;
&lt;li&gt;Treat uppercase/lowercase as equal&lt;/li&gt;
&lt;li&gt;Trim trailing punctuation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also set a &lt;strong&gt;Ranking Strategy&lt;/strong&gt; — this determines which record “wins” when multiple duplicates are found.&lt;/p&gt;
&lt;h6 id=&quot;translation-when-multiple-records-match-the-ranking-defines-which-one-becomes-the-master&quot;&gt;Translation: when multiple records match, the ranking defines which one becomes the master.&lt;/h6&gt;
&lt;p&gt;By default, it uses &lt;strong&gt;Similarity Score&lt;/strong&gt;, but when you use exact matching, they’ll all have a score of 1.&lt;br&gt;
I like to set a custom strategy where the &lt;strong&gt;oldest record wins&lt;/strong&gt;, assuming it’s the original.&lt;br&gt;
In other cases, I prioritize contacts that aren’t “marketing-only” — merging those into the primary one.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image7.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;These settings will improve your matching&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h3 id=&quot;testing-and-merging-the-data&quot;&gt;Testing and Merging the data&lt;/h3&gt;
&lt;p&gt;Want to see what’s happening before executing the merge?&lt;br&gt;
Right-click on a connector line in your control flow and select &lt;strong&gt;Enable Data Viewer&lt;/strong&gt;.&lt;br&gt;
This lets you preview the matching results, review scores, and ensure your logic works as expected.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image8.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Very helpful for debugging!&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;p&gt;Now, let the package run — you’ll see the number of merged contacts rising heroically as duplicates fall one by one.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image9.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;All contacts merged!&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;final-pointers&quot;&gt;Final Pointers&lt;/h2&gt;
&lt;h3 id=&quot;you-merged-contacts-you-werent-supposed-to-and-you-cant-find-them&quot;&gt;You merged contacts you weren’t supposed to and you can’t find them?&lt;/h3&gt;
&lt;p&gt;Don’t panic. They’re not gone — just &lt;strong&gt;inactivated&lt;/strong&gt;.&lt;br&gt;
You can filter by “Last Modified” to the date/time you ran the SSIS package and find them easily.&lt;/p&gt;
&lt;p&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image10.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;They are not gone, only inactivated&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;/p&gt;
&lt;h3 id=&quot;you-want-to-unmerge-them&quot;&gt;You want to unmerge them?&lt;/h3&gt;
&lt;p&gt;Simply reactivate the contact. It won’t be linked anymore — though relationships or field values may already have been consolidated.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id=&quot;conclusion&quot;&gt;Conclusion&lt;/h2&gt;
&lt;p&gt;You might be thinking: &lt;em&gt;“How many times did he write KingswaySoft?”&lt;/em&gt;&lt;br&gt;
They were &lt;strong&gt;10 times&lt;/strong&gt;, counting this one — and no, I don’t work for them 😁&lt;/p&gt;
&lt;p&gt;But their SSIS solution is truly &lt;strong&gt;plug-and-play&lt;/strong&gt;. You don’t need to configure much to wipe out duplicates efficiently.&lt;br&gt;
Even though SSIS isn’t the newest tool in the Power Platform arsenal, it remains a &lt;strong&gt;battle-tested solution&lt;/strong&gt; and a reference for Dataverse data migrations and cleansing.&lt;/p&gt;
&lt;p&gt;Did you do something similar with duplicates? Have a better approach? Or ran into issues setting this up?&lt;br&gt;
I’d love to hear your story — &lt;a href=&quot;mailto:comment@martinplopez.com&quot;&gt;email me here&lt;/a&gt; or tag me on LinkedIn! 🚀&lt;/p&gt;</content:encoded><category>Power Platform</category><category>Dataverse</category><category>Dynamics 365</category><category>SSIS</category><category>KingswaySoft</category><category>Data Quality</category></item><item><title>How to Prevent Duplicate Event Registrations in Dynamics 365 Customer Insights (with Form Submission Validation)</title><link>https://martinplopez.com/writing/custom-form-submission-validation/</link><guid isPermaLink="true">https://martinplopez.com/writing/custom-form-submission-validation/</guid><description>Prevent one user to register twice for a Dynamics 365 Customer Insights Journeys Event. Use the Form Submission Validation logic to achieve this.</description><pubDate>Mon, 22 Sep 2025 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Some months ago, I got the question if there was a way to limit the Registrations for an event to &lt;strong&gt;one Registration per person&lt;/strong&gt; in Dynamics 365 Customer Insights Journeys. I thought then, that there is no setting for this, so I decided to investigate, and after some research I stumbled into this documentation of Microsoft: &lt;a href=&quot;https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/real-time-marketing-form-customize-submission-validation&quot;&gt;Customize form submission validation&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then I thought that if there is a way of validating a form &lt;strong&gt;before the submission&lt;/strong&gt;, we could avoid it altogether. So I set my mind on it and after some testing and validation, I developed a &lt;strong&gt;Plugin&lt;/strong&gt; that will validate the event registration by running on form Submission and will prevent the submission to be sent in case there is already an event registration.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Yes, ok, but Martin, what does this mean?&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;There is a way to limit the registration process by checking if this person is already registered in the Event&lt;/p&gt;
&lt;h2 id=&quot;how&quot;&gt;HOW?&lt;/h2&gt;
&lt;h3 id=&quot;step-1-data-form-validation-in-event-registration-form&quot;&gt;Step 1: data-form-validation in Event Registration Form&lt;/h3&gt;
&lt;p&gt;It all starts by setting the data-form-validation to true in the form where you want to integrate this:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image1.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;data-form-validation is key&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Find the Form Tag in your Form HTML and simply add the data-validate-submission=&amp;#x27;true&amp;#x27; part&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Find the Form Tag in your Form HTML and simply add the data-validate-submission=&apos;true&apos; part&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Without this, your plugin won’t fire, because this will allow us to trigger the plugins registered under the “msdynmkt_validateformsubmission” Message.&lt;/p&gt;
&lt;p&gt;Here an example in code:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;html&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;form&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; aria-label&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;{{EventName}}&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;marketingForm&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-validate-submission&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;true&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;      data-successmessage&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Thank you for submitting the form.&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-errormessage&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;There was an error, please try again.&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;      data-waitlistmessage&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;You have been added to the waitlist.&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;step-2-create-a-plugin&quot;&gt;Step 2: Create a PlugIn&lt;/h3&gt;
&lt;p&gt;Now create a plugin that will first deserialize the form parameters, then iterate through them to find the email and the event id and retrieve with a fetchxml if there are registrations for the event with the email you got from form:&lt;/p&gt;
&lt;p&gt;And for our low-code/no-code users, here’s what the plugin does in plain language: it reads the submission, checks if the email is already registered for that event, and if yes, it blocks the submission.&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;csharp&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; System&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Microsoft&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Xrm&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Sdk&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; System&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Collections&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Generic&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; System&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IO&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; System&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Runtime&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Serialization&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Json&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; System&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Text&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;using&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Microsoft&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Xrm&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Sdk&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Query&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;namespace&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; UniqueEmailRegistrations&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; CheckIfEmailRegistered&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IPlugin&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; void&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Execute&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IServiceProvider&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; serviceProvider&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; tracing&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ITracingService&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)serviceProvider.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;GetService&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ITracingService&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; context&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IPluginExecutionContext&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)serviceProvider.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;GetService&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IPluginExecutionContext&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; factory&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IOrganizationServiceFactory&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)serviceProvider.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;GetService&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IOrganizationServiceFactory&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; service&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; factory.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;CreateOrganizationService&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(context.UserId);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; requestString&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; context.InputParameters.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Contains&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_formsubmissionrequest&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                ?&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)context.InputParameters[&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_formsubmissionrequest&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                :&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IsNullOrWhiteSpace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(requestString))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                tracing.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;No msdynmkt_formsubmissionrequest found; skipping validation.&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                context.OutputParameters[&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_validationresponse&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Serialize&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ValidateFormSubmissionResponse&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                    IsValid &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                    ValidationOnlyFields &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; List&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; submission&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Deserialize&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;FormSubmissionRequest&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;(requestString);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; GetField&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; key&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (submission&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.Fields &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; &amp;#x26;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; submission.Fields.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;TryGetValue&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(key, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; value&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                    return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; value;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                return&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; emailRaw&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; GetField&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;emailaddress1&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; eventRaw&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; GetField&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;event&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;IsNullOrWhiteSpace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(emailRaw))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                tracing.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Email field is empty or missing; skipping duplicate validation.&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                context.OutputParameters[&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_validationresponse&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Serialize&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ValidateFormSubmissionResponse&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                    IsValid &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                    ValidationOnlyFields &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; List&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;Guid.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;TryParse&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(eventRaw, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;out&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; eventId&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;||&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; eventId &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; Guid.Empty)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                tracing.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;$&quot;Event field missing or not a GUID: &apos;&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;eventRaw&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos;. Skipping duplicate validation.&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                context.OutputParameters[&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_validationresponse&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Serialize&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ValidateFormSubmissionResponse&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                    IsValid &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                    ValidationOnlyFields &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; List&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; fetchXml&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; $@&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                &amp;#x3C;fetch&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                  &amp;#x3C;entity name=&apos;msevtmgt_eventregistration&apos;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                    &amp;#x3C;attribute name=&apos;msevtmgt_eventregistrationid&apos; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                    &amp;#x3C;filter&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                      &amp;#x3C;condition attribute=&apos;msevtmgt_eventid&apos; operator=&apos;eq&apos; value=&apos;&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;eventId&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                    &amp;#x3C;/filter&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                    &amp;#x3C;link-entity name=&apos;contact&apos; from=&apos;contactid&apos; to=&apos;msevtmgt_contactid&apos; link-type=&apos;inner&apos;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                      &amp;#x3C;filter&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                        &amp;#x3C;condition attribute=&apos;emailaddress1&apos; operator=&apos;eq&apos; value=&apos;&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;emailRaw&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&apos; /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                      &amp;#x3C;/filter&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                    &amp;#x3C;/link-entity&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                  &amp;#x3C;/entity&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;                &amp;#x3C;/fetch&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            tracing.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Running duplicate check with FetchXML:&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            tracing.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(fetchXml);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            bool&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; alreadyRegistered&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; false&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            try&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;                var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; result&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; service.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;RetrieveMultiple&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; FetchExpression&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(fetchXml));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                alreadyRegistered &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; &amp;#x26;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result.Entities &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; null&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; &amp;#x26;&amp;#x26;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result.Entities.Count &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; 0&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                tracing.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;$&quot;Duplicate check result: alreadyRegistered=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;alreadyRegistered&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;}&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            catch&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Exception&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ex&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                tracing.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Trace&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Error during duplicate check: &quot;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; ex.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ToString&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;());&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; response&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ValidateFormSubmissionResponse&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                IsValid &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; !&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;alreadyRegistered,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                ValidationOnlyFields &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; alreadyRegistered &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;?&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; List&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;emailaddress1&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; } &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; List&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;()&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            };&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            context.OutputParameters[&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_validationresponse&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;] &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Serialize&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(response);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        private&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; T&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Deserialize&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; jsonString&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; serializer&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; DataContractJsonSerializer&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;            T&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; result&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            using&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;MemoryStream&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; stream&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; MemoryStream&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(Encoding.UTF8.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;GetBytes&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(jsonString)))&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)serializer.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ReadObject&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(stream);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        private&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Serialize&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; obj&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;)&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            string&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; result&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            var&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; serializer&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; DataContractJsonSerializer&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;typeof&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;));&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            using&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;MemoryStream&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; memoryStream&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; MemoryStream&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;())&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                serializer.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;WriteObject&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(memoryStream, obj);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;                result &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; Encoding.Default.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;GetString&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(memoryStream.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ToArray&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;());&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;            return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; result;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;        }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; FormSubmissionRequest&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; Dictionary&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt; &lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;Fields&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; } }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;        public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; ValidateFormSubmissionResponse&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; bool&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; IsValid&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; } &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; List&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;string&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt; &lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;ValidationOnlyFields&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;; } }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;step-3-register-the-plugin&quot;&gt;Step 3: Register the plugIn&lt;/h3&gt;
&lt;p&gt;Make sure you follow the directives of Microsoft and you register it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The step name is: “msdynmkt_validateformsubmission”&lt;/li&gt;
&lt;li&gt;The Execution Mode is Synchronous&lt;/li&gt;
&lt;li&gt;The Execution Order is 10 (This is to prevent conflict with plugins that microsoft have running)&lt;/li&gt;
&lt;li&gt;The Event Pipeline Stage Of Execution is Post Operation&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&quot;step-4-dynamically-provide-the-event-guid-in-the-form&quot;&gt;Step 4: Dynamically provide the event guid in the form&lt;/h3&gt;
&lt;p&gt;One has to add the Event guid to the form, and thanks to Real Time Marketing, we can do this now dynamically! So if we add a new custom Field and don’t forget to call it “event”. Then we change the Field Label for the dynamic text that is the Event (msevtmgt_eventid) of the Event from Form, we’ll have it:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image2.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Under Personalization, you can find the dynamic text&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Don&amp;#x27;t forget to call &amp;#x27;EventId&amp;#x27;, this will play a role in your plugin&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Don&apos;t forget to call &apos;EventId&apos;, this will play a role in your plugin&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Then we can copy this dynamic placeholder as the value of the input of the newly created field and then hide it, so the users don’t see it. The HTML should look similar to this one:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;html&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;textFormFieldBlock&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-editorblocktype&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;TextFormField&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-prefill&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;false&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; data-hide&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;hide&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; title&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Field label&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; for&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;shorttext564-1758226821033&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; class&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;msdynmkt_personalization&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;{{EventId}}&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;br&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;label&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    &amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;input&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; id&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;shorttext564-1758226821033&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; type&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; name&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;event&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; placeholder&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Field label&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; title&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;Field label&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; maxlength&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;256&quot;&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; value&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;{{EventId}}&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  &amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h3 id=&quot;step-5-adjust-your-error-message&quot;&gt;Step 5: Adjust your error Message&lt;/h3&gt;
&lt;p&gt;One should make sure that the Users get an error message that they can understand, that’s why it’s recommendable to adjust the HTML of the form to offer more information on the validation. Here is an HTML that you can add to the form, so that if the submission gives an error, it will show an explanatory message next to the submission failed:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;html&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;document.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;addEventListener&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;&quot;d365mkt-afterformsubmit&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt;event&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;event.detail.successful) {  &lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; baseText&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt;  &quot;Error submitting the form&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; oneTimeMsg&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;You can only register once&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; selector&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;.onFormSubmittedFeedbackInternalContainer[data-submissionresponse=&apos;error&apos;] .onFormSubmittedFeedbackMessage&quot;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  function&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; applyOnce&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;() {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; msgEl&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; document.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;querySelector&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(selector);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;msgEl) &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; false&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; targetHTML&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; baseText &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;+&lt;/span&gt;&lt;span style=&quot;color:#9ECBFF&quot;&gt; &quot;&amp;#x3C;br&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; +&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; oneTimeMsg;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (msgEl.innerHTML.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;trim&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;() &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;!==&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; targetHTML) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      msgEl.innerHTML &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; targetHTML;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    return&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; true&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;applyOnce&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;()) &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;  const&lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt; observer&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; =&lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt; new&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt; MutationObserver&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;((&lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color:#FFAB70&quot;&gt;obs&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;) &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&gt;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#F97583&quot;&gt;    if&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; (&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;applyOnce&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;()) {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;      obs.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;disconnect&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;();&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  observer.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;observe&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(document.body, { childList: &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;, subtree: &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; });&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;  setTimeout&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(() &lt;/span&gt;&lt;span style=&quot;color:#F97583&quot;&gt;=&gt;&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt; observer.&lt;/span&gt;&lt;span style=&quot;color:#B392F0&quot;&gt;disconnect&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;(), &lt;/span&gt;&lt;span style=&quot;color:#79B8FF&quot;&gt;5000&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;);&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;});&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&amp;#x3C;/&lt;/span&gt;&lt;span style=&quot;color:#85E89D&quot;&gt;script&lt;/span&gt;&lt;span style=&quot;color:#E1E4E8&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Tip: Don’t forget to add this between the Form Tags of your Form HTML, Real Time Marketing requires this to work&lt;/p&gt;
&lt;h2 id=&quot;but-i-dont-know-how-to-code-what-do-i-do&quot;&gt;But I don’t know how to code, what do I do?&lt;/h2&gt;
&lt;p&gt;You can always download and install &lt;a href=&quot;https://github.com/martinplopez/NoDoubleRegistration&quot;&gt;my sample Solution&lt;/a&gt;. This will check automatically if there is a contact registered with the email address that is trying to register now and it will give the users an error like the following one:&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image3.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Not a lot of info...&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;This is not very descriptive...&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;This is not very descriptive...&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;Just be sure to make the &lt;a href=&quot;#step-1-data-form-validation-in-event-registration-form&quot;&gt;Step 1&lt;/a&gt; for the plugin to trigger and if you’re feeling brave, I really encourage and recommend the step 5, as it will make the user experience way better 😉&lt;/p&gt;
&lt;figure class=&quot;prose-figure&quot;&gt;&lt;img __ASTRO_IMAGE_=&quot;{&amp;#x22;src&amp;#x22;:&amp;#x22;./image4.png&amp;#x22;,&amp;#x22;alt&amp;#x22;:&amp;#x22;Aha, so that&amp;#x27;s why&amp;#x22;,&amp;#x22;title&amp;#x22;:&amp;#x22;Simple but effective&amp;#x22;,&amp;#x22;index&amp;#x22;:0}&quot;&gt;&lt;figcaption class=&quot;prose-figure__caption&quot;&gt;Simple but effective&lt;/figcaption&gt;&lt;/figure&gt;
&lt;p&gt;If you’ve tried this approach, let me know on LinkedIn — I’d love to hear how you’re handling event registrations!&lt;/p&gt;</content:encoded><category>Power Platform</category><category>Dynamics 365 Customer Insights Journeys</category><category>Marketing Automation</category><category>Power Platform Development</category></item></channel></rss>