I want to automatically populate the cc field when sending an email.
How do I do this if the cc field coming from an incoming email is not an existing contact?
Please help.
I want to automatically populate the cc field when sending an email.
How do I do this if the cc field coming from an incoming email is not an existing contact?
Please help.
Hi cam64,
Firstly, you need go Settings > Administration > System Settings, under Email tab, then simply flip the switch on ‘Allow messages with unresolved email recipients to be sent’ to Yes .
Then you can refer following links to populate cc filed automatically through js or flow:
Send Email to Unresolved Recipients in Dynamics 365 using Power Automate (linnzawwin.blogspot.com)
If they all don't work, you can create one contact for the unresolved email address, then using following code to populate cc field:
function UpdateBccField(executionContext) { var formContext = executionContext.getFormContext(); var value = new Array(); value[0] = new Object(); value[0].id = "4e720040-c9a1-eb11-b1ac-0022480459c9";//guid of contact value[0].name = "Jim Glynn (sample)";//name of contact value[0].entityType = "contact"; formContext.getAttribute("cc").setValue(value); //set the cc value finally } }
Muhammad Shahzad Sh...
51
Most Valuable Professional
Ramesh Kumar
42
David Shaw_UK
27