Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 79901

Hierarchy based data to be shown outside CRM

$
0
0

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.


Viewing all articles
Browse latest Browse all 79901

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>