Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to trigger email sending function using custom button in ms crm

(0) ShareShare
ReportReport
Posted on by

Hi ,

I'm trying to introduce a new button in the email form which will also be working like the SEND button, this button should send the email along with some additional logic . How can i trigger the email sending feature in my custom button along with additional logic behind it, Any help on this is appreciated.

*This post is locked for comments

  • Suggested answer
    JayeshAC Profile Picture
    1,157 on at
    RE: How to trigger email sending function using custom button in ms crm

    Hi Dathatreya,

    Create a custom button on Email Form using RibbonWorkbench and call a JavaScript function to send Email.

    Refer this JavaScript code snippet : mileyja.blogspot.co.uk/.../send-email-synchronously-in-microsoft.html  

    You can also take the reference from SDK.SampleCode

    Regards,

    Jayesh

  • Swetha Poojary Salaskar Profile Picture
    326 on at
    RE: How to trigger email sending function using custom button in ms crm

    HI,

    Add a new button using ribbonwork bench solution .

    Call java-script on button click and within that java-script write code for additional logic and change the status of email to send for sending email.

    Other way you can try is:

    create a custom field of two option type in email activity entity.

    Add custom button to email form on click call javascript. Within javascript change the value of custom field to Yes and save email.

    Write plugin on custom field value change to Yes within that plugin write your additional logic and send email code for status change.add last line to your plugin to change custom field value to NO

    If this suggested answer has resolved your issue please mark as verified to helps others in the future

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,869 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,733 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans