Tags » CRM

Sample code to call Action using Web API in CRM

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 XMLHttpRequest();

// specify name of the entity, record id and name of the action in the Wen API Url
req.open("POST", serverURL + "/api/data/v8.2/sab_costmanagements(" + Id + ")/Microsoft.Dynamics.CRM.sab_Recalculate", true);

req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.setRequestHeader("OData-MaxVersion", "4.0");
req.setRequestHeader("OData-Version", "4.0");
req.onreadystatechange = function () {
if (this.readyState == 4 /* complete */) {
req.onreadystatechange = null;
if (this.status == 200) {
var data = JSON.parse(this.response);
} else {
var error = JSON.parse(this.response).error;

// send the request with the data for the input parameter

… 55 mais palavras
Microsoft Dynamics CRM

Missing Action (message) in Plugin Registration Tool

Recently we created a new created Action and it twas not showing up in Plugin Registration Tool.

Closing and restarting the Plugin Registration tool fixed it.

Hope it helps..

Microsoft Dynamics CRM

C'est quoi la différence entre un client , un acheteur et un consommateur ?

C’est quoi la différence entre un client (en anglais client), un acheteur (en anglais customer) et un consommateur (en anglais consumer) ? 1.051 mais palavras


Download Crm 2011 Sharepoint List Enu Amd64 Exe

Download crm 2011 sharepoint list enu amd64 exe

Just in 5 min Integrating SharePoint 2010 Online and CRM integrate CRM 2011 online and SharePoint Team SharePointList-ENU-amd64.exe First install the MS CRM 2011 and 1.Navigate to the folder where you downloaded CRM2011-SharePointList-ENU-amd64.exe, CRM 2011 & SHAREPOINT Directory List Lowercase 2.3 Small – Free ebook download as Text File (.txt), PDF File (.pdf) or read book online for free. 273 mais palavras

5 Moments Lisa Made Us Love Her Even More

{“contentType”:”NEWS_STORY”,”id”:{“value”:”2cc57290b3bd34835fe32caa2e5da6a8″,”link”:”http:\/\/api.newsapi.com.au\/content\/v2\/2cc57290b3bd34835fe32caa2e5da6a8″},”originId”:”Whimn-38972″,”origin”:”WORDPRESS”,”channel”:”NONE”,”title”:”5 Moments Lisa Made Us Love Her Even More”,”altTitle”:””,”subtitle”:”5 Moment In Lisa’s Career That Made Us Love Her Even More”,”description”:”

Happy 10th anniversary to one of TV’s finest. 1.561 mais palavras


How to get the current datetime in CRM client side using Javascript.

I got the issue where I needed to get the datetime as per CRM logged in user timezone. I have written one more blog where we can do this at server side by hitting the org service  224 mais palavras