cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Create Attachment Field

Hello,

I have an app that is connected to an excel file, I want to create a field in my application to store attached files. Any ideas?

 

PD: I cannot transfer my data from excel to sharepoint because my excel table has more columns than those accepted by SP.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Microsoft
Microsoft

Re: Create Attachment Field

Hi@Rob_G,

Based on the issue that you mentioned, do you want to create a field from PowerApps to save attachments?

Could you please share a bit more about the scenario, do you want to save the attachments back to the Excel?

Actually, there is no way to create a field from PowerApps.

As an alternative solution, you could consider adding an Image column with your Excel table.

The Image column in Excel can save data with kinds of types. In order to make it work with Power Apps, the column name to store the attachments must be "XXXX [image]" in the excel table. There should be a space between XXXX and [image]. You can check the following article for reference.

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-images-pictures-audio-video

I have a test on my side, please take a try as below.

  • Add an Image column in Excel, please make sure that you format the column as Picture [image]
  • Save this Excel table and upload it to OneDrive.
  • Create an app and connect to this Excel table. Add a form and corresponding fields from excel.
  • Set the OnSelect property of the Button as below

 

SubmitForm(Form1)​​

 

Note: The file saved to the Image column in Excel can be found in OneDrive folder “Attanchment_images”

Except for photo and PDF, the Image column in Excel can also save the format of word and excel.008.gif

Best Regards,

Qi

 

View solution in original post

5 REPLIES 5
Highlighted
Super User III
Super User III

Re: Create Attachment Field

Hi @Rob_G , 

You cannot store attachments from Power Apps in Excel. You could make a separate SharePoint list with a 1:1 relationship with your Excel table on a unique key field and store it with an attachment control in there.

 

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.

Highlighted
Helper I
Helper I

Re: Create Attachment Field

Thank you very much @WarrenBelz ,

Please have a reference on how to do it? I had the idea of making that list with a related field called "LEGAJO" in both lists which does not repeat itself.

But what I can't do is find a way to relate an excel table in Onedrive with a Sharepoint list.

Highlighted
Super User III
Super User III

Re: Create Attachment Field

@Rob_G ,

It needs to be a SharePoint Library - here is a good video from Shane Young on the process.

 

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.

Highlighted
Microsoft
Microsoft

Re: Create Attachment Field

Hi@Rob_G,

Based on the issue that you mentioned, do you want to create a field from PowerApps to save attachments?

Could you please share a bit more about the scenario, do you want to save the attachments back to the Excel?

Actually, there is no way to create a field from PowerApps.

As an alternative solution, you could consider adding an Image column with your Excel table.

The Image column in Excel can save data with kinds of types. In order to make it work with Power Apps, the column name to store the attachments must be "XXXX [image]" in the excel table. There should be a space between XXXX and [image]. You can check the following article for reference.

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/add-images-pictures-audio-video

I have a test on my side, please take a try as below.

  • Add an Image column in Excel, please make sure that you format the column as Picture [image]
  • Save this Excel table and upload it to OneDrive.
  • Create an app and connect to this Excel table. Add a form and corresponding fields from excel.
  • Set the OnSelect property of the Button as below

 

SubmitForm(Form1)​​

 

Note: The file saved to the Image column in Excel can be found in OneDrive folder “Attanchment_images”

Except for photo and PDF, the Image column in Excel can also save the format of word and excel.008.gif

Best Regards,

Qi

 

View solution in original post

Highlighted
Helper I
Helper I

Re: Create Attachment Field

Thank you.

I tried to do it and it turned out well, the only thing is that it does not allow me to incorporate PDF files.

 

I hope this can be used by those who require it to save files that do not have the PDF extension

 

Thanks for your support.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (8,712)