cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CP153319
Level 8

Open attachment - Powerapps custom form - SharePoint list

I created a custom Powerapps form for a SharePoint list and was excited to utilize the new functionality of adding an attachment. It works great when adding a new item to the list (powerapp form opens, fill out the various fields, add attachment, save). The problem occurs when I open an existing list item (which also opens in the powerapps form) - when I click on the attachment to open it nothing happens.

 

Wondering if I have to have separate forms? One to attach the attachemnt and one to view it?

 

Thank you for reading.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Open attachment - Powerapps custom form - SharePoint list

I did not find a workaround how to fix this in View Form as this mode makes OnSelect event inaccessible, but this approach can help with opening attachments from list items in DataTable or EditView.

 

In OnSelect event you may use the following function which will open the first attachment:

Launch(Concatenate("{your list URI}","/Attachments/",Text({Item ID}),"/", First({item}.'{Attachments}').DisplayName))

 

If you are using Data Table then:

- replace Item ID with DataTable.Selected.ID and use the function in OnSelect event on any column

- replace item with DataTable.Selected

 

DataTable Launch Attachment.PNG

If you are using Edit View Form then:

- replace Item ID with ThisItem.ID and use the function in OnSelect event in the Attachment field or any other custom card

- replace item with ThisItem

 

In many cases, users require only one attachment, so this can be viable.

 

Hopefully, MS will fix this not opening attachments bug soon.

Fingers crossed.

 

Cheers

View solution in original post

21 REPLIES 21
Rebetcha
Level 10

Re: Open attachment - Powerapps custom form - SharePoint list

I did some testing. In my case the attachment started to download the moment I clicked it once. There is an on select property on the attachment control but did not figure out yet how to open an attachment on click. According to the support article this should be possible. https://docs.microsoft.com/en-us/powerapps/controls/control-attachments
Community Support Team
Community Support Team

Re: Open attachment - Powerapps custom form - SharePoint list

Hi @CP153319,

 

I just tested with this new attachment feature rto open the exsiting attachment on web browser and I got the same result. After I click on the exsiting file, a popup window asks if this should be allowed. After I allowed it, it went back to the list view, the file is not opened. I will try to report this issue to pg and see if they have any suggestions.

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support Team
Community Support Team

Re: Open attachment - Powerapps custom form - SharePoint list

Hi @CP153319,

 

I just tested again with Chrome and Edge, both could download/open the Excel file. It seems that this issue only happens in IE from my side. Would you please change to these browsers to have a test?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Rebetcha
Level 10

Re: Open attachment - Powerapps custom form - SharePoint list

I tried it out in IE and Edge. In Edge it works fine, except in inprivate. IE doesn't work. Attachment does not open.
ExcelNut
Level: Powered On

Re: Open attachment - Powerapps custom form - SharePoint list

I have been fighting with this for hours without much sucess.  Attachment opens in Firefox.  But in IE11 (which is what all the intended users of this form use) it now opens a separate tab with a URL  blob:CEE2CD22-7D22-40F9-B20C-915FD7FFC163

Rebetcha
Level 10

Re: Open attachment - Powerapps custom form - SharePoint list

That sounds like a bug. The ability to open attachments is fairly new. It is likely that something is not working as it should. I would recommend to create a support ticket through Office 365 Admin Center.
CP153319
Level 8

Re: Open attachment - Powerapps custom form - SharePoint list

I haven't had a chance to test this on another browser (where I work eveyone is on IE and it's extremely difficult to get software installed on our machines(locked down pretty tight here)). Doesn't really matter for me if it works on Chrome or Edge anyways... I need it to work on IE.  I imagine there are a few zillion people in the same boat.

Rebetcha
Level 10

Re: Open attachment - Powerapps custom form - SharePoint list

@v-micsh-msft: the SharePoint list item attachment functionality does not work as it should in IE (for mor info, read this thread). Can you log this as a bug with the product team?

Jonny
Level: Powered On

Re: Open attachment - Powerapps custom form - SharePoint list

Can confirm this if it helps. Same here 😕 Hope for a fix soon!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,667)