Hi!
First post ever, hope you guys can give me some valuable help for my problem!
So I am writing a JS script in order to retrive some PhoneCalls which RegardingObjectId is the same of my current incident. To do that, I am using the function SDK.REST.retrieveMultipleRecords.
I have a problem setting the option of my query. I try to set the filter as below:
var optionString = "/PhoneCall?$filter=RegardingObjectId/Id eq (guid'" + editedFormGuid + "')"
but I have the feeling the filter is ignored and what is return by the function is ALL the PhoneCall records, instead of the ones that interest me.
This is how I call the function :
SDK.REST.retrieveMultipleRecords(
"PhoneCall",
optionString,
successCallbackPhoneCall,
function (error) { alert("errorCallBack message \n" + error.message); },
function () {Xrm.Utility.alertDialog("retrieve completed");}
);
Thanks,
Anthony