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)

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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

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