cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhruvin
Super User
Super User

Power Automate List Rows Action - FetchXML Vs OData Filter - What is best to retrieve 1:N Records?

I have two Dataverse Table with 1:N Relationship

- Knowledge Assessment

- Knowledge Questions 

 

Knowledge Assessment is having 1:N Relationship with Knowledge Question!

 

Whenever, Item is updated to Knowledge Assesment I need to retrieve all the records from Knowledge Questions

 

I am using Power Automate - "List Rows" action

 

Dhruvin_0-1645437173131.png

 

Now to filter the record from Another table - Should I use Filter Rows with Expand Query??? 

 

Or

 

Use FetchXML Query??

 

Which is more performant?  OData Vs FetchXML?

1 ACCEPTED SOLUTION

Accepted Solutions
ManishJain
Solution Sage
Solution Sage

Hi @Dhruvin ,

 

It completely depends upon number of records you are wanting to pull from CRM. If you are pulling few 100 records both are fine. But if you are pulling over 5000 records Odata because with pagination it pulls are records whereas for Fetch we need to do more work. 

 

Thanks

View solution in original post

3 REPLIES 3
ManishJain
Solution Sage
Solution Sage

Hi @Dhruvin ,

 

It completely depends upon number of records you are wanting to pull from CRM. If you are pulling few 100 records both are fine. But if you are pulling over 5000 records Odata because with pagination it pulls are records whereas for Fetch we need to do more work. 

 

Thanks

@ManishJain  I have one more quick thing to ask!

Is it something - FetchXML query take some time to reflect our actual data in the resultset! I came across with the scenarion - where I added new column in my dataverse table and updated FetchXML query as well. Still it is not populating that column in resultset.

 

Also, sometimes new rows are added and try to retrieve it using FetchXML. But still new record is not available in Resultset. But after sometime same query is returning the result!

 

Hi @Dhruvin ,

 

It completely depends upon synchronization within CDS and if you have data available for that column.

 

Thanks

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (3,261)