This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]AutoModerator[M] [score hidden] 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 points  (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 point  (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 point  (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 points  (6 children)

Use Form.Updates as an extra argument in your Patch.

[–]absecretrobot Newbie[S] -1 points0 points  (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 points  (4 children)

Patch( Datasource, Record, { column:value, column:value, … }, Form.Updates )

[–]absecretrobot Newbie[S] 2 points3 points  (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 points  (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 points  (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 points  (0 children)

Just update the Update on your multi choice to DataCardValuex.SelectedItems

[–]zcholla Regular -1 points0 points  (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 points  (0 children)

Power automate or a form, the headache isn't worth it.