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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,322)