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 / Merge operation(If exi...
Power Automate
Unanswered

Merge operation(If exists update else insert) in flow

(0) ShareShare
ReportReport
Posted on by

I am trying to create the below flow which calls an api on daily basis and inserts data into sql server table row by row in a loop.

I want to execute a merge operation here that is before final inserting into table I want to check if this data already exists in table or not. How do I achieve this in flow. Pls help.

 

 

flow_0.JPG. I want to

 

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @Anonymous 

     

    Before you insert check the record exists using Get Row or Get Rows using Filtery query to match the identifier. Add an IF condition to check whether the record exists or not.

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    I have done a work around and added execute procedure step in flow executing update from a stored procedure 

  • Community Power Platform Member Profile Picture
    on at

    I have done a work around and added execute procedure step in flow and executing merge operation from a stored procedure 

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard