0

Here is my code:

Patch(
Projects;
ShowColumns(
    colGridUpdates;
    "Title";
    "Bereich";
    "F_x00e4_lligkeitsdatum";
    "Ge_x00e4_ndert_x0020_am";
    "Auftraggeber";
    "Organisation";
    "ID"));Notify("Das Raster wurde erfolgreich gespeichert";NotificationType.Success;3000);Clear(colGridUpdates)

I have a save button in my solution and want to save all the Grid data. The Patch function is ok and has no problems. But if I want to add a Notify afer I get an error befor the Notify function and after the Patch function: The semicolon is red and it says that I don't need it, but if I delete it I get an other error. Can someone help?

I deleted the semicolon, but got another error: Operator expected

Caramella
  • 3
  • 2
  • Welcome to Stack Overflow! Please visit the [help center](https://stackoverflow.com/help), take the [tour](https://stackoverflow.com/tour) to see what and [How to Ask](https://stackoverflow.com/questions/how-to-ask). Do some research. If you get stuck, post a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of your attempt, noting input and expected output using the [snippet editor](https://meta.stackoverflow.com/questions/358992/ive-been-told-to-create-a-runnable-example-with-stack-snippets-how-do-i-do). – Markus Safar Jun 07 '23 at 08:10
  • Please also check [this question checklist](https://codeblog.jonskeet.uk/2012/11/24/stack-overflow-question-checklist/). – Markus Safar Jun 07 '23 at 08:10

2 Answers2

1

Try to double the ; or use "&" after Patch and Notify.

For example :

Patch(
Projects;
ShowColumns(
    colGridUpdates;
    "Title";
    "Bereich";
    "F_x00e4_lligkeitsdatum";
    "Ge_x00e4_ndert_x0020_am";
    "Auftraggeber";
    "Organisation";
    "ID"));;
Notify("Das Raster wurde erfolgreich gespeichert";NotificationType.Success;3000);;
Clear(colGridUpdates)
Xela
  • 158
  • 9
0

Addition to above answer by @Xela,

Some separators and operators in Power apps formula will change based on application author's language:

enter image description here

You have to use ; as separator between parameters of a function and ;; as separator between two functions.

Microsoft official documentation: Power Apps - Formula separators and chaining operator

Ganesh Sanap
  • 1,386
  • 1
  • 8
  • 18