Skip to main content



No record found.

Customer Service forum

Set "To" automatically when creating a new email out of a case

Posted on by 127
Hello together,
I maintain a D365 in which it automatically fills us the /To/ of the email when a new email is created from a case.The account is used as a priority. If this is not available, it pulls the Contact. We would like to have the logic the other way around.
Unfortunately I can't find the logic anywhere. Neither under the /On Load/ events, nor in any web resources.
Can you tell me where the logic is hidden? Is this a default behavior which can't be changed at all?
Thank you in advance.
  • Suggested answer
    ShannonCRM Profile Picture
    ShannonCRM 496 on at
    Set "To" automatically when creating a new email out of a case
    For this reason, when we built our system, we used "customer" field as the Contact, and created a separate custom field to store the customer's account.  I am posting this not because it can help you - you're probably too deep in your current installation to make this change, but to help future people who are setting up new Customer Service instances. 
    It is always better to use "customer" as the contact, that is how Microsoft intended it, and all of the out of box features will work better this way.
    You can probably change the behavior (over-ride it) by writing on-load javascript to trigger when the Email form is in Create mode and it is regarding a case.
  • Suggested answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Set "To" automatically when creating a new email out of a case

    This is the default behavior.
    The 'To' field is automatically mapped to the associated customer's email address.
    However, when creating an email in the Activity entity, the "To" field is not automatically populated and needs to be populated manually.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .


André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,914 Super User

Martin Dráb Profile Picture

Martin Dráb 225,549 Super User

nmaenpaa Profile Picture

nmaenpaa 101,148


Featured topics

Product updates

Dynamics 365 release plans