Create a View

How to create a view in a SharePoint Online list using a Power Automate flow.

URI

Headers

Body

Screenshot with example

Sample data
ListName – Example List with Views
View Title – View with version numbers
Fields used in view – Title (linked to item), Created By, Modified On, Modified By, Version (internal names)

createaview

Copy/paste example

Resources

SP.ViewCollection.Add method

That’s it, Happy testing!

You may also like...

2 Responses

  1. Max says:

    Hello Dennis,
    thanks for this example!
    I was wondering how you come up with these kind of requests? I tried to build it myself but got stuck with the ViewFields property as I was using something like “[\”Field1\”, \”Field2\”]” as value since in the documentation it is asked a String[] type.
    What would you recommend as a source of information? I can use and modify the multiple examples that are out there but I have not found a systematic way to understand the process.
    Best, Max

  2. Dennis says:

    Hi Max,

    Typically I reverse engineer this by making the view in the interface and inspecting the HTTP request via the Developer toolbar of my browser (in the Network tab).

    Not every type of request or property is documented, that’s why I am sharing these type of things on my blog 🙂

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.