cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
cpierich
Level: Power Up

Sharepoint List Field Update

I see the ability to create a new SharePoint list item but is there a way to update a SharePoint list item? Looking for something like an approval workflow that when approved it updates the "Status" field of the list to be "Approved" or "Rejected" based on the approval result. Is this something that's planned soon or not on the horizon yet?

1 ACCEPTED SOLUTION

Accepted Solutions
efialtes
Level 8

Re: Sharepoint List Field Update

jsforsyt

I guess the action block you are looking for is documented here:

https://powerapps.microsoft.com/en-us/tutorials/connection-sharepoint-online/#patchitem

 

However, in the editor it is called "Sharepoint Online Update Item" as it is shown on the link you shared

 

Once you fill the site URL and the list name, the corresponding input fields to fill the list-related column are shown. I haven't tested it yet, but I have been able to add it to a test flow and fill both site URL and list name. When adding a new action, just click on the search icon and type "Sharepoint"

 

Hope this helps

 

View solution in original post

8 REPLIES 8
jsforsyt
Level: Power Up

Re: Sharepoint List Field Update

I saw this functionality in this article: (http://www.o365dude.com/2016/05/07/making-a-vacation-request-flow-with-microsoft-flow-preview/?utm_c...), but the option isn't there.

efialtes
Level 8

Re: Sharepoint List Field Update

jsforsyt

I guess the action block you are looking for is documented here:

https://powerapps.microsoft.com/en-us/tutorials/connection-sharepoint-online/#patchitem

 

However, in the editor it is called "Sharepoint Online Update Item" as it is shown on the link you shared

 

Once you fill the site URL and the list name, the corresponding input fields to fill the list-related column are shown. I haven't tested it yet, but I have been able to add it to a test flow and fill both site URL and list name. When adding a new action, just click on the search icon and type "Sharepoint"

 

Hope this helps

 

View solution in original post

cpierich
Level: Power Up

Re: Sharepoint List Field Update

Ah yes, many more SharePoint Online options when you use the search instead of scrolling through the list and trying to find things. Thanks for the responses!

lchang
Level: Powered On

Re: Sharepoint List Field Update

It seems to be me that we are only able to update custome list fields at this point. What I really want to do is to update Sharepoint's internal Approval Status field (ie the OData_ModerationStatus field) directly. Is this possible at all currently or still something to come in the future?

StuartSSTech
Level: Powered On

Re: Sharepoint List Field Update

Was this issue ressolved, can you use the OTB Approval Status Column and update to match the Approve Rejected outcome of the Send Approval Email?

D1Rubie
Level: Powered On

Re: Sharepoint List Field Update

Hi. Did you ever get this resolved?

Lexnnn
Level: Powered On

Re: Sharepoint List Field Update

I have an approval list for creation of new O365 groups.

I wanted to approve the list items directly from the email using flow.

I tried out myself but for some reason it did not work but using the method described below, I was able to do it. Thank you to the author!

Found this solution: https://www.techmikael.com/2018/05/use-microsoft-flow-to-implement.html#comment-form

I tried it out, I also works for me for approval of Sharepoint list items. Really helpful since microsoft has not implemented list items in "set content approval status".

 

Note: this solution is for Lists where Approval is enabled and the field is not a manually created field but maintained by the system so you can not use it in Flow.

Note: the approval process can take some time, for test purpose, wait multiple hours, first time took time for some reason, now it works fine.

Note: In "set content approval status", in Library name use List name but not the one from the URL

eg. https://...sites/teamsites/team-orders and the list name is Team orders, use Team orders as library name and not team-orders.

 

I though of using PATCH function to update the "approval status" field instead of "Set content approval status" but I lack the developers knowledge to write the command.

flow1.PNGflow2.PNGflow3.PNGflow4.PNGflow5.PNGflow6.PNGflow7.PNGflow8.PNG

 

Don't know if all these steps are needed but it works for me.

Hope this helps!

Lexnnn
Level: Powered On

Re: Sharepoint List Field Update

I have an approval list for creation of new O365 groups.

I wanted to approve the list items directly from the email using flow.

I tried out myself but for some reason it did not work but using the method described below, I was able to do it. Thank you to the author!

Found this solution: https://www.techmikael.com/2018/05/use-microsoft-flow-to-implement.html#comment-form

I tried it out, I also works for me for approval of Sharepoint list items. Really helpful since microsoft has not implemented list items in "set content approval status".

 

Note: this solution is for Lists where Approval is enabled and the field is not a manually created field but maintained by the system so you can not use it in Flow.

Note: the approval process can take some time, for test purpose, wait multiple hours, first time took time for some reason, now it works fine.

Note: In "set content approval status", in Library name use List name but not the one from the URL

eg. https://...sites/teamsites/team-orders and the list name is Team orders, use Team orders as library name and not team-orders.

 

I though of using PATCH function to update the "approval status" field instead of "Set content approval status" but I lack the developers knowledge to write the command.

 

flow1.PNGflow2.PNGflow3.PNGflow4.PNGflow5.PNGflow6.PNGflow7.PNGflow8.PNG

Don't know if all these steps are needed but it works for me.

Hope this helps!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,048)