web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Form.updates not working
Power Apps
Unanswered

Form.updates not working

(0) ShareShare
ReportReport
Posted on by 34

I have a gallery which people can use to create new list in SharePoint. The user can use old values in the selected gallery and it will contain attachment. I have added the following code on Submit.

Patch('List',Defaults('List'),{
Title:DataCardValue3.Text,
},
Form2.Updates)

The attachment which comes from the selected gallery doesn't get added to the new SharePoint list. I can delete the attachment from the screen and re-add it again and that will add the attachment to a SharePoint list. So it is probably happening because the canvas app doesn't see pre-populated attachment as update so hence it doesn't get uploaded to the SharePoint. Is there a work around for this? 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @meklulose 

    If you are using a form, you should be using the SubmitForm function to submit your form - not a Patch statement.

    You should be using:  SubmitForm(Form2)

     

    I hope this is helpful for you.

  • meklulose Profile Picture
    34 on at

    @RandyHayes thanks for taking your time to reply. I have used patch as there are conditions that I need check for certain fields and update other fields according to what the user has entered in certain field. I believe with submitForm I can't do those statement. The form 2 just has the attachment so if I just so SubmitForm(Form2). It will create a new record with just that attachment in it which I do not want. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @meklulose 

    The form is far superior to anything you can do by hand in any quick fashion.  

    What you are describing for checking fields and updating other fields according to other field entries is ALL very possible with a form.  

    I would suggest getting the form to function as you like first and leave all of the submitting to the form as well as all validation and error handling (which is what it does).

     

    If you have a particular problem that surfaces from validating the form or from submitting the form, please elaborate on that and I can provide some assistance to help you get that resolved.  But, essentially, your goal is to be at a point where SubmitForm is what you use and it does what you want.

  • meklulose Profile Picture
    34 on at

    @RandyHayes The form have been broken down into multiple screen as it is too long to be displayed in 1 screen. The user can click next and populate the forms and then patch creates 1 record using the information filled in. The patch will also set value of an optional field in SharePoint list item (same data source as form)as "Yes" if user has ticked a checkbox which isn't part of the form. If I use SubmitForm(Form1); SubmitForm(Form2);SubmitForm(Form3) then it will tries to create multiple SharePoint list items when it should just be 1 item created. Is there workaround from this so I can still use SubmitForm() or another way I can use to Form2.Updates to add in attachment to a new item list from an existing item list. Many thanks!

  • kky1 Profile Picture
    550 on at

    Hello @meklulose  - did you find a solution to your question. I have exactly the same scenario with a form broken into multiple screens, but one of my screens has prefilled data based on the logged in user. The form on that screen doesn't pass into my Sharepoint list using the Form.Updates function and SubmitForm isn't an option because the submit occurs on the next screen.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard