cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kumarraj88
Helper III
Helper III

unable to copy files from folder to another library dynamically

Hello Everyone,

I am trying to copy folder and also all file inside the folder when the folder associated column called "Factory" is to a specific name. 

Based up on this name it will get the site URL dynamically and then it will create folder. Until this it is working fine. But I am not able to copy files at all. I don't see right action for this to do dynamically using https request.  Please let me know the best way to achieve this. 

 

Steps so far achieved: 

1. when a new item is created or modified (Library A)

2. condition: is folder = Yes

3. Get items (list B) - filter= Title eq 'FactoryNameColumnValue'

4. Compose  -- FolderName (this is from library)

5. send http request to create folder

 

flow-1.PNGFlow-2.PNGFlow-3.PNG

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
abm
Super User III
Super User III

Hi @kumarraj88 

 

Thanks for the discussion.

 

You don't need the HTTP request to create folder. There is already a create new folder action step available. 

 

Once the folder is created then use the Get Files properties. Then iterate each files and copy file from destination to target.

 

image.png

 

You can't reply on that trigger mainly if user takes long time to upload  a file you will miss that file to upload. I would add a column called 'Ready to copy' Yes/No type then use the trigger to item modified 'Ready to copy' Yes.

 

 

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

2 REPLIES 2
abm
Super User III
Super User III

Hi @kumarraj88 

 

Thanks for the discussion.

 

You don't need the HTTP request to create folder. There is already a create new folder action step available. 

 

Once the folder is created then use the Get Files properties. Then iterate each files and copy file from destination to target.

 

image.png

 

You can't reply on that trigger mainly if user takes long time to upload  a file you will miss that file to upload. I would add a column called 'Ready to copy' Yes/No type then use the trigger to item modified 'Ready to copy' Yes.

 

 

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

View solution in original post

@abm . Awesome. Thanks for your help. One of the my major issue is now fixed.  

 

Now because my choice column is in drop-down, it is not allowing for multiple selection so I have to change it to checkbox so that we can select multiple names. But the issue how flow can determine each name from checkbox and copy files to each of that selected name(Based up on the name it should select URL to copy content)? 

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)