cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
vish_p
Helper V
Helper V

Copy Files from Document library to a list

I would like to copy all files from a folder in a document library to another list as an attachment (append if already exists)

 

Please let me know how is this possible in ms flow

1 ACCEPTED SOLUTION

Accepted Solutions

 

Hi @vish_p ,

 

You could try to use the List folder action to get the files contained in the specified folder.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
DeepakS
Resident Rockstar
Resident Rockstar

Hi @vish_p 

 

Following Power Automate action can help you achieve this?

 

  1. Get file content action - To get the file content from your document library
  2. Get attachments - To check if the file already added as attachment
  3. Add attachments - add file content as attachment to the item 

——————————————————
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

 

 

@DeepakS  Thanks for the reply

 

The issue i am facing is to fetch the file content from a folder in a document library 

I know the document library name and folder name but not the attachment name,so i would like to fetch all the files inside the specified folder and then attach those in a list

I am not able to fetch the items from the folder 

 

Hi @vish_p ,

 

You could try to use the List folder action to get the files contained in the specified folder.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
apthecool
Regular Visitor

I used Get File Content action but it fails with the below error
The 'inputs.parameters' of workflow operation 'Get_file_content' of type 'OpenApiConnection' is not valid. Error details: The resolved string values for the following parameters are invalid, they may not be null or empty: 'id'

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,603)