web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

SSRS fetchxml data for 2 entities

(0) ShareShare
ReportReport
Posted on by 3
Hello,
 
I have a main entity then I have another entity that has one to many relationship that is a list.  Is it possible to get the entire list of records with fetchxml? I would like to display the data from the main entity and the related records from the other entity in SSRS.
I have the same question (0)
  • Verified answer
    PerezAguiar Profile Picture
    Microsoft Employee on at
    Hey

    You can rely on the Advanced find to start building your query:
     
    if there's a relationship, it should show as "Related" on the dropdown list when builng it.  The advanced find will also generate a fetchXML that you can use as a starting point, and that has a Link-Entity attribute that is the one you're interested in:
     
    <fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true">
    <entity name="contact">
    <attribute name="fullname"/>
    <attribute name="telephone1"/>
    <attribute name="contactid"/>
    <attribute name="address1_composite"/>
    <order attribute="fullname" descending="false"/>
    <link-entity name="activitypointer" from="regardingobjectid" to="contactid" link-type="inner" alias="ah"/>
    <link-entity name="contact" from="contactid" to="parentcustomerid" visible="false" link-type="outer" alias="a_df70b5872164433aa551e577fcb1c644">
    <attribute name="parentcustomerid"/>
    </link-entity>
    </entity>
    </fetch>
     
    Regards,
     
    ******
    I hope this answer has helped you solve your problem. If you are satisfied with it, please consider marking it as the excellent answer by clicking on the green check mark below. This will help other users who have similar questions find the best solution.
     Thank you for your feedback!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans