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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard