Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

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

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.
 
  • Power Automate: Get only Customer type =Contact from list all cases
    Thanks Leah!
     
    I didn't think of checking the Views, just tried to get a Fetch XML from advanced find.
    It worked!
  • Verified answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    Power Automate: Get only Customer type =Contact from list all cases
    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
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans