Hello community ,
I have doubt I need your confirmation please
Actually i am tring to retrieves record using XRMSERVICETOOLKIT (javascript ) this is my query
XrmServiceToolkit.Rest.RetrieveMultiple("new_incidentcategorymatrixSet", "?$select=new_CategoryId&$filter=new_channel/Value eq 3 and new_subjectinident/Value eq 1 and new_callnumber eq '0651173831'", function(results) {
for (var i = 0; i < results.length; i++) {
var new_CategoryId = results[i].new_CategoryId;
}
}, function(error) {
Xrm.Utility.alertDialog(error.message);
}, function() {
//On Complete - Do Something
}, true);
The question : Is there any way to store the result new_CategoryId and use it outside ? or the returned result can only be used inside the function ?