cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhruvin
Helper III
Helper III

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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (5,411)