Using Union function to remove duplicates – Power Automate / Dataverse


The article discusses an error encountered in a cloud flow while trying to fetch distinct work orders with notes and attachments. The error message indicates a mismatch in resource types. The solution is to rewrite the Fetch XML query without using aggregation and then use the Union function to remove duplicates. The article provides an example of how to use the Union function to achieve this. The Union function is used to combine two arrays and remove any duplicate values. The article concludes by mentioning that more information on Fetch XML queries can be found in the provided link.


Article 13m

Login now to access my digest by 365.Training

Learn how my digest works
Features
  • Articles, blogs, podcasts, training, and videos
  • Quick read TL;DRs for each item
  • Advanced filtering to prioritize what you care about
  • Quick views to isolate what you are looking for right now
  • Save your favorite items
  • Share your favorites
  • Snooze items you want to revisit when you have more time