cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Eri_V
Helper I
Helper I

How to automatically pin a folder to top once it is created by a workflow?

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

 

task 11.png

 

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 : 

 

task13.png 

task 12.PNG

 

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

v-alzhan-msft
Community Support
Community Support

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.

View solution in original post

6 REPLIES 6
Pstork1
Dual Super User III
Dual Super User III

Could you explain a bit more what you mean by "Pin"?  



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Post updated 🙂

 

Pstork1
Dual Super User III
Dual Super User III

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.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

v-alzhan-msft
Community Support
Community Support

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.

View solution in original post

Thanks

petecuttriss
Regular Visitor

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=''

petecuttriss_0-1620100554884.png

 

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

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

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

Users online (2,097)