Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Using JavaScript popup Email before sending it.

(0) ShareShare
ReportReport
Posted on by 547

Dear All,

I am aware this question is already asked and here are few links which I have referred, But in the below examples I am not sure what exactly should be be Customer, EntityID (which entity??) and I guess EntityName related to entityID.

Does EntityID means from which entity I am opening Email. In my case I am opening Email on Account entity.

Calling function with params

CreateEmailFromTemplate(crmForm.all.customerid.DataValue, templateId, crmForm.ObjectId, "incident");

and called function is below

CreateEmailFromTemplate = function(Customer, TemplateId, EntityId, EntityTypeName) {

https://mahenderpal.wordpress.com/2012/09/01/instantiatetemplaterequest-using-javascript-ms-crm-2011/

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

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

*This post is locked for comments

  • Suggested answer
    RE: Using JavaScript popup Email before sending it.

    Hi chikhaleankush,

    EntityId refer to Regarding Object into the Email you are sending.

    In your case:

    CreateEmailFromTemplate(crmForm.all.customerid.DataValue, templateId, crmForm.ObjectId, "account");

    Please let me know if you solve.

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna+Milano, ITALY

    Independent Contractor

    http://www.francescopicchi.com

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans