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 Automate
Unanswered

Query building issues

(0) ShareShare
ReportReport
Posted on by 159

Hi folks,

 

Working in Dataverse here. I need to retrieve a list of Contacts that either have no case record associated, OR only case records with status Resolved or Canceled.

 

I'm struggling to build this query, in part because the filter options in Dynamics do not offer the Or functionality across multiple tables. Currently I'm trying my luck with the Dataverse REST builder and the Fetch XML builder within XRM Toolbox, but seem to be getting stuck. this is my latest FetchXML try:

 

</filter>

<link-entity name="incident" alias="ab" link-type="inner" from="customerid" to="contactid">

<filter type="or">

<condition attribute="statecode" operator="eq" value="0"/>
<condition attribute="customerid" operator="null" entityname="ab"/>

</filter>
</link-entity>

This is if course not the complete XML. When running this in the Builder, I get an error implicating that I should remove the "entityname="ab"" but that results in another error.

 

Not sure how to proceed here - any advice would be greatly appreciated!

 

Categories:
I have the same question (0)

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard