cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MPrattinger
Level: Power Up

Patch: Problems with syntax

Hi,

 

I'm using powerapps in an german environment and there the syntax is not working as shown in the tutorials.

 

I am triing to update a row in an excel list from an one screen app. But the seperation of the values which should be update (in the tutorial it should be a comma) is not working:

Patch(Result;First(Filter(Result;User=User().Email, Prio = "1")))

 

i get an syntax error at the comma after Email

 

I have searched a long time the internet now and i can't find an other way to enter the data.

 

Can maybe someone help me with this issue?

 

Thanks in advance,

Best regards

Michael

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Patch: Problems with syntax

Michael,
This type of syntax can be confusing because German syntax is slightly different to English syntax. My post here describes this in a little more detail:

 

https://powerusers.microsoft.com/t5/General-Discussion/Combining-2-actions-for-a-Button/td-p/84030

 

Assuming that your Excel column is called Prio and that you want to set the value of this to "1", the syntax you would use looks like this:

Patch(Result;
      LookUp(Result;User=User().Email);
      {Prio:"1"}
)    

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Patch: Problems with syntax

Hi MP,
I'm not sure about the comma but the third element of the Patch function should have curly braces not parentheses. Also replace First(Filter( with Lookup to avoid delegation errors in tables> 2000 items.
Patch(Result;Lookup(Result;User=User().Email),{Prio:1}) if that doesn't work try replacing the comma with a semicolon.
Super User
Super User

Re: Patch: Problems with syntax

Michael,
This type of syntax can be confusing because German syntax is slightly different to English syntax. My post here describes this in a little more detail:

 

https://powerusers.microsoft.com/t5/General-Discussion/Combining-2-actions-for-a-Button/td-p/84030

 

Assuming that your Excel column is called Prio and that you want to set the value of this to "1", the syntax you would use looks like this:

Patch(Result;
      LookUp(Result;User=User().Email);
      {Prio:"1"}
)    

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,875)