Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Fetch XML Linked entity

Posted on by 1,695

I have the following fetch XMl

<fetch top="50" distinct="true">
<entity name="account">
<attribute name="new_companyname" />
<attribute name="accountid" />
<attribute name="name" />
<order attribute="name" />
<link-entity name="new_transactionsets" from="new_licenceid" to="accountid" link-type="inner">
<filter type="and">
<condition attribute="new_submittedon" operator="this-year" />
</filter>
</link-entity>
<link-entity />
</entity>
</fetch>

new_transactionsets has a 1:N relationship with new_transactions. new_transactions has a field new_type. Is there a way to return the new_type for the 1st associated record only?

  • XM-22040801-0 Profile Picture
    XM-22040801-0 11 on at
    RE: Fetch XML Linked entity

    Hi,

    What does "the 1st associated record" mean to you?

  • Suggested answer
    ankit_singhal Profile Picture
    ankit_singhal 560 on at
    RE: Fetch XML Linked entity

    Yes you can use multiple link entities in fetch xml.  try to create a fetch xrl using the fetch builder plugin in the xrm tool box

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans