cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rob_G
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
v-qiaqi-msft
Community Support
Community Support

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

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.

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.

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

v-qiaqi-msft
Community Support
Community Support

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

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (26,131)