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 / Update a SharePoint li...
Power Automate
Unanswered

Update a SharePoint list item based on another item in the same list

(0) ShareShare
ReportReport
Posted on by 10

Hi,

 

I'm attempting to update a SharePoint list item based on another item's value in the same list. The column I'm testing is called "EOP Response Documentation", which is multiline text. If this item is not empty then I need the list item "EOP Document Status" to change it's value to "Draft in Review". Otherwise it should remain at the default value of "Not Started". The flow I'm working on looks like this. This item is a dropdown choice, single select only, "Not started", "Draft in Review", and "Completed". 

 

DocStatusUpdate_ScreenShot01.jpgDocStatusUpdate_ScreenShot02.jpg

 

Unfortunately, this what the output looks like in the "EOP Document Status" column

DocStatusUpdate_ScreenShot03.jpg

These are the three choices from the dropdown list. The third choice "Completed" will need to be based on a a "Yes/No (checkbox) item, i.e. if the item is checked "Yes" then the "EOP Document Status" should change to completed.

 

DocStatusUpdate_ScreenShot04.jpg 

 

Any help would be greatly appreciated.

 

Thanks, GarySD

Categories:
I have the same question (0)
  • v-yetonggu-msft Profile Picture
    on at

    Hi @GarySD ï¼Œ

    Please try this expression in "EOP Document Status" parameters:

    join(xpath(xml(json(concat('{"body":{"value":', item()?['EOPDocument'] , '}}'))), '/body/value/Value/text()'),',')

    Best Regards,

    Sunshine Gu

  • GarySD Profile Picture
    10 on at

    Hi Sunshine Gu,

     

    Thank you for the help!

    I'm not sure what you mean by "parameters" . Is it in the flow that I'm working on? If so, I'm not sure where in flow that would be? I'm new to building flows and power apps in general.

    Thanks again.

  • GarySD Profile Picture
    10 on at

    I did try to paste your solution into this section of the flow.

     

    DocStatusUpdate_ScreenShot06.jpg

     

    When I ran the flow, it errored out with this message.

     

    DocStatusUpdate_ScreenShot05.jpg

  • ganeshsanap Profile Picture
    1,551 on at

    @GarySD If you are using single selection choice column in SharePoint list, You should see choice options like below in "Update item" action where you can directly choose "Not Started" as you have update item action inside "If no" block. 

    ganeshsanap_0-1718270093186.png

    Let me know if this works for you.


    Please click Accept as solution & ‌‌👍 if my answer helped you to solve your issue. This will help others to find the correct solution easily. If the answer was useful in other ways, please consider giving it ‌‌👍

     

    For SharePoint/Power Platform blogs, visit: Ganesh Sanap Blogs

  • GarySD Profile Picture
    10 on at

    Thank you!

    That did help me to get the logic straight. 

     

    I do have have 2 things to work out.

     

    First, when I changed this flow from a manually triggered flow to "When an item is created or modified", it will run as an infinite loop. I don't know what to do to keep this from happening.

     

    Second, I had already built an automated email that triggers when the status is changed to "Draft in Review". In both the manual and when "When an item is created or modified" flow are ran, a new email is sent for every row that has "draft in Review". Again, I don't know what to do to keep this from happening.

     

    Here is the current version of my flow.

     

    DocStatusUpdate_ScreenShot07.jpg

  • GarySD Profile Picture
    10 on at

    To clarify, not just the updated "EOP Document Status" Column items but even the items that already had "Draft in Review" listed will send out an email.

     

    Thanks again.

  • sunilrana86 Profile Picture
    2 on at

    To stop the infinite loop, you should be adding a condition check and terminate action. It can be based on modified by a specific user under which the update action running. It can also be a specific field value which we are updating.

     

    Can you share some more details so that I can guide you further on this?

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard