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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How can we call a Custom action from java script?

(0) ShareShare
ReportReport
Posted on by

I have a button in contact form. when i click button, the updated fields data should be notified via email to available records of the sub grid which is available in contact subgrid.

So how can we achieve?how can we call custom action from javascript?

Thanks 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi Rajesh,

    Calling an action in javascript is easy , something like below :

    URL + api/data/v8.0/" + "my_globalcustomaction"'

    debajmecrm.com/.../dynamics-crm-web-api-action-execute

  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    however , i am still thinking what you are trying to do - are you trying to update all the child record - on a click on button?

  • Community Member Profile Picture
    on at

    Hi Rawish Kumar,

    I want to send updated fields data as a V-card to admin and some of the users  which fields are updated information.for that i created a Button by Ribbon Work Bench, wrote Java script. Now i want to call from Javasciprt to custom Action. when i click on Button Directly updated fields are send as attachment mail to Whom we want to send. Because as per my requirement i stopped Synchronization between CRM to Outlook.

    i guess you get my requirement.

    Thanks

    Rajesh.

  • gdas Profile Picture
    50,091 Moderator on at

    Hi Rajesh ,

    Not sure you may already viewed this article , you just need to call the method in the action of your ribbon button.

    www.itaintboring.com/.../use-javascript-to-call-a-custom-action-and-to-display-an-error

  • Suggested answer
    Shidin Haridas Profile Picture
    3,499 on at

    Here is a step-by-step tutoril on how to call an Action from javascript.https://community.dynamics.com/crm/b/nishantranaweblog/archive/2017/05/27/sample-code-to-call-action-using-web-api-in-crm

    One addition to that post is this:

    The success response status doesn’t necessarily have to be 200. It can be 204 (Success with no content returned in response body) or 304 (Success with Not Modified) as well.

    Check the SDK documentation for more details.

  • Verified answer
    Justinjose Profile Picture
    2,707 on at

    Hi Rajesh Varma,

    In addition to above suggestions CRMRESTBuilder will help to build action javascript

    github.com/.../releases

    Thanks

    Justin Jose

  • Verified answer
    Tomas Prokop Profile Picture
    590 on at

    Hi Rajesh,

    I think the easiest way is Process.js solution. github.com/.../processjs

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans