Hello Friends.
I am currently building a custom page outside CRM. I am using Fetch XML to retrieve data from CRM on this page.
In this page I am binding all the Contacts for the logged in user onto a field.
Have used the below XML to retrieve data from CRM
fetchXML = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>" +
"<entity name='contact'>" +
"<attribute name='contactid' />" +
"<attribute name='fullname' />" +
"<order attribute='fullname' descending='false' />" +
"<filter type='and'>" +
"<condition attribute='new_customertype' operator='ne' value='5' />" +
"<condition attribute='ownerid' operator='eq' value='" + gLoginId + "' />"
"</filter>" +
"</entity>" +
"</fetch>";
Now the customer wants that the managers to also use this page. (Using Managerial Hierarchy)
But with the above XML tag the page renders no values as all the Contacts are mapped to the subordinates.
Request help in achieving the same.
*This post is locked for comments