How do I get the ID of an existing folder, for use with the SharePoint "Create sharing link for a file or folder" step?
I've seen an example of how to do it in the same flow as when a folder is created, but I can't figure-out how to do it for an existing folder.
Hi @roxy1 ,
I have read your other post as well, and I don't have an answer to your issue yet. I was using plain paths, not sharing links.
The path that works in "Get folder metadata using path" begins with "Shared documents/" (depending on the language).
Hi @Sami_J - could you expand further on your variables used in your flow for this? I am having trouble getting the using the 'get folder metadata using path'. I have initialize a string variable which then has the input of a shared link that is manually entered in a sharepoint list. I have also posted this as a stand alone query
I didn't say it doesn't work, just that the question has this flow aspect that was not replied to. Let's read the part of the question by @bassman99 again carefully, it is about Power Automate:
"I've seen an example of how to do it in the same flow as when a folder is created, but I can't figure-out how to do it for an existing folder."
I had exactly the same situation. I knew Create folder action is returning the folder ID, but how about when the folder already exists and you need that ID, for creating a sharing link for example?
Get folder metadata using path -> ItemId
The Folder Path needs to begin with "Shared Documents/" (if the language is English).
I still have to dig deeper into SharePoint actions, why some require ID and some path. Also, actions that ask for document library, may have different folder path to fill in that with those that only ask site address. I'm trying to find the consistency, or proof of the lack of consistency 🙂
@Sami_J the method ^^ worked for me when tried, just had to show the column and then the values displayed. maybe its a permissions issue within your environment?
Hi,
you didn't reply to the question. It was about getting an existing folder ID for Power Automate action "Create sharing link for a file or folder".
u rock. thank you!
Thanks!
Hi @bassman99
If you go to your SharePoint list, click on the Add Column section and click 'Show/hide Columns'
Check the ID option
You should now be able to see the ID of the folder from the list.
WarrenBelz
89
Most Valuable Professional
MS.Ragavendar
60
stampcoin
48