cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MShelnutt
Post Patron
Post Patron

Update Item Not working

I have a SharePoint List that tracks the progress of creating a new material in our ERP system.  I have a column- "Status" that is a choice column, and is not part of the Form for new entries. 

The logic goes like this- Engineering creates a New item in the SharePoint list, and fills in the first few fields.  The last field they fill in is a choice column with (2) options.  This is the trigger that determines who the next department to work on this process is (US20 Operations OR US21 Operations) by setting the Status column to show this.  Then the next department (US20 Operations OR US21 Operations) completes their boxes (all are Yes/No columns, with default set to No), in which the flow should update the Status to show the next downstream process name (Purchasing, Accounting, Quality, Sales, Complete).  The last column of their respective columns is the trigger for the next department, and so on until the last department checks their box, then the Status will display "Complete". 

I have a Flow setup that sets this column's value when a New Item is Created (US20 Operations OR US21 Operations)- and it works as intended. 
Then I have a second flow setup where when an Item is Modified, it is supossed to update the Status column based on If the trigger columns (all Yes/No columns whose default is No) changes.  I have it set up to check the trigger columns working backwards, from end to the beginning and then terminating if it finds a "true" condition- because as the SharePoint is updated by the various departments, their respective check boxes will be "true" and I would not want the Status to be stuck on the first step of the process.

MShelnutt_1-1709047426489.png

 

Problem Statement: The flow tests successfully and no errors are found, but it is not Updating the SharePoint List as intended.

SharePoint List-

 

MShelnutt_3-1709043596458.png

Flow-

 

MShelnutt_0-1708955196374.png

When Item is Modified-

MShelnutt_0-1709043916083.png

 

 

MShelnutt_0-1709043422281.png

 

 

MShelnutt_1-1709043462108.png

MShelnutt_2-1709043496788.png

Test Results-

When Item is Modified outputs=

MShelnutt_1-1709043153643.png

But, for the Condition action=

MShelnutt_0-1709043072970.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Most Valuable Professional
Most Valuable Professional

As you scroll down through the dynamic content there are headers that reference the action that the dynamic content comes from. You are correct that the trigger should probably be at or near the bottom.  You need to make sure that you are picking that value from the set of values under the trigger in the dynamic content list.  the following is from a flow that uses the When a file is created trigger. You can see the header in the dialog and the fields listed below it.

image.png



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

View solution in original post

55 REPLIES 55
trice602
Super User
Super User

Hi @MShelnutt ,

 

The ID column in your update item action is a required field.  It looks empty in your screenshot.

 

 

If this was helpful: Please mark as a solution Give me a thumbs up Always glad to help, Tom! Connect on LinkedIn

Hi @trice602 not sure why the screenshot was like that, I went through and checked all the Condition Actions and their respective Update Item Actions and the ID is in all of the fields- which would explain why the flow runs successfully according to Power Automate.   And when I run the Flow Checker, there are no errors.
Any other ideas?

@trice602 

MShelnutt_0-1708975372098.png

 

trice602
Super User
Super User

Hi @MShelnutt ,

 

Can you verify your last run history please?  Please verify the Yes side of your condition is processing; I suspect the condition action and the update item is not getting processed at all.

If this was helpful: Please mark as a solution Give me a thumbs up Always glad to help, Tom! Connect on LinkedIn
MShelnutt
Post Patron
Post Patron

@trice602 

MShelnutt_0-1708975565822.png

 

trice602
Super User
Super User

Hi @MShelnutt ,

 

Thanks for sharing.  Now click on the date of the last run and scroll down to the conditional action and share the results please.  You need to check and see if the condition is true or false.

 

What this screen shows you is the run was successful but it doesn't show you the path of the conditional action.

 

trice602_0-1708975711326.png

 

 

 

If this was helpful: Please mark as a solution Give me a thumbs up Always glad to help, Tom! Connect on LinkedIn
MShelnutt
Post Patron
Post Patron

@trice602 
I see some older suggestions for this type of flow mentions starting out with a "Get Record" before doing updates, is that necessary anymore?

@trice602 

MShelnutt_0-1708975875003.png

 

MShelnutt_1-1708975917295.png

 

@trice602  you are correct, it is skipping for some reason.

@trice602 

I dont see anything wrong with the selected logic-

MShelnutt_2-1708976139188.png

 

trice602
Super User
Super User

Hi @MShelnutt ,

 

Ok, confirmed, the update item action is not processing so there's nothing to fix there it is above that action.  Please check the output of this action from the last run and look for the column that has the condition question.  Specifically, check if the value is a Yes/No or a 1/0 - I suspect this is a 1 or 0 value that is getting returned.  Because it doesn't equal Yes, your condition is always false and your update item action never fires.

 

trice602_0-1708976877475.png

 

 

If this was helpful: Please mark as a solution Give me a thumbs up Always glad to help, Tom! Connect on LinkedIn

@trice602 
I dont see anything out of place.
The field "US21 Routings" was the trigger column for this test-

MShelnutt_0-1708977885183.png

MShelnutt_1-1708977946777.png

MShelnutt_3-1708978087531.png

 

MShelnutt
Post Patron
Post Patron

@trice602 
*If "US21 Routings" is equal to "Yes",
Update Status to "Accounting"

MShelnutt_4-1708978539436.png

 

@trice602 
Why is it saying the Expression Result was "false", when we can clearly see that for "US21 Routing" it had "true" ?-

MShelnutt_0-1708979201258.png

 

MShelnutt_1-1708979239907.png

 

trice602
Super User
Super User

Hi @MShelnutt ,

 

US Routings is not a Yes/No value set - the values, as it appears in Power Automate, are true/false.  The root cause of the conditional action also going to the false side is because US Routings is in fact 'false' not 'Yes'.

 

My recommendation is to investigate this item, or a testing item, where the US Routings value is true and then work with testing on that item.  The current item is false and will not update your item because "Yes" is not a value for this item's column.

 

 

If this was helpful: Please mark as a solution Give me a thumbs up Always glad to help, Tom! Connect on LinkedIn

@trice602 
Here is the SharePoint List settings:

MShelnutt_0-1708980345350.png

 

It seems Power Automate is translating "Yes/No" into "True/False"

 

MShelnutt_1-1708980511483.png

 

So then, should I change all of my Conditions to be "If xxxx is equal to "true"...." ?

 

trice602
Super User
Super User

Hi @MShelnutt ,

 

Correct.  In Power Automate this is true/false. so please change Yes to true (lower case true).  THEN, you still need to test with and item that is in fact true, your current item is false and won't update accordingly.

 

Please consider marking this reply as the solution - it is a common FAQ about yes/no, true/false, 1/0 condition action values.

 

 

If this was helpful: Please mark as a solution Give me a thumbs up Always glad to help, Tom! Connect on LinkedIn
MShelnutt
Post Patron
Post Patron

@trice602 
I changed all my conditions from "Yes" to "true".

 

MShelnutt_2-1708981540665.png

 


I created new entries in SharePoint.
No change from previous situation.

The last test run:

MShelnutt_0-1708981441755.png

 

MShelnutt_1-1708981475736.png


I dont understand why the expression is not being satisfied.  

IF "US21 Routings" is equal to "true", then Update Status.
That is exactly what the test record is showing.

trice602
Super User
Super User

Hi @MShelnutt ,

 

In a previous comment you shared the run output and that value was false.  Please revisit your test item and make sure the item is true.

 

 

If this was helpful: Please mark as a solution Give me a thumbs up Always glad to help, Tom! Connect on LinkedIn

Helpful resources

Announcements

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Announcing Power Apps Copilot Cookbook Gallery

We are excited to share that the all-new Copilot Cookbook Gallery for Power Apps is now available in the Power Apps Community, full of tips and tricks on how to best use Microsoft Copilot as you develop and create in Power Apps. The new Copilot Cookbook is your go-to resource when you need inspiration--or when you're stuck--and aren't sure how to best partner with Copilot while creating apps.   Whether you're looking for the best prompts or just want to know about responsible AI use, visit Copilot Cookbook for regular updates you can rely on--while also serving up some of your greatest tips and tricks for the Community. Check Out the new Copilot Cookbook for Power Apps today: Copilot Cookbook - Power Platform Community.  We can't wait to see what you "cook" up!    

Welcome to the Power Automate Community

You are now a part of a fast-growing vibrant group of peers and industry experts who are here to network, share knowledge, and even have a little fun.   Now that you are a member, you can enjoy the following resources:   Welcome to the Community   News & Announcements: The is your place to get all the latest news around community events and announcements. This is where we share with the community what is going on and how to participate.  Be sure to subscribe to this board and not miss an announcement.   Get Help with Power Automate Forums: If you're looking for support with any part of Power Automate, our forums are the place to go. From General Power Automate forums to Using Connectors, Building Flows and Using Flows.  You will find thousands of technical professionals, and Super Users with years of experience who are ready and eager to answer your questions. You now have the ability to post, reply and give "kudos" on the Power Automate community forums. Make sure you conduct a quick search before creating a new post because your question may have already been asked and answered. Galleries: The galleries are full of content and can assist you with information on creating a flow in our Webinars and Video Gallery, and the ability to share the flows you have created in the Power Automate Cookbook.  Stay connected with the Community Connections & How-To Videos from the Microsoft Community Team. Check out the awesome content being shared there today.   Power Automate Community Blog: Over the years, more than 700 Power Automate Community Blog articles have been written and published by our thriving community. Our community members have learned some excellent tips and have keen insights on the future of process automation. In the Power Automate Community Blog, you can read the latest Power Automate-related posts from our community blog authors around the world. Let us know if you'd like to become an author and contribute your own writing — everything Power Automate-related is welcome.   Community Support: Check out and learn more about Using the Community for tips & tricks. Let us know in the Community Feedback  board if you have any questions or comments about your community experience. Again, we are so excited to welcome you to the Microsoft Power Automate community family. Whether you are brand new to the world of process automation or you are a seasoned Power Automate veteran - our goal is to shape the community to be your 'go to' for support, networking, education, inspiration and encouragement as we enjoy this adventure together.     Power Automate Community Team

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (3,985)