cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PHCMA
Frequent Visitor

Folder Identifier in List Folder Flow Action (404) File Not Found using SharePoint Folder ID

TL;DR: Folder Identifier field in List Folder Action, from my research requires a path (GUID), not a numeric folder ID. I only have the numeric SharePoint Folder ID's, can I some how use an expression or another action to get the GUID from the Numeric Folder ID?

 

Hi all,

For the last few months I've been using a Flow to create folders in a SP Library then storing the numeric folder ID into a SP List. I intended to call back these ID's in another flow and extract a zip into these folders.

 

I'm now building the new flow and made the assumption that I could use the 'List folder' action and pass the Numeric ID from the SP List into the 'Folder Identifier' field. This result's in a 404 File not found.

 

I've had a look at at similar issues posted here, but it's not clear to my scenario. From what I think I understand, is that this action requires a GUID (like a path) rather than Numeric ID. 

If this is the case, I'm a bit stumped on what to do next. Can I somehow get this GUID from an action or expression using the SP Folder Numeric ID? (Edit: or even a share link to the folder) 

 

Another solution was to use the action 'Get Folder Metadata using Path' and apparently pass the GUID into the List Folder Action. I haven't been able to test this because again I'm stuck on how to get the path from the SP folders numeric ID.

 

Am I looking at this Flow wrong, should I be using different actions or different inputs to solve this problem? Thanks.

 

Flow: (List Sales Cloud Folder = List Folder, Lead Folder ID = ID "Numeric SP Folder ID")

Flow ActionFlow Action

 

Flow Error:

Flow ErrorFlow Error

 

Error Details:

Error DetailsError Details

 

Raw Input:

Raw InputRaw Input

 

Raw Output:

Raw OutputRaw Output

 

1 ACCEPTED SOLUTION

Accepted Solutions
tom_riha
Super User
Super User

Hello @PHCMA ,

folder is just another type of a "file" in a document library, you can use the action 'Get file properties'. Use the ID you have to get the Identifier of the folder.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

View solution in original post

2 REPLIES 2
tom_riha
Super User
Super User

Hello @PHCMA ,

folder is just another type of a "file" in a document library, you can use the action 'Get file properties'. Use the ID you have to get the Identifier of the folder.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
PHCMA
Frequent Visitor

YES, perfect!
This has worked for me, so I'll mark as the solution 🙂

 

But, I will point out though, you do need to provide a document library along with the ID. Fortunately for me my list contains profile data and the Libraries are named after each user.  I've had to initialize & set a variable based on the profile DisplayName and pass that to the Library Name field. 

Set Variable for Library DirectorySet Variable for Library Directory

 

While the flow works and copies the files, I still do get a 404 - File not found error. Not sure if you can if you have any ideas about this, the error doesn't provide much info. If not, all good I'll just skip the error. 

404 Error after successful copy.404 Error after successful copy.

 

 

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,927)