Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Update if record exists in Dynamics 365..



I'm trying to create a flow that updates a record in Dynamics 365 (entity product), the information is coming from SQL Azure. So basically if the record listed in SQL exists in Dynamics 365, it should update a specific field. 


I'm trying the List Records aciton from Dynamics and the Get Rows action from SQL Server to do the comparison, but they get in an eternal loop and it never finishes.


Can someone tell me what's going and give me some insight?





Community Support Team
Community Support Team

Re: Update if record exists in Dynamics 365..

Hi @gmwill,


Could you share a screenshot of your Flow configuration?

I wonder if it would be a problem with your action configuration or Condition settings, which led to the occurrence of an eternal loop.

Have you tried setting Top Count in List records action to a smaller value? The default setting = all, so if there are too many records, it will lead to too many executions.

You could try to find the cause of the problem by setting the Top Count to a smaller number.

It would be helpful if you could post full screen shoot and we would provide a proper workaround for you.


Best Regards,


Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Update if record exists in Dynamics 365..

Hey, @gmwill!

Thank you for posting on the Flow Community Forum! It appears as though @v-bacao-msft would like some more information in order to further assist you properly with your issue. Please share any additional information that was requested in order to decrease the amount of time that it will take for you to be assisted!

Thank you for being an active member of the Flow Community!

Flow Community Manager

Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!

Helpful resources


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (3,599)