web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Unanswered

Setting Recipient and Regarding Field When Replying to an E-mail in Dynamics 365 CRM

(1) ShareShare
ReportReport
Posted on by 22
 
0

I am working with Dynamics 365 CRM and need some assistance with handling e-mails in the interactive experience form. Specifically, I am trying to reply to an e-mail directly from the timeline.

Here’s what I have achieved so far:

I can modify the sender’s address to a default e-mail using JavaScript. Our own system sends the initial e-mail, so the sender is our own domain. When replying, the e-mail address defaults to this. I have a workflow that parses the e-mail and creates the contact and case according to customer values.

However, I am encountering two issues:

Recipient Address: I want to automatically set the recipient to the Case’s customer e-mail address when replying. Currently, I have to set this manually. Regarding Field: The ‘Regarding’ field is empty when replying, and I need it to be automatically set to the related case.

I'm not sure how to proceed as I'm not experienced.

Here's my default e-mail JS:

function setSender(executionContext, entityType, name, ID){
    var formContext = executionContext.getFormContext()
    // Set the "From" field
    var lookup = new Array();
    lookup[0] = new Object();
    lookup[0].id = ID; 
    lookup[0].name = name; 
    lookup[0].entityType = entityType;
    formContext.getAttribute("from").setValue(lookup);
    console.log("Default e-mail is set");
}
Categories:
  • Cui Hao Profile Picture
    on at
    Setting Recipient and Regarding Field When Replying to an E-mail in Dynamics 365 CRM
    Hi,

    I created a Case, set Customer as a user, and then sent him an email in the timeline, and found that the /Regarding/ field, as well as the email address, were already populated.



    Then after the user replied to the email, I replied to that user's email directly in the timeline again and found that the To and /Regarding/ fields were also already populated.
    So following the correct process, the /Regarding/ fields and the recipients are auto-populated.

    I'm not sure which steps you're having trouble with, if it's easier, could you provide a full screenshot for me to see?


    Best regards,
    Cui Hao

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Jahanvi Profile Picture

Jahanvi 106

#2
Jatin kumar "Mandlay" Profile Picture

Jatin kumar "Mandlay" 9

#3
AbhiShahi Profile Picture

AbhiShahi 5

Featured topics

Product updates

Dynamics 365 release plans