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 III
Super User III

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 III
Super User III

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (70,829)