Search code examples
powerappsmicrosoft365

Can't create a Notify after Patch function, Power Apps


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


Solution

  • 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)