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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans