Hello
We are building an external form and would like to pass the email opt-in or out value to Dynamics through a check box on the external form as Yes or No. How can we do that... The documentation says the value for the DoNotEmail field is boolean... We have passed both true or false and nothing changed https://docs.microsoft.com/en-us/previous-versions/dynamics-marketing/developers-guide/dn841893(v=mdm.8)
When we look at the field DoNotEmail as a field type is says it has Two Options, but the values seem to be opt-in true/false and opt-out true/false does that mean we need to set two fields not one?
Appreciate any guidance here.. the form is built on an external marketing automation tool that passes the data to dynamics...
Thanks
Hi Partner,
Form field will be added to marketing form and it is mapped to a specific field of Contact or Lead.
In Dynamics 365 for Marketing, the form field record "Do not email" has been mapped to "Do not allow Bulk Emails" field of Contact.
It will be rendered as a checkbox element, and the "Two option" field type indicates that the form field is mapped to a boolean type field.
In a word, form field is different from field of entity.
In customization menu of Contact entity, we can see the actual mapped field.
The mapped field has been also added to Contact form > Details tab > CONTACT PREFERENCES section.
We just need to drag the corresponding form field to custom subscription center form.
Result
If we submit the form with "Do not email" checked, Bulk Email field of contact will be set to "Do Not Allow".
Regards,
Clofly
Thank you for replying..... In the setup we have for D365 we do not see the donot bulkemail field ... in all cases.. the issue is that we are unable to change the values ... so we pass true or false and the donotemail field remains the same ... should we pass a different value and what that would be ?
thanks again :)
Hi Partner,
You should use "DoNotBulkEmail" field instead.
Please refer to answer of the following thread to learn about difference between DoNotBulkEmail and DoNotEmail.
We only need one "Two Options" type field, and just notice that "true" represents "Do not allow bulk email".
Regards,
Clofly
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156