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
@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?
@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?
@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.
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 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.
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?
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.
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
9 |
User | Count |
---|---|
51 | |
29 | |
29 | |
24 | |
22 |