Add the Communication Preferences tab for Customer Insights - Journeys to Lead Forms
One of the biggest changes in real-time marketing for Customer Insights - Journeys is how consent is stored and managed. In outbound marketing the ‘Bulk Email’ field on the Contact record was the key determinant of consent. Real-time marketing captures consent as ‘Contact Points’, so each contact detail you have such as an email address, or a phone number; has its own consent of Opted In or Opted Out (or ‘Not Set’). If there are duplicate contacts or leads with the same email address there will still be only one contact point consent for the email address.
The shiny new Communication tab we have all been waiting for
Once you enable the feature switch for ‘Manage consent in contact and lead forms (Preview)’ or the feature comes out of preview and is enabled by default. You will might find a magical new ‘Communication’ tab on the Out of the box Contact and Lead form where you can ‘quickly see and update customer consent’ across multiple compliance profiles, topics and purposes. However custom forms, and customised out of the box forms may be missing the magical new tab.
More feature details here.
Further reading on compliance/consent here, it’s important to understand it -> https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/real-time-marketing-compliance-settings
Add to a Lead form
EDIT: You don’t need to fiddle with form XML anymore to add this control, it can be done on the form editor in the Power Apps maker studio YAY!
For obvious reasons - do this in a development environment, test it and check it before sharing your insightful magic with the rest of your users!
If you have XRMToolBox installed, you can edit the form xml using the FormXML Manager tool and just skip to the Tab and Control snippet section, however I know not all organisations allow access to this tool, so the manual solution extraction method is explained below.
Create a new solution into which we will add the Lead form that you want to add the communication control tab on to.
Edit the custom form with the below:
Edit the Form XML
Download the solution you just exported and in your download file explorer, right click and ‘Extract All…’. Open the customizations.xml file in whatever plain text program you use (I use visual studio code which beats notepad hands down, but entirely optional).
In the customizations.xml file search for the tab that you want to add the insights into (that handy tab name you added earlier becomes very useful now!) Replace everything inside the <tab> tags with the below Tab snippet, note its tab not tabs.
Replace the Control Description for the donotbulkemail toggle control highlighted in the image, with the Control Description snippet below.
Import your changes
Save your changes from above then navigate into your extracted folder from earlier. Select the three files (customizations,solution,[Content_Types]), right click and ‘Compress to zip file’. The name of the folder doesn’t really matter so call it something useful e.g. ‘Communication Tab Magic’.
Return to the Power Apps maker studio and import your solution, ensuring you select the new zipped folder you created.
Publish your changes and admire your handy work.