SDK.REST.retrieveRecord is not working with Mobile Client.
It is working fine with IE and Chrome in Laptop.
It throws an error as shown in below screenshot:
function CopyList(selectedItemsSelectedIndex) {
var accountId = selectedItemsSelectedIndex.length > 0 ? selectedItemsSelectedIndex[0].toString() : null;
var marketinglist, approval;
for (var i = 0; i < selectedItemsSelectedIndex.length; i++) {
SDK.REST.retrieveRecord(selectedItemsSelectedIndex[i].toString(), "kpmg_marketlistmemberapprov", "kpmg_AList,kpmg_Status", null,
function (result) {
if (result) {
marketinglist = result.kpmg_AList;
approval = result.kpmg_Status;
}
}, SDK.REST.errorCallback, function () { console.log("Retrieve Single record call completed"); }, false);
}
I am using Dynamics 365 online.
Thank You .
*This post is locked for comments