Hello everyone, my name is Taniguchi and i have this code to retrieve multiple information for a entity and populate in another but i am having some trouble to understand it:
SDK.REST.retrieveRecord(crd4c_UF.Id, "crd4c_uf", "crd4c_RegioEconmica,crd4c_RegioGeogrfica", null, function(result) {
var crd4c_RegioEconmica = result.crd4c_RegioEconmica.Value;
var crd4c_RegioGeogrfica = result.crd4c_RegioGeogrfica.Value;
Xrm.Page.getAttribute("crd4c_regioeconmicaa").setValue(crd4c_RegioEconmica);
Xrm.Page.getAttribute("crd4c_regiogeogrfica").setValue(crd4c_RegioGeogrfica);
Xrm.Page.getControl("crd4c_regiogeogrfica").setVisible(true);
Xrm.Page.getControl("crd4c_regioeconmicaa").setVisible(true);
}, function(error) {
Xrm.Utility.alertDialog(error.message);
});
function(result), what this function do exactly ?
*This post is locked for comments