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 Microsoft Employee

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
    JayeshAC 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

  • 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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans