cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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.

22 REPLIES 22

We have encountered the same problems. Attachment downloads (after allowing pop-ups from an Azure cdn) in Edge and Chrome, not in IE.

Is this functionality still missing using Internet Explorer? Not sure if someone from Microsoft actually reads these forums.

 

I would like to utilize the new powerapps forms but I have about 4,000 potential users who would need to open the attachemtns using Internet Explorer.

Anonymous
Not applicable

I just tried it and it still does not work.

 

I think they know about it.  https://powerusers.microsoft.com/t5/Using-PowerApps/List-attachment-works-to-save-but-not-to-open/m-...

Thank you. I don't want to keep designing and deleting forms over and over to test this. LOL

Anonymous
Not applicable

The same issue.

I assume that Microsoft added the ability to manage (add/delete) attachments and not to open them. 

Come on MS team, you can do better.

Anonymous
Not applicable

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

Using Pavel's suggestion. To show attachments for the selected Item in the Browse Gallery (Or known Item) this can be done using a data table and the attachment collection.

 

 - Add a Collection on the OnVisible Event of the Screen:

         ClearCollect(SelectedAttachments, BrowseNCs.Selected.'{Attachments}')

 

 - Use this Collection to populate a DataTable 

 - Select the Field in the datatable that is to open the attachment

 - Change the Is hyperlink on field to be true

 - Change the OnSelect event to open the Attachment 

      Launch(<your datatable>.Selected.AbsoluteUri)

 

I put a view attachments button on the form that contains attachments and then take them to a seperate Attachements screen but you could put this on the page itself

 

 

 

Wow, that's awesome! Thanks - I will try that out for sure.

Launching SP list attachments by using AbsoluteUri works ok in my project when using Edge as browser, and the attachment documents open in Excel, Word, etc. for editing.

 

Example of my Listbox in EditForm:

Item = ThisItem.'{Attachments}'

OnSelect = Launch(ListBox1.Selected.AbsoluteUri)

 

When using Chrome the Launch returns exactly same result as Download i.e. a "save as window". So in Chrome there is no difference between Launch and Download. Funny enough, if i use Download with *.txt document in Chrome it launches text document in new browser page. Very weird.

 

Neither browser open the documents to O365 in web browser for editing, which would be the optimal solution.  

 

This happens both in PA web studio and PA project in SharePoint Online as a web part - but only with SP List attachments, the documents in SP Library open correctly to O365 in web browser.

 

Is this a bug or a feature in PA, or am i missing something?

 

Hi all, 

 

I got that same problem and searched desperately for a solution but no hope. I finally figured out a workaround tested working on my app on Chrome. described below

 

in an edit form, the attachment control works flawlessly (can attach files and download/view attached files on Chrome). the good is that I can download/view in both edit mode and display mode.

 

so in the view form, I just added a toggle informing viewers that there is attachment(s). I created a new screen for an edit form with only attachment control in display mode (to prevent viewers from editing). in this screen, viewers can download/view the attachments.

 

Hope this helps

Ha

Helpful resources

Announcements

Community will be READ ONLY July 16th, 5p PDT -July 22nd

Dear Community Members,   We'd like to let you know of an upcoming change to the community platform: starting July 16th, the platform will transition to a READ ONLY mode until July 22nd.   During this period, members will not be able to Kudo, Comment, or Reply to any posts.   On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities.   What to Expect in the New Community: A more unified experience where all products, including Power Apps, Power Automate, Copilot Studio, and Power Pages, will be accessible from one community.Community Blogs that you can syndicate and link to for automatic updates. We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead!

Summer of Solutions | Week 4 Results | Winners will be posted on July 24th

We are excited to announce the Summer of Solutions Challenge!   This challenge is kicking off on Monday, June 17th and will run for (4) weeks.  The challenge is open to all Power Platform (Power Apps, Power Automate, Copilot Studio & Power Pages) community members. We invite you to participate in a quest to provide solutions in the Forums to as many questions as you can. Answers can be provided in all the communities.    Entry Period: This Challenge will consist of four weekly Entry Periods as follows (each an “Entry Period”)   - 12:00 a.m. PT on June 17, 2024 – 11:59 p.m. PT on June 23, 2024 - 12:00 a.m. PT on June 24, 2024 – 11:59 p.m. PT on June 30, 2024 - 12:00 a.m. PT on July 1, 2024 – 11:59 p.m. PT on July 7, 2024 - 12:00 a.m. PT on July 8, 2024 – 11:59 p.m. PT on July 14, 2024   Entries will be eligible for the Entry Period in which they are received and will not carryover to subsequent weekly entry periods.  You must enter into each weekly Entry Period separately.   How to Enter: We invite you to participate in a quest to provide "Accepted Solutions" to as many questions as you can. Answers can be provided in all the communities. Users must provide a solution which can be an “Accepted Solution” in the Forums in all of the communities and there are no limits to the number of “Accepted Solutions” that a member can provide for entries in this challenge, but each entry must be substantially unique and different.    Winner Selection and Prizes: At the end of each week, we will list the top ten (10) Community users which will consist of: 5 Community Members & 5 Super Users and they will advance to the final drawing. We will post each week in the News & Announcements the top 10 Solution providers.  At the end of the challenge, we will add all of the top 10 weekly names and enter them into a random drawing.  Then we will randomly select ten (10) winners (5 Community Members & 5 Super Users) from among all eligible entrants received across all weekly Entry Periods to receive the prize listed below. If a winner declines, we will draw again at random for the next winner.  A user will only be able to win once overall. If they are drawn multiple times, another user will be drawn at random.  Individuals will be contacted before the announcement with the opportunity to claim or deny the prize.  Once all of the winners have been notified, we will post in the News & Announcements of each community with the list of winners.   Each winner will receive one (1) Pass to the Power Platform Conference in Las Vegas, Sep. 18-20, 2024 ($1800 value). NOTE: Prize is for conference attendance only and any other costs such as airfare, lodging, transportation, and food are the sole responsibility of the winner. Tickets are not transferable to any other party or to next year’s event.   ** PLEASE SEE THE ATTACHED RULES for this CHALLENGE**   Week 1 Results: Congratulations to the Week 1 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersNumber of SolutionsSuper UsersNumber of Solutions @anandm08  23 @WarrenBelz  31 @DBO_DV  10 @Amik  19 AmínAA 6 @mmbr1606  12 @rzuber  4 @happyume  7 @Giraldoj  3@ANB 6 (tie)   @SpongYe  6 (tie)     Week 2 Results: Congratulations to the Week 2 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge. Community MembersSolutionsSuper UsersSolutions @anandm08  10@WarrenBelz 25 @DBO_DV  6@mmbr1606 14 @AmínAA 4 @Amik  12 @royg  3 @ANB  10 @AllanDeCastro  2 @SunilPashikanti  5 @Michaelfp  2 @FLMike  5 @eduardo_izzo  2   Meekou 2   @rzuber  2   @Velegandla  2     @PowerPlatform-P  2   @Micaiah  2     Week 3 Results: Congratulations to the Week 3 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 3:Community MembersSolutionsSuper UsersSolutionsPower Apps anandm0861WarrenBelz86DBO_DV25Amik66Michaelfp13mmbr160647Giraldoj13FLMike31AmínAA13SpongYe27     Week 4 Results: Congratulations to the Week 4 qualifiers, you are being entered in the random drawing that will take place at the end of the challenge.   Week 4:Community MembersSolutionsSuper UsersSolutionsPower Apps DBO-DV21WarranBelz26Giraldoj7mmbr160618Muzammmil_0695067Amik14samfawzi_acml6FLMike12tzuber6ANB8   SunilPashikanti8

Check Out | 2024 Release Wave 2 Plans for Microsoft Dynamics 365 and Microsoft Power Platform

On July 16, 2024, we published the 2024 release wave 2 plans for Microsoft Dynamics 365 and Microsoft Power Platform. These plans are a compilation of the new capabilities planned to be released between October 2024 to March 2025. This release introduces a wealth of new features designed to enhance customer understanding and improve overall user experience, showcasing our dedication to driving digital transformation for our customers and partners.    The upcoming wave is centered around utilizing advanced AI and Microsoft Copilot technologies to enhance user productivity and streamline operations across diverse business applications. These enhancements include intelligent automation, AI-powered insights, and immersive user experiences that are designed to break down barriers between data, insights, and individuals. Watch a summary of the release highlights.    Discover the latest features that empower organizations to operate more efficiently and adaptively. From AI-driven sales insights and customer service enhancements to predictive analytics in supply chain management and autonomous financial processes, the new capabilities enable businesses to proactively address challenges and capitalize on opportunities.    

Updates to Transitions in the Power Platform Communities

We're embarking on a journey to enhance your experience by transitioning to a new community platform. Our team has been diligently working to create a fresh community site, leveraging the very Dynamics 365 and Power Platform tools our community advocates for.  We started this journey with transitioning Copilot Studio forums and blogs in June. The move marks the beginning of a new chapter, and we're eager for you to be a part of it. The rest of the Power Platform product sites will be moving over this summer.   Stay tuned for more updates as we get closer to the launch. We can't wait to welcome you to our new community space, designed with you in mind. Let's connect, learn, and grow together.   Here's to new beginnings and endless possibilities!   If you have any questions, observations or concerns throughout this process please go to https://aka.ms/PPCommSupport.   To stay up to date on the latest details of this migration and other important Community updates subscribe to our News and Announcements forums: Copilot Studio, Power Apps, Power Automate, Power Pages