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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / OR Condition within a ...
Power Automate
Answered

OR Condition within a Loop - Code Doesn't Persist through Save

(0) ShareShare
ReportReport
Posted on by 5

In a flow, I am querying a REST API data source that returns an array. I am using nested Loops to determine whether I consider the particular record relevant to the search (i.e. The search is looking for a Name within a State and trying to match to a known email or phone number). I am also interested in understanding the Reported Date of the record to determine if it is more recent than what has already been recorded. My issue is that the OR Condition erases after each Save of the flow and doesn't persist. The loop continues as if Step 2 doesn't exist (see below).

 

Here is the workflow:

  1. Query Return 
  2. Condition (Dataverse Reported Date is Null OR Reported Date is greater than Dataverse Reported Date)
  3. Condition (Reported Email equal to Dataverse known email)
  4. Condition (Reported Phone equal to Dataverse known phone)

If either 3 or 4 are true, the record is updated in the Dataverse record. This should only happen if the date is more recent (but it just runs through all of them).

 

Please help me identify where I am going wrong or if this is an issue with Power Automate.

 

Thanks,

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    creativeopinion Profile Picture
    10,506 Moderator on at

    @VirtualAdvisory Are you using the new designer or Classic Designer? If you are using the New Designer, can you try to switch to the Classic Designer and see if you continue to have issues saving?

     

    If so, you might need to create a brand new flow, switch to the Classic Designer first before making any edits to your flow. The new designer is still buggy.

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution ✅.
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • VirtualAdvisory Profile Picture
    5 on at

    Thanks @creativeopinion 

    I am using the New Designer and will try again with Classic as I debug.

    I noticed that I was having trouble saving Binary variables as well - specifically to "false".

  • creativeopinion Profile Picture
    10,506 Moderator on at

    @VirtualAdvisory No worries. The new designer is pretty buggy and even if you switch to the Classic after you've already used the New designer, it can still cause issues.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard