Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Javascript to open email

(0) ShareShare
ReportReport
Posted on by 244

EntityRelation: Course - participant(Grid)- Contact

I have placed a button on Grid to get selected items on button click and from there open an email with the preloaded contacts in the to field.

Contact is alookup on Participant, so before adding the contact to party list i need to retrieve the contact based on the participant.

  • Suggested answer
    sdfasdf Profile Picture
    840 on at
    RE: Javascript to open email

    Hello,

    I believe this can be easily achieved with custom JavaScript code. In order to simplify the scenario, maybe the best approach is for your JavaScript code to actually create the email record with all the necessary information using the WebAPI, and then just use the openForm function to open the email record.

    Please refer to this article which walks you through how to create an email record with WebAPI: community.dynamics.com/.../creating-an-email-activity-in-ms-crm-through-webapi

    I hope you find this information useful.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Javascript to open email

    I will not argue. Good luck solving your issue.

  • NK Bhairi Profile Picture
    244 on at
    RE: Javascript to open email

    when you posted something as an Answer, everyone in the world will think that you have knowledge on that.

    I clearly told you where exactly the issue is in the code you posted.

    Nevertheless, being a developer I was curious if you have posted something with Fix (which is the same code), you must have tried that.

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Javascript to open email
    [deleted]
  • NK Bhairi Profile Picture
    244 on at
    RE: Javascript to open email

    No its not working,

    and yo have pasted the same code

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Javascript to open email
    [deleted]
  • NK Bhairi Profile Picture
    244 on at
    RE: Javascript to open email

    Removed 

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Javascript to open email
    [deleted]

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 78 Super User 2025 Season 1

#3
Sahra Profile Picture

Sahra 43

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans