Hi guys,
I have an issue while doing ssrs report. my scenario is i need to create a ssrs report based on the hierarchy of users in ms crm
Example: if a user is created an account he will become owner for the account, for that owner there will be one manager and for that manager there will be another manager like that i need to fetch xml by matching the related levels. please help he out.
I am using below fetch xml but i am able to retreive the data upto one manager level
<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="account" enableprefiltering="1">
<attribute name="name" />
<attribute name="telephone1" />
<attribute name="primarycontactid" />
<attribute name="parentaccountid" />
<attribute name="new_mainbusiness" />
<attribute name="new_customercode" />
<attribute name="new_city" />
<attribute name="ownerid" />
<attribute name="accountid" />
<attribute name="new_country" />
<attribute name="new_state" />
<attribute name="address1_postalcode" />
<attribute name="address1_line3" />
<attribute name="address1_line2" />
<attribute name="address1_line1" />
<link-entity name="systemuser" from="systemuserid" to="owninguser" visible="false" link-type="outer" alias="systemuser">
<attribute name="parentsystemuserid" />
<attribute name="createdby" />
</link-entity>
</entity>
</fetch>
*This post is locked for comments
I have the same question (0)