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

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

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.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Users online (3,191)