In this Blog we will see how to Use Xrm.WebApi.retrieveRecord in Dataverse / MSCRM
Video for your Reference: https://youtu.be/9QHxNtClV-4?si=1vM2lViCY9XngIXW
Power Platform, Microsoft Dynamics CRM 4.0, 2011, 2013, 2015, 2016, D365 CE, C#, ASP.net and MVC, Azure
In this Blog we will see how to Use Xrm.WebApi.retrieveRecord in Dataverse / MSCRM
function retreiveRecord(executionContext) {
var formContext = executionContext.getFormContext();
var getCurrentRecordid = formContext.data.entity.getId();
getCurrentRecordid = getCurrentRecordid.replace("{", "").replace("}", "");
Xrm.WebApi.retrieveRecord("TABLENAME", getCurrentRecordid , "?$select=fieldname1,fieldname2").then(
function success(result) {
console.log(result);
// Columns
var bosch_dayid = result["fieldname1"];
var bosch_dayname = result["fieldname2"];
},
function (error) {
console.log(error.message);
}
);
}
In this Blog we will see how to Use Xrm.WebApi.retrieveRecord in Dataverse / MSCRM Video for your Reference: https://youtu.be/9QHxNtClV-4...
No comments:
Post a Comment