How to remove a field from a SharePoint Online list view using a Power Automate flow.
URI
Headers
Body
Screenshot with example
Copy/paste example
YouTube video with example
Resources
SP.ViewFieldCollection.remove Method
That’s it, Happy testing!
Discover the new
How to remove a field from a SharePoint Online list view using a Power Automate flow.
SP.ViewFieldCollection.remove Method
That’s it, Happy testing!
I get a bad gateway error when I use this method unfortunately.
Have you been able to use the RemoveAll() function on a view?
Like in https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-visio/jj246804(v=office.15)
———–
_api/web/lists/getbytitle(‘@{variables(‘ListName’)}’)/Views(‘@{variables(‘ViewId’)}’)/ViewFields/RemoveAll()
I am running into a 404 Cannot find resource for the request RemoveAll
came across this – I fell foul of the syntax here: so a key observation is that this part of the api call string “/Views(‘@{variables(‘ViewId’)}’)” should be “/Views(guid‘@{variables(‘ViewId’)}’)” – note the “guid” text.
Hi Robert, interesting finding and thanks for the share.
Just retested the flow. In my demo environment it still works without the guid” syntax and it recognizes the string value as a guid for modern SharePoint Online sites and successfully removes fields with this approach.
What setup/values did you use in your test?