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

Flow input to onedrive "list file in folder"

Hello everyone,

 

I'm creating a new flow but I'm stumbling on a problem.

I explain what I'm trying to do : 

I want to recover the path of a folder where files have been created.

1 - I have the path of the new file in input like that : /steph%20test/client2/fichier.txt.

2 - I extract the folder path from the previous step :  /steph%20test/client2

3 - I'm trying to use this entry in the "list file in folder" bloc but without success with a bad request error message.

 

Do you see my mistake ? or do you habe another solution to offer me ?

 

Best regards
input_folder_issu.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions

@willy30870 

 

just for testing can you avoid a folder with a space in its name

 

I want to avoid %20

It worked for me

View solution in original post

6 REPLIES 6
RezaDorrani
Dual Super User II
Dual Super User II

Hi @willy30870 

 

List files in folder required the folder id not the path

You would need to first get the folder id inorder to get the files

 

you can using find files in folder by path action 

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Ok, I understand but I don't know how to use this function. 

 

How can I extract the folder id from a path file from the same folder ?

 

I have only the path file /test%20steph/client2/test.txt

 

How can I return the id of "client2" ?

 

Thanks

 

Hi @willy30870 

 

Capture.PNG

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Ok thanks, I have trying this :

And I have always an error

test1_2.JPG

 

test1_1.JPG

 

@willy30870 

 

just for testing can you avoid a folder with a space in its name

 

I want to avoid %20

It worked for me

View solution in original post

That was the problem, I spend the afternoon looking for a solution ! thanks

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,799)