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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Power Automate: Get only Customer type =Contact from list all cases

(0) ShareShare
ReportReport
Posted on by 15
Hello
 
I would like to list all rows from Cases where the Customer is a Contact.
 
I can list all cases, and then check the Customer(Type) value( _customerid_value)
But I then have to filter through way too many cases so that the Flow gets too slow.
 
Is there a way to write a /Filter Rows/ or /Fetch XML Query/ that can check the  _customerid_value= 'contact' right away?
I have tried but it hasn't been succesful.
 
I have the same question (0)
  • Verified answer
    Leah Ju Profile Picture
    Microsoft Employee on at
    The Customer column related to account and contact tables.
    You can get FetchXML through editing filters in the case view.
    --Add related entity -> Customer(Contact) contain data
    You can paste the code to the 'Fetch XML Query' in the flow.
    <fetch>
    <entity name="incident">
    <attribute name="entityimage_url"/>
    <attribute name="incidentid"/>
    <attribute name="ticketnumber"/>
    <attribute name="prioritycode"/>
    <attribute name="title"/>
    <attribute name="customerid"/>
    <attribute name="statuscode"/>
    <attribute name="createdon"/>
    <attribute name="caseorigincode"/>
    <order attribute="title" descending="false"/>
    <link-entity name="contact" alias="aa" link-type="inner" from="contactid" to="customerid"/>
    </entity>
    </fetch>
    Like this:
     

    I hope you can mark my answer verified if it answer your question! If you have any questions, please feel free to contact me.
    Regards,
    Leah
     
  • Andreas Petersson Profile Picture
    15 on at
    Thanks Leah!
     
    I didn't think of checking the Views, just tried to get a Fetch XML from advanced find.
    It worked!

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 Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Pallavi Phade Profile Picture

Pallavi Phade 102 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 79

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 55 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans