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

Attachments not saving to SP / PowerApps form

Hi all,

 

I recently published a new PowerApps form connected to SP and Flow.  The form is saving everything to the SP list correctly except attachments.  I have tried using the default attachments control and a custom card with the attachment control manually added and neither works.  Attachments are enabled in SP advanced settings and an enabled field in the SP list.  

 

When I add an attachment to the PowerApps form, it appears to upload (showing 'un-saved') so I'd expect saving the form to post the attachment to the SP list and the form.  However no attachment is found anywhere after saving, and checking the item in View and Edit mode both show 'no attachments found'

 

I've searched solutions for this for several hours and haven't been able to resolve.  Does anyone have any idea whats going on here?  Or how to solve?

 

PowerApps card advanced tab:

custom control.PNG

 

Attachment added to form before saving:

 

attachment uploaded.PNG

View after saving:

view mode after saving.PNG

 

Edit after saving:

edit mode after saving.PNG

 

SP list view after saving:

blank SP list.png

 

 

 

4 REPLIES 4
Highlighted
chhowa
Level: Powered On

Re: Attachments not saving to SP / PowerApps form

I just tried another extension (.jpg) and it saved the attachment.  So it appears .docx is not a supported file type but this is the primary extension that users will need to submit.  

 

I guess I need to save the attachment to a documents library?  I also need to pass the attachment via the Approval workflow so I'm not sure exactly how this is going to work.

Community Support Team
Community Support Team

Re: Attachments not saving to SP / PowerApps form

Hi @chhowa ,

I've made a similar test but could upload a .doc file to attachments field.

Please check these points:

Set the card's Update: DataCardValue7.Attachments

Set the card's Default: ThisItem.Attachments

Set the attachments ' Item: Parent.Default

What's more, please check your system whether meet the requirments:

https://docs.microsoft.com/en-us/sharepoint/install/hardware-and-software-requirements-2019

 

Best regards,

Community Support Team _ Phoebe Liu

 

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

Re: Attachments not saving to SP / PowerApps form

Thanks Phoebe, 

 

It started working when I removed the Attachments card and readded it and verified the card values are as you outlined.  Thank you!

 

Now I am trying to use the Approval connector to send an approval when a new SP item is added, AND pass the attachment in the Approval mail.  However, I've seen a few threads that suggest it's not possible to pass attachments with the Approvals connector/mail (though they are all 1+ years old: example).

 

Do you know if this is still the case or is there a way to pass a SP attachment using Approvals?

chhowa
Level: Powered On

Re: Attachments not saving to SP / PowerApps form

So actually, I was able to get the attachment to pass by ditching the Approvals connector and using 'Get Attachment', 'Get Attachment Content' and 'Send Email with Options'

 

The attachment passes in the e-mail with 3 options:  Approve, Reject and More Info Needed.

 

However, the 'SelectedOption' dynamic content (e.g. User Option) is not available in the condition statement that follows.  Am I missing something?

 

blehhh.PNG

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 59 members 4,930 guests
Please welcome our newest community members: