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 :
Microsoft Dynamics CRM (Archived)

insert email template into existing email via js?

(0) ShareShare
ReportReport
Posted on by

 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

I have the same question (0)
  • Rajesh Chungath Profile Picture
    467 on at
    RE: insert email template into existing email via js?

    Hi There is many discussions available on similar topics.

    Please check below links

    community.dynamics.com/.../199761

    bingsoft.wordpress.com/.../create-email-activity-from-template-using-javascript

    community.dynamics.com/.../152576

    mscrmmindfire.wordpress.com/.../how-to-append-email-template-to-email-entity-form-on-load-through-javascript

  • Community Member Profile Picture
    on at
    RE: insert email template into existing email via js?

    hii

  • Suggested answer
    _Alessandro_ Profile Picture
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans