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
Super User
Super User

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
New Member

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
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.

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.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,519)