Hi,
I configured a flow in order to create several folders and sub folders in a doc library once an item has been added in a list. This is working fine!
However, I need to pin one of these subfolders created by the workflow. How can I do this?
ex.
Once an item is created, then create
Folder 1, subfolder a (Folder1/subfoldera), subfolder b (Folder1/subfolderb)
and then : pin subfolder b
Pin to top functionnality is available in Sharepoint. Once this pin is selected, the folder is always displayed on the top of the library as shown in my screenshot :
Solved! Go to Solution.
There's nothing available in the flow actions to do that. I looked to see if there was a REST call that could do it, but didn't find anything that way either. So at this point I think the only way to do it is in the user interface.
Hi @Eri_V ,
I have made a test on my side and the Pin function that you mentioned is not supported in Microsoft flow currently, if you would like the function to be supported in Microsoft flow, you could submit an idea to the flow ideas forum:
https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Could you explain a bit more what you mean by "Pin"?
Post updated 🙂
There's nothing available in the flow actions to do that. I looked to see if there was a REST call that could do it, but didn't find anything that way either. So at this point I think the only way to do it is in the user interface.
Hi @Eri_V ,
I have made a test on my side and the Pin function that you mentioned is not supported in Microsoft flow currently, if you would like the function to be supported in Microsoft flow, you could submit an idea to the flow ideas forum:
https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks
Hi everyone, this was something that I was looking to do via Power Automate also. In the end I found the answer with the help of the following stackexchange post: https://sharepoint.stackexchange.com/questions/252905/how-to-programmatically-pin-a-document-to-the-...
To apply this REST API call within Power Automate, I used the Send an HTTP request to SharePoint action:
Uri: /_api/web/GetListUsingPath(DecodedUrl=@a1)/GetView(viewGuid=@a2)/AddToSpotlight(itemId=@a3,folderPath=@a4,afterItemId=@a5)?@a1=''&@a2=''&@a3=''&@a4=''&@a5=''
The key was figuring out the various parameters: a1, a2, a3, a4 and a5:
a1 = Server Relative Library Url
a2 = View Guid
a3 = Item Id
a4 = Server Relative Folder Path
a5 = -1 unless you are trying to pin it after an existing item
Hopefully this helps some others.
Regards
Pete
User | Count |
---|---|
88 | |
43 | |
21 | |
18 | |
16 |
User | Count |
---|---|
132 | |
47 | |
42 | |
36 | |
28 |