cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cpierich
New Member

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

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
New Member

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.

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

 

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!

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?

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
Frequent Visitor

Hi. Did you ever get this resolved?

Lexnnn
Helper II
Helper II

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
Helper II
Helper II

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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Users online (1,812)