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

Flow to attach files from Sharepoint document library to Sharepoint list.

I have a Sharepoint document library with  word docs named "Test 1", "Test 2", "Test 3". I also have a Sharepoint list, within this list I have items named (in the Title column) "Test 1", "Test 2", "Test 3" (The same name as the file from the document library). I would like to build a flow that when triggered (Manually), will read the document library and attach the word documents to the corresponding sharepoint list items. I think I am close but when the items attach, they don't come in as word documents and I get this icon when I download it. 

jhardin138_4-1628532276380.png

Any ideas? I have attached a copy of the flow for reference.

 

 

jhardin138_0-1628532048617.png

jhardin138_1-1628532095261.png

jhardin138_2-1628532151663.png

jhardin138_3-1628532196215.png

 

 

 

14 REPLIES 14
PG_WorXz10
Community Champion
Community Champion

Hi @jhardin138 ,

In the FileContent please try to add the document extension .docx. 

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

Like so?

jhardin138_1-1628532891510.png

 

 

@jhardin138 

 

Yes, please try now. 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

Getting this error now, and files did not successfully attach.

jhardin138_0-1628533251550.png

 

 

@jhardin138 

 

Could you please share the error action and details ?

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

@jhardin138 

 

My bad, Please remove the extension it should in FileName. In your case you are using the file name with externsion right ? 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

jhardin138_0-1628533439514.png

 

 

jhardin138_1-1628533556419.png

jhardin138_2-1628533594089.png

 

jhardin138_3-1628533640325.png

 

 

@jhardin138 

 

May I ask you this attachment is present in Library or you are just fetching it from another List attachment ? 

 

Instead of Get File content could you please use Get file content using path if possible ? 

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

That made it attach as a word doc but now I am getting this error when trying to open the attachment.

jhardin138_0-1628533831760.png

jhardin138_1-1628533858741.png

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,706)