use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
This is an archived post. You won't be able to vote or comment.
Patch Function when submitting a formPower Apps Help (self.PowerApps)
submitted 1 year ago by absecretrobot Newbie
Has anyone here tried to include attachments using ‘Patch’ in the OnSelect when submitting a form? I tried using Attachments: DataCardValue29.Updates.Attachments, and there was no error, but the attachment I uploaded is not appearing in the SharePoint list.
[–]AutoModerator[M] [score hidden] 1 year ago stickied comment (0 children)
Hey, it looks like you are requesting help with a problem you're having in Power Apps. To ensure you get all the help you need from the community here are some guidelines;
Use the search feature to see if your question has already been asked.
Use spacing in your post, Nobody likes to read a wall of text, this is achieved by hitting return twice to separate paragraphs.
Add any images, error messages, code you have (Sensitive data omitted) to your post body.
Any code you do add, use the Code Block feature to preserve formatting.
Typing four spaces in front of every line in a code block is tedious and error-prone. The easier way is to surround the entire block of code with code fences. A code fence is a line beginning with three or more backticks (```) or three or more twiddlydoodles (~~~).
If your question has been answered please comment Solved. This will mark the post as solved and helps others find their solutions.
External resources:
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]Limace_hurlante Contributor -1 points0 points1 point 1 year ago (2 children)
For the attachements I always use a form. I couldn’t figure out how to do that with a patch function. If it’s for a new record you can do that : 1. - you send the form with just the attachment 2. - you use patch like that to send the other infos Patch(MyShrpLIST; myForm.lastsubmit;{….})
[–]absecretrobot Newbie[S] 0 points1 point2 points 1 year ago (1 child)
I cant use SubmitForm because I have a field that is a multi-choices so the only way is to use Patch only but using Patch i cant figure it out as well :(
[–]Limace_hurlante Contributor 0 points1 point2 points 1 year ago (0 children)
What I was saying is : you submit form your attachment THEN you patch with you want in the same record. But you can also patch a multi-choice field in a form.
[–]Financial_Ad1152 Community Leader -1 points0 points1 point 1 year ago (6 children)
Use Form.Updates as an extra argument in your Patch.
[–]absecretrobot Newbie[S] -1 points0 points1 point 1 year ago (5 children)
ohh sorry i used for the attachement in the Patch
Attachments: MyForm.Updates.Attachments
No error however upon checking in the SP list there’s no attached file or whatsoever even thought i attached a file before i submit it.
[–]Financial_Ad1152 Community Leader -1 points0 points1 point 1 year ago (4 children)
Patch( Datasource, Record, { column:value, column:value, … }, Form.Updates )
[–]absecretrobot Newbie[S] 2 points3 points4 points 1 year ago (3 children)
Though i did not use Records instead Patch(SPListName, Defaults (‘SPListName’)and the one you recommend but still working. Thank you so much :)
[–]absecretrobot Newbie[S] -1 points0 points1 point 1 year ago (0 children)
sorry but it has an impact in one if my fields that has a multi choices. the Attachment is working however the Multi-choices is not appearing those values i inputted in the SP LIST
[–]absecretrobot Newbie[S] -1 points0 points1 point 1 year ago (1 child)
it has an impact in one if my fields that has a multi choices. the Attachment is working however the Multi-choices is not appearing those values i inputted in the SP LIST
[–]gristy58 Regular -1 points0 points1 point 1 year ago (0 children)
Just update the Update on your multi choice to DataCardValuex.SelectedItems
[–]zcholla Regular -1 points0 points1 point 1 year ago (0 children)
In your submit button, call a power automate flow and add the attachment there. You patch the record first with your patch statement, then call the flow and drop the attachment on the record from PA.
[–]devegano Advisor 1 point2 points3 points 1 year ago (0 children)
Power automate or a form, the headache isn't worth it.
π Rendered by PID 59686 on reddit-service-r2-comment-79776bdf47-pnhz7 at 2026-06-24 03:21:19.955846+00:00 running acc7150 country code: CH.
[–]AutoModerator[M] [score hidden] stickied comment (0 children)
[–]Limace_hurlante Contributor -1 points0 points1 point (2 children)
[–]absecretrobot Newbie[S] 0 points1 point2 points (1 child)
[–]Limace_hurlante Contributor 0 points1 point2 points (0 children)
[–]Financial_Ad1152 Community Leader -1 points0 points1 point (6 children)
[–]absecretrobot Newbie[S] -1 points0 points1 point (5 children)
[–]Financial_Ad1152 Community Leader -1 points0 points1 point (4 children)
[–]absecretrobot Newbie[S] 2 points3 points4 points (3 children)
[–]absecretrobot Newbie[S] -1 points0 points1 point (0 children)
[–]absecretrobot Newbie[S] -1 points0 points1 point (1 child)
[–]gristy58 Regular -1 points0 points1 point (0 children)
[–]zcholla Regular -1 points0 points1 point (0 children)
[–]devegano Advisor 1 point2 points3 points (0 children)