cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wen90
Level: Powered On

Patch onSubmit

Hi, 

 

I have a field in my SP list called Project_ID. It is the project number we use to filter records by project on SP and PowerApps. 

 

This information comes from our projectid collection (so outside of the form data). I am trying to Patch the project value (selected when user comes into the app). But I can't get it working. 

 

How can I patch the project value on submission of the form? I have put my code in the picture below, 

 

So basically, I want to patch the projectid value on submission of my form so my records contain the form data + the projectID

 

Cheers. 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Patch onSubmit

Hi @wen90 

 

Patch(TowerCraneTracking,Form2.LastSubmit,{Project_ID:Projectid})

 

Projectid - variable holding data to patch

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

1 REPLY 1
Super User
Super User

Re: Patch onSubmit

Hi @wen90 

 

Patch(TowerCraneTracking,Form2.LastSubmit,{Project_ID:Projectid})

 

Projectid - variable holding data to patch

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 469 members 5,457 guests
Please welcome our newest community members: