I have Entity "Opportuniy" {ID/EntityName}
(0 -level of depth)
It's easy to get fields. This "Opportuniy" relates to 3 (for example) other entities (1-level depth)
These 3 entities from level-1 have 2 (for example) relating to other entities for each entity. (2-level depth)
So, it looks like some sort of tree:
Opportunity:
|-entity 1
|-entity 1-1
|-entity 1-2
|-entity 2
|-entity 2-1
|-entity 2-2
|-entity 3
|-entity 3-1
|-entity 3-2
How can i retrieve this structure programatically, using C#?
I tried to use service.retrive(...)
but here I must set ID and entity name for each entity. Can this structure be retrieved in single request?
Thank you
*This post is locked for comments
Hello,
I don't think you can use Retrieve for this purpose. You should use RetreiveMultiple combining it with FetchXml. To build proper FetchXml you can use XrmToolbox and FetchXmlBuilder plugin.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156