Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

fetch xml query limitaion and guidance

(0) ShareShare
ReportReport
Posted on by 10

HI

I have few questions when i am building my fetch xml to retrive the data , it would be great if someone can help me with suggestions or approach.

1. I have 3 entities ( entity1,entity2,entity3)

    Entity1 

E1C1       E1C2  

1              user1         

2              user2

    Entity2 ( relationship to Entity1 is 1 (Entity1) : N (entity2) :E1c1 is the realtionsjip)

E2C1    E2C2      E1C1

1          State1       1

1          State1       2

2          Stae2       2 

3          Stae3       2 

    Entity 3( relationship to Entity2 is 1 (Entity2) : N (entity3) :E2C1 is the realtionship)

E3C1 E3C2    E2C1

1        City1      1

1        City1      2

2        City2      1

3        City4       2

I want the data with this filtering conditions (E1C2=user1 and E2C2  = 1 and  E3C2=City 2) OR (E1C2=user2 and E2C2=State2 and E3C2=City4) 

The relationship between the tables are manditory there can be records in Entity1 but not related to any record in Entuty2 and same  for Entity3

i am finding diffidulty to have these conditons of multiple entities which are related for these cases

1. The column filters are related and if i have to apply the and operator on individual table thats not possible

2. If i apply the filters at once using alias, as these record relationship are not manditory across entity some column may miss out for the joins.

Let me know if someone had these issues or some thoughts on this.

Thanks in advance,

Manoj.

     

  • Suggested answer
    DavePinch Profile Picture
    on at
    RE: fetch xml query limitaion and guidance

    Hi Manojmathe, for better visibility try the Power Apps community at Power Apps Community - Power Platform Community (microsoft.com). This forum is for Dynamics 365 Guides, a mixed reality training/guidance app.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Siv Sagar Profile Picture

Siv Sagar 104 Super User 2025 Season 1

#2
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 51 Super User 2025 Season 1

#3
Engy Louis Profile Picture

Engy Louis 37

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans