Is there a way to default the reply-to email address for all marketing emails?
Is there a way to default the reply-to email address for all marketing emails?
Hi Brittany,
I have splitted your question from the old thread.
If there is any thread which could be related or similar to your problem, feel free to open a new thread at same time. A new thread would be more likely to attract the attention of users in the forum.
For your question itself:
yes, we can run a custom javascript function to set the default reply-to email address.
1. Create a JScript type web resource, add following code to the file.
function setDefault(executionContext) { var formContext = executionContext.getFormContext(); /** * 192350000 Draft * 192350002 Stopped **/ if (formContext.getAttribute("statuscode").getValue() === 192350000 || formContext.getAttribute("statuscode").getValue() === 192350002) { formContext.getAttribute("msdyncrm_replytoemail").setValue('xxx@outlook.com'); } }
2. Open Designer form of Marketing Email entity, top gear icon > advanced settings > customizations > customize the system > entities > marketing email > forms > Designer.
3. In form editor, click form properties button to add the web resource, then running the custom function at OnLoad event of form.
When adding the function, we need to check the two options in the screenshot.
Now when a marketing email is in draft or stopped status, the reply-to address will be prefilled automatically.
Regards,
Clofly
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156