• Remove a field from a View
  • Power Automate icon SharePoint Online icon
  • 4

How to remove a field from a SharePoint Online list view using a Power Automate flow.

URI

Headers

Body

Screenshot with example

removeviewfield

Copy/paste example

YouTube video with example

Resources

SP.ViewFieldCollection.remove Method

That’s it, Happy testing!

You may also like...

4 Responses

  1. Ollie says:

    I get a bad gateway error when I use this method unfortunately.

  2. Simon says:

    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

  3. Robert Tucker says:

    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.

  4. Dennis says:

    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?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.