cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lucas_Ignatius
Helper V
Helper V

Submit to SharePoint Number Column using Patch

I using patch for Save data in PowerApps, but have an error. Which my column "TotalBudget" is Number Column Type

For other column can Save to SharePoint List.

MyCode:

 

Patch('Budget Master 2', Defaults('Budget Master 2'),{Title:Dropdown2.Selected.Result, Company:Dropdown3.SelectedText, Department:Dropdown1.Selected.Result, BudgetID: TextInput1.Text, TotalBudget:TextInput2.Text});

 

 My Screenshoot for better explain

Lucas_Ignatius_0-1622621144470.png

Thank You

1 ACCEPTED SOLUTION

Accepted Solutions
Aki78
Helper I
Helper I

Try the below:

TotalBudget: Value(TextInput2.Text)

View solution in original post

13 REPLIES 13
zmansuri
Super User
Super User

If you are submitting whole form. Why use patch? Why not SubmitForm?

Hi @zmansuri , 

Can you help me formula SubmitForm ? Because I only now Patch Function.

I'm very helped if there have easy formula

 

 

Ok. When you are submitting the whole form don't use patch.

formula is

on your submit button OnClick property: SubmitForm(Formname)

 

That's it. Every value will be submitted. Patch is used when you are submitting partial values. 

Try that and get back to me.

Aki78
Helper I
Helper I

Try the below:

TotalBudget: Value(TextInput2.Text)

View solution in original post

Can you help me to find FormName? Because I'm confused to find my formname.

Thanks

a20.jpga21.jpg

Hi @zmansuri 

 

I'm using canvas, but there is not form.

I give my screenshoot

Lucas_Ignatius_1-1622627267604.png

 

 

You are selecting individual component.

Is your datasource sharepoint?

Click on this icon and send me picture.

a24.jpg

Hi @zmansuri 

Yes my datasource is SharePoint

Lucas_Ignatius_0-1622628453739.png

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, 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!

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