Sample code to call Action using Web API in CRM – Nishant Rana’s Weblog
Just sharing a sample code to call an Action through Web API.
Suppose below is our Action with one input parameter.
JavaScript code :-
function CallAction() { // get the id of the record and remove the curly bracket part // id will be used in Web API url var Id = Xrm.Page.data.entity.getId().replace('{', '').replace('}', ''); var serverURL = Xrm.Page.context.getClientUrl(); // pass the id as inpurt parameter var data = { "recordid": Id }; var req = new...
Full Article
Sample code to call Action using Web API in CRM – Nishant Rana’s Weblog
Blog Syndicated with Nishant Rana’s Permission
More About This Author
Array
- Dyn365CE17 September 2024New Lead Qualification Experience – Dynamics 365 Sales
- Dyn365CE16 September 2024Bypass Power Automate Flows using SuppressCallbackRegistrationExpanderJob optional parameter – Dataverse / Dynamics 365
- Dyn365CE10 September 2024Sample Code to create and associate Folder / SharePoint Document Location (Dataverse /Dynamics 365 / SharePoint Online)
- Dyn365CE9 September 2024Fixed – The attempted operation is prohibited because it exceeds the list view threshold error– SharePoint Online