cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

Need assistance with patch command (or how to update a field in sharepoint NOT on form)

Hi,

 

I have a form that submits and updates exactly as required. However, I would like to update the same sharepoint record at the same time with information that is NOT on the form. E.G Username, todays date etc.

 

I have a button onselect = submit(form1) this works for all data in form, but how do I add to it the additional data to write to the same record?

 

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

@MarkIreland 

The easiest way to do this is to add the columns you want to your Form and set their Visible properties to false.  Then utilize the Update property of those datacards to set the values you want all along with the Submit.  No further action needed.

 

However, if you want to still do this after the submit, then I would suggest putting a formula in your Form's OnSucess action.

A formula such as this:

UpdateIf(yourDataSource, ID=yourForm.LastSubmit.ID,
    {
       yourOtherColumn: yourColumnValue
    }
)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

@MarkIreland 

The easiest way to do this is to add the columns you want to your Form and set their Visible properties to false.  Then utilize the Update property of those datacards to set the values you want all along with the Submit.  No further action needed.

 

However, if you want to still do this after the submit, then I would suggest putting a formula in your Form's OnSucess action.

A formula such as this:

UpdateIf(yourDataSource, ID=yourForm.LastSubmit.ID,
    {
       yourOtherColumn: yourColumnValue
    }
)

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too!

View solution in original post

Highlighted

Thank you worked like a charm.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,016)