cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sudosaurus
Post Prodigy
Post Prodigy

Set status based on number value of another column

Hello,

 

I have built the list below for counting staff into our offices as they begin to re-open following the COVID-19 crisis.

 

We'd like a flow to update the status column for a list item if the "Staff" column equals the same number as the "Capacity" column.

By default this column is set to "Available".

 

offices.png

1 ACCEPTED SOLUTION

Accepted Solutions
ScottShearer
Super User
Super User

@sudosaurus 

First, you could use a calculated column in SharePoint - no need for a Flow.  Using a calculated column will help you avoid an infinite loop.

 

If you want to use a Flow, see my example below:

image.png

 

If you implement this solution please see this blog post that I wrote.

Updating the same item that triggered the Flow will create an infinite loop - that's what my blog post addresses.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

5 REPLIES 5
ScottShearer
Super User
Super User

@sudosaurus 

First, you could use a calculated column in SharePoint - no need for a Flow.  Using a calculated column will help you avoid an infinite loop.

 

If you want to use a Flow, see my example below:

image.png

 

If you implement this solution please see this blog post that I wrote.

Updating the same item that triggered the Flow will create an infinite loop - that's what my blog post addresses.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Thanks @ScottShearer that was much more simpler and makes sense. I was trying to over-complicate my workflow!

@sudosaurus 

Glad to help!  Please watch out for the infinite loop.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

It seems to be working correctly. What signs should I look out for re. Infinite Loop?

@sudosaurus 

The trigger that you are using fires when an item is created or modified.  The Flow may update the list item.  If the list item is updated, then the Flow will started again causing another update and causing it to start again......

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (2,932)