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

 

Best Regards,
Qi

View solution in original post

5 REPLIES 5
WarrenBelz
Super User
Super User

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

 

Best Regards,
Qi

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
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (614)