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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can I pop up a new email activity with a pre-selected template?

(0) ShareShare
ReportReport
Posted on by 2

I want to add a button to the opportunity command bar that allows a user to send an email using a specific email template.  The normal user interaction is to add an email activity and then select the template.  I want to skip this and make it one click.  The template is incomplete meaning that the user needs to complete some information before it can be sent.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Aileen Gusni Profile Picture
    44,524 on at

    Philip,

    To create email using template you can use : "InstantiateTemplateRequest"

    Put a javascript code to use this "InstantiateTemplateRequest" method on form onload

    Good examples here:

    mahenderpal.wordpress.com/.../instantiatetemplaterequest-using-javascript-ms-crm-2011

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

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

    Then for your ribbon case, you can use RibbonWorkbench as usual

    Then you can use OpenEntityForm function to open the New Email form

    msdn.microsoft.com/.../gg328483.aspx

    msdn.microsoft.com/.../gg334375.aspx

    crmbusiness.wordpress.com/.../crm-2013-let-xrm-utility-openentityform-open-crm-forms-for-you

    And also configure the custom parameters.

    You can set a parameter that can be recognized only by the ribbon which passing it in and then the email form onload parameter that to indicate that this request is coming from the ribbon, not standard CRM new email record.

    msdn.microsoft.com/.../gg334436.aspx

    www.powerobjects.com/.../passing-parameters-between-forms-crm-2011

    That is the concept.

    Hope this can help you.

    Thank you.

  • Phillip U. Profile Picture
    2 on at

    Thanks Aileen.  These links were helpful.

  • Valeriy Z Profile Picture
    15 on at

    Hi Phillip,

    I am facing the same challenge. I added a button to Command Bar "Send Email with X template", I can associate the JS command with it. Did you succeed with creating and Opening new Email window with specified X Email template in JS for completing and sending /deleting the email manually? 

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans