Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Hierarchy based data to be shown outside CRM

(0) ShareShare
ReportReport
Posted on by 10

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

  • Zohaib Uddin Khan Profile Picture
    Zohaib Uddin Khan 2,811 on at
    RE: Hierarchy based data to be shown outside CRM

    Are you copying a Survey more than once? If Yes, follow the following approach.

    1. Copy the survey from the first one. Now, you have Original Survey and Copy of Original Survey.

    2. Now, copy the 'Copy of Original Survey', not the Original Survey. So, you have Original Survey, Copy of Original Survey and Copy of Copy of Original Survey.

    Every survey can be copied once only. (This is what I learn through experience, no documentation restricted it)

    P.S. Overwrite = No while copying.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,387 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans