cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
chhe
Helper III
Helper III

Create and edit List view

Hello,

 

is there any possibility to create a new list view by a flow? What I want to do is the following:

 

I have a list where all employees of our department are stored. In a second list we manage our tasks. Each employee has his own view, this view is formatted by JSON. Now I want to create a new list view when I add a new employee. 

Is there any solution for this?

Thank you!

2 REPLIES 2
Amanthaper
Responsive Resident
Responsive Resident

Hi @chhe 

There's no out-of-the box action to do this but I believe it can be done either using the Sharepoint HTTP action (Sharepoint REST API) or setting up a Custom connector (again, it's the Sharepoint REST API).

Amanthaper_0-1602217685968.png

I have personally not done this but it looks like someone has here. http://blog.techperspect.com/2015/07/create-list-view-using-sharepoint-rest.html

 

Cheers,

Aman

 

I have found a guide to create a list view:

 

http://www.ludovicperrichon.com/sharepoint-rest-api-call-with-powerautomate/#createlistview

 

But I have a problem:

 

The list view I want to create has a JSON formatted view. The JSON code is about 500 rows long. I have put the following text in die HTTP request:

 

{
    "__metadata": {
        "type": "SP.View"
    },
    "ViewType": "HTML",
    "Title": "testAngelegt",
    "DefaultView": false,
    "PersonalView": false,
    "CustomFormatter":  "JSON_CODE"
}

 

But I run into a timeout. If I put a short JSON Code everything works fine. I can't believe that it's not possible to send a longer JSON Code via HTTP request. Is there any solution for this?

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,023)