Hi Everyone
I am attempting to retrieve multiple records from the jscript code using the following below but failed in the attempt. Has someone been able to achieve this ? Thank you very much.
Regards
Suraj
"<q1:EntityName>contact</q1:EntityName>" +
"<q1:ColumnSet xsi:type='q1:ColumnSet'>" +
"<q1:Attributes>" +
"<q1:Attribute>fullname</q1:Attribute>" +
"</q1:Attributes>" +
"</q1:ColumnSet>" +
"<q1:Distinct>false</q1:Distinct>" +
"<q1:Criteria>" +
"<q1:FilterOperator>And</q1:FilterOperator>" +
"<q1:Conditions>" +
"<q1:Condition>" +
"<q1:AttributeName>parentcustomerid</q1:AttributeName>" +
"<q1:Operator>Begins With</q1:Operator>" +
"<q1:Values>" +
"<q1:Value xsi:type='xsd:string'>" + "Abco Refrigeration"+ "</q1:Value>" +
"</q1:Values>" +
"</q1:Condition>" +
"</q1:Conditions>" +
"</q1:Criteria>";
var retrievedContacts = XrmServiceToolkit.Soap.RetrieveMultiple(query);
alert(retrievedContacts[0].attributes['fullname']);
but getting a null reference on the RetrieveMultiple call.
Any thing I'm missing ?
Thanks guys.