cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Eurosiderscalo
Frequent Visitor

Attach an attachment automatically to a sharepoint list new item

Hello,

I never found a solution then I ask here if there is a solution.

 

On Sharepoint list:

1. When an item is created or modified
2. Get attachments (from other list or documents file folders)
3. Attach the attachment to the new item

 

Is there a way to do that?

Regards

 

Dezio

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @Eurosiderscalo 

 

Yes there is!

 

But you will need the attachment/ file ID for that. Please refer to my flow below:ddda.png

Note: this is if the attachment is to an item. for a file from the doucment library, you have to use the get file content action and provide with the parameters. So if the item in the other list has a value that can be put into the new list then you can use that to identify the item of the other list (use the get item action) and based on this identify the file (using the get attachments action) and then add the attachment to the newly created item. BTW, i would suggest using the When an item is created trigger or else this will become an infinite loop where the flow will keep triggering and the item will get modified. Makes sense?

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
yashag2255
Dual Super User II
Dual Super User II

Hi @Eurosiderscalo 

 

Yes there is!

 

But you will need the attachment/ file ID for that. Please refer to my flow below:ddda.png

Note: this is if the attachment is to an item. for a file from the doucment library, you have to use the get file content action and provide with the parameters. So if the item in the other list has a value that can be put into the new list then you can use that to identify the item of the other list (use the get item action) and based on this identify the file (using the get attachments action) and then add the attachment to the newly created item. BTW, i would suggest using the When an item is created trigger or else this will become an infinite loop where the flow will keep triggering and the item will get modified. Makes sense?

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Great thank you!

I will create a new "parallel" flow to avoid loop.

 

Regards

Need your help please, trying to get a file that is saved as pdf within the sharepoint document library, and then linking it automatically to a share point list when a new item is created, so that when you click on the item in the list the docuemnt is viewed, or takes you via hyprlink to the docuemnt library, either way is good.

 

Please help find a solution

Blarue
Frequent Visitor

this solution is not working for me when I try to attach an excel file from a document library, can someone please post screen shots of that process? 

thank you,

Brandi 

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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,014)