cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MRauscher
Advocate II
Advocate II

Documents Library without Edit Grid View Button

Hi all,

 

I create a SharePoint page via a flow. This works without any problems. But now I would like to display the document library without the menu item Edit in Grid View. So that the users can use it to bypass the actual process.


Now I would like to not display this item. I know how to do it via JSON, but it should be done automatically when the page is created. I assume it is done via HTTP request, but I am not sure.
I include the JSON call under All Documents - Format Current View.
Can anyone help me with this?

 

 

{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
  "commandBarProps": {
    "commands": [
      {
        "key": "editInGridView",
        "hide": true
      },
      {
        "key": "automate",
        "hide": true
      },
      {
        "key": "integrate",
        "hide": true
      }
    ]
  }
}

 

 

 thx Michael

9 REPLIES 9
annajhaveri
Community Champion
Community Champion

@MRauscher  do you need to add same document library to the page everytime a new page is created, or will it be different document library to be added to different pages that are created by the flow? 

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

@annajhaveri  The column should always be created when creating a SharePoint page in the standard library (Shared Documents).

@MRauscher  so are you creating a new column in library each time a sharepoint page is created?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

@annajhaveri Not for everyone in our tenat, but for certain SharePoint sites we need that. This column is also described with information in the further process, so that the user can see what status the process has.

MRauscher
Advocate II
Advocate II

However, this is not about the column, but I would like to hide the menu item Edit in grid view in the top page of the library.

MRauscher_0-1669899336673.png

 

@MRauscher  one idea is to create a page which has the document library added, then create copy of the page and rename the page, so that new page will have document library added to the page. If you dont want to do this, then i think you will have to write script in Azure to add document library to page and then call that script from flow.

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

Azure is not an option for this. It would have to be done somehow with an HTTP request or something.🤔

@MRauscher  does creating a page in the site with document library added to it and then creating copy of the page, works?

Regards,
Anna Jhaveri

If I have answered your question, please mark the post as Solved to help other users to identify the correct answer
If you like my response, please give it a Thumbs Up.

I think I explained it wrong. It's a team website created by the flow, so it's not a page. The view of the standard document library is to be edited or the element Edit in Grid View is to be removed.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (6,000)