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.
  • Verified answer
    PerezAguiar Profile Picture
    on at
    SSRS fetchxml data for 2 entities
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,274 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,947 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans