cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Barak_S
Frequent Visitor

Patch function with Form.updates

Hello my friends!

Im having a problem with an old app someone built in my org a few years ago.
The idea is simple:
We have a Form that is connected to a sharepoint list.

The form is in Edit mode.

When i click on a button, i want to update all the fields of the SP item from the form fields.
In the button, this is the patch functioL:

Patch('DATABASENAME',{ID:Value("625")},Form1.Updates)

 

(DATABASENAME is the name of our sp list, and the ID="625" is the item i want to patch the fields in the form to).


When i click on the button i get an "Unkown error accured" - ady idea why this is happening?

 

Thanks!

 

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Barak_S ,

Have you tried simply

Patch(
   'DATABASENAME',
   {ID:625},
   Form1.Updates
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @Barak_S ,

Have you tried simply

Patch(
   'DATABASENAME',
   {ID:625},
   Form1.Updates
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

Thanks! it indeed was one of he problem in the process.

The other issue i had and found about is that one of my form's field was not updated to the one on the SP list and therefor was not updating the data correctly.

 

Thanks!

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (1,805)