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 Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Government Carousel

New forum: GCC, GCCH, DoD - Federal App Makers (FAM)

In response to the unique and evolving requirements of the United States public sector, Microsoft has created Power Apps US Government.

Users online (2,661)