Source Code:
function CallWebApi(reqType, url, workflowInput, successCallBack, errorCallBack, executionMode) {
$.ajax({
type: reqType,
url: url,
dataType: "json",
data: JSON.stringify(workflowInput),
contentType: "application/json; charset=utf-8",
async: executionMode,
cache: false,
xhrFields:
{
withCredentials: true
},
crossDomain: true,
success: function (data) {
successCallBack(data);
},
error: function (error) {
errorCallBack(error);
}
});
}
Thank you for sharing.
ReplyDeleteMicrosoft Dynamics AX Online Training
Thank you for posting the valuable information about Devops,Keep it up.
ReplyDeleteD365 Finance and Operations Online Training