web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to write fetchXml ...
Power Automate
Unanswered

How to write fetchXml in dataverse connector for get distinct data

(0) ShareShare
ReportReport
Posted on by

Hi Folks,

I am creating flow where I am using Data verse Connector and written fetchXml to get data from checklistquestionresponse, annotation and checklistasset entities, but in annotation holds multiple records for one questionresponse entity record due to which it show duplicate records, we just want to check if any record present in annotation entity for current query record of checklistquestionresponse entity. How can I do this, please refer below fetchXml query :

 

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
 <entity name="checklistquestionresponse">
 <attribute name="checklistquestionresponseid" />
 <attribute name="title" />
 <attribute name="instructions" />
 <attribute name="notes" /> 
 <attribute name="checklist" />
 <order attribute="title" descending="false" />
 <link-entity name="annotation" from="objectid" to="checklistquestionresponseid" link-type="outer" alias="ae">
 <attribute name="annotationid" />
 </link-entity>
 <link-entity name="checklistasset" from="checklistassetid" to="checklistasset" visible="false" link-type="outer" alias="checklistasset">
 <attribute name="name" />
 </link-entity>
 <filter type="and">
 <condition attribute="checklist" operator="eq" uitype="checklist" value="{@{triggerOutputs()?['body/checklistid']}}" />
<filter type="or">
 <condition attribute="notes" operator="not-null" />
 <condition entityname="ae" attribute="annotationid" operator="not-null" />
</filter>
 <filter type="or">
<condition attribute="acceptableunacceptablerange" operator="eq" value="Acceptable" />
 <condition attribute="responsevalue" operator="eq" value="Acceptable" />
 </filter>
 </filter>
 </entity>
</fetch>

 

To resolve this problem what should I do, should I create multiple data verse connector, if I use multiple data verse connector how can i check into html table for each checklistquestionresponse entity record.

SandeepTathe_0-1683206088077.png

Please advice.

Thanks in advance,
Sandeep

Categories:
I have the same question (0)
  • Linn Zaw Win Profile Picture
    2,996 on at

    Here's a blog post on how to get unique items from the duplicates.

    https://medium.com/@chirag.kanzariya/select-unique-items-in-microsoft-flow-403f3f5dfe4c

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard