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 / Check if record exists...
Power Automate
Answered

Check if record exists in Dataverse

(0) ShareShare
ReportReport
Posted on by 70

Hello World!

I am building a flow using an Infusionsoft connection (Type:  When there is a new order).

When there is a new order (trigger), I would like to add a new row to my Contact table (action).   I can successfully parse the json and create the new row.  I have created a custom column called, tvi_keapid, in my Contact table to keep track of the contact ID that is sent from Infusionsoft.

However, if there is already a record of the same name/id in my Contacts table, my flow creates a duplicate record. 

I would like a flow that checks first to see if there is a record, if true then do one thing and if false, then do something else.

I think I can use a List Rows (action) and XML query, but am lost as to the syntax.  Here is an image:

Newbie150_0-1653001801768.png

 

Thank you!

Categories:
I have the same question (0)
  • Newbie150 Profile Picture
    70 on at

    Hello World! I solved the problem and thought to share the solution with you all.

    I am grateful for the help from these resources, in no particular order:

    https://www.d365geek.co.uk/single-post/2020/10/22/check-if-records-exist-or-don-t-exist-with-power-automate

    https://docs.microsoft.com/en-us/power-automate/dataverse/list-rows

    Daniel Lawkewitz -  Introduction to OData filters for the Common Data Service (CDS)

    https://www.youtube.com/watch?v=QE8v-IuwDi4

     

    And here is the solution that worked for me:

    Newbie150_0-1653058845835.png

     

     

     

     

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @Newbie150 ,

     

    Glad to see you resolved this issue.

    You could mark your own reply to close the case.

     

    Best Regards,

    Wearsky

  • Verified answer
    Newbie150 Profile Picture
    70 on at

    @v-xiaochen-msft Sure! Done.

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard