Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

insert email template into existing email via js?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 Hello - Is there a way to insert an email template into an existing email? I know how to open an email template as a new email through js. I also know how to manually select the reply-all button and then manually insert the email template through the ribbon into the reply-all email.  However, I'd like to implement logic in my email js that does the following:

1. check if email is in reply or reply-all mode
2. If 1 is true then auto-insert an email template into the email.

Is this possible? If so then can you explain how to do this?

*This post is locked for comments

  • Rajesh Chungath Profile Picture
    Rajesh Chungath 465 on at
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: insert email template into existing email via js?

    hii

  • Suggested answer
    _Alessandro_ Profile Picture
    _Alessandro_ 615 on at
    RE: insert email template into existing email via js?

    1: i'm not sure hot to do, but for sure you can check if the activitypartylist in the "To" field contains more than one element

    2: sure you can do it. are you sure that you want to use a js and not a c# plugin?

    with js: make a SOAP request to retrieve the template you want

    the copy the template.body to the email.description and it's done! :)

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans