Skip to main content

Notifications

Announcements

No record found.

Service | Customer Service, Contact Center, Fie...
Suggested answer

Auto Populate email template

Posted on by 15

Hello,

In Case (incident) entity when user click + on time line and select Email, New Email window is open. Is it possible to auto-populate email template on this new email window based on attribute values for current records?

Regards,

Ashley

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto Populate email template

    Hi AshFon,

    I haven't tried something like this. Here are some links about this, you could have a try:

    https://bingsoft.wordpress.com/2010/08/02/create-email-activity-from-template-using-javascript/

    community.dynamics.com/.../how-can-i-pop-up-a-new-email-activity-with-a-pre-selected-template

  • AshFon Profile Picture
    AshFon 15 on at
    RE: Auto Populate email template

    Thanks for yout input Steve. I am tring to create javascript to trigger on Email form load. Do you know how do I populate email template base? Assuming I have got template ID or object how can I set this template in email form?

    Ashley

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Auto Populate email template

    Hi AshFon,

    I think this is impossible. Because there is no way to change the behavior of + email button in the timeline.

    You could try to add a custom button on the case form and open the email form by JS(https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-navigation/openform).

    And pass the attribute values of current case record as formParameters of openForm() method.

    Then create an onload event to receive these parameters. Finally insert email template base on these parameters.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans