cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ailedac
Level: Powered On

PowerAPPs Attachments don't work properly

I have a PowerAPP based on a Sharepoint List with an attachment field. My APP has three screens:

  • the list screen; where I can choose a single item so opening
  • the browse screen. I can select the Edit button and so I open
  • the edit screen where, in the data form, I can add an attachment.
    When I push the button "Done" I submit the form and the screen closes itself, coming back properly to the browse screen.

The problem is that all the field are saved and also the attachment but in the Browse screen it doesn't appear (instead into the sharepoint list you can find it). To make it appared in my APP I have to come again into the Edit screen, put again the attachment into the attachment control and clicking again "Done".

After this second action the attachment is finally viewed also into the Browse screen.

Is this a bug that I can solve in some way? Thank you

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: PowerAPPs Attachments don't work properly

Hi @ailedac 

The issue you are seeing might be because the SharePoint data source is not getting refreshed once the change is made. Can you please make a change on the Submit Icon of Edit Screen, add Refresh(SharepointList) after SubmitForm seperated by a semicolon.
 
This will look like: SubmitForm(EditForm1);Refresh(<<SharePointList>>)
 
Hope this Helps!!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

Re: PowerAPPs Attachments don't work properly

Hi @ailedac 

The issue you are seeing might be because the SharePoint data source is not getting refreshed once the change is made. Can you please make a change on the Submit Icon of Edit Screen, add Refresh(SharepointList) after SubmitForm seperated by a semicolon.
 
This will look like: SubmitForm(EditForm1);Refresh(<<SharePointList>>)
 
Hope this Helps!!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Community Support Team
Community Support Team

Re: PowerAPPs Attachments don't work properly

Hi @ailedac ,

Could you please share a bit more about your issue?

Do you mean that the uploaded attachment file would not displayed within the Detail form when you submit an new record along with a attachment?

 

Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Please check if you have bind the Display form to the specific item selected in the Gallery within your List screen.

I assume that you use a Gallery within your List screen to list all records from your SP list, please make sure the Item property of the Display form  in your browse screen set to following formula:

BrowseGallery1.Selected            /* <-- BrowseGallery1 represents the Gallery in your List screen */

 

In addition, please also consider add the following formula within the OnSuccess property of the Edit form in your Edit screen:

Refresh('YourSPList');   /* <-- Add this formula */
Back()

Set the OnVisible property of your Browse screen to following:

Refresh('YourSPList');

Please take a try with above formula, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Agnues
Level: Powered On

Re: PowerAPPs Attachments don't work properly

Tried both methods. SharePoint list updates perfectly but the Sharepoint list's view refreshes in the app only when an additional item is added to the list. I have tried giving Refresh(SP_List) on visible of view page and on submit button. Is there any alternate solution. Thanks

Helpful resources

Announcements
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 (Last 30 Days)
Users online (4,498)