web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Problem with operators
Power Apps
Answered

Problem with operators

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi guys, 

I am in the process of building an app that connects and adds data to a sharepoint list like so: 

 

Patch(FrokostBestilling_1;Defaults(FrokostBestilling_1);{Titel:"Frokost";Dato:DatePicker1.SelectedDate;Medarbejdernr:TextInput1.Text;Initialer:TextInput2.Text & Navigate(Screen2;ScreenTransition.CoverRight)})

 

Now it works really well, it insert the data to the sharepoint list, and navigates to the next screen, however in the last section befor the navigation the "initialer" it now adds "true" to the end of it(See attached picture), my guess is that it is of course returning "true" because the navigation happens, however is there a way to ensure that it does not add it to the sharepoint list. 

If i remove the "&" operator, it gives me an "error" with the syntax and says that it contains invalid arguments and wrong "symbols", anyone got any suggestions or solutions 🙂 

- Toby 

Patch + Navigate.PNG
Patch + Navigate(true).PNG
Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    "&" is used to concatenate the strings and the Navigate() function is returning true since the page is navigated properly, hence it is concatenated to the result. Can you try to update the expression as:
     
    Patch(FrokostBestilling_1;Defaults(FrokostBestilling_1);{Titel:"Frokost";Dato: DatePicker1.SelectedDate;Medarbejdernr:TextInput1.Text;Initialer:TextInput2.Text});Navigate(Screen2;ScreenTransition.CoverRight)
     
    Hope this Helps!

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yeah, this is what i thought as well, however when i update the expression to 

     

    Patch(FrokostBestilling_1;Defaults(FrokostBestilling_1);{Titel:"Frokost";Dato: DatePicker1.SelectedDate;Medarbejdernr:TextInput1.Text;Initialer:TextInput2.Text});Navigate(Screen2;ScreenTransition.CoverRight)  

    It underlines the semicolon ( ; ) after curlyclose and parenclose at the end, and says that it is an unextected symbol error? 
    And i've tried with other symbols just to be on the safe side, but that is the same issue 🙂 

  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    You are headed in the right direction, but I think you are using the wrong seperator.  Since I see ';' used where I would normally insert ',' in the rest of your function I assume you are in a locale where the use changes.  Take a look at this paragraph from the documentation.  

     

    Formula separators and chaining operator

    Some separators and operators will shift based on the decimal separator of the author's language:

    Author's language decimal separator PowerApps decimal separator PowerApps list separator PowerApps chaining operator
    . (dot or period) . (dot or period) , (comma) ; (semi-colon)
    , (comma) , (comma) ; (semi-colon) ;; (double semi-colon)

     

    I think the formula you actually need is.

    Patch(FrokostBestilling_1;Defaults(FrokostBestilling_1);{Titel:"Frokost";Dato: DatePicker1.SelectedDate;Medarbejdernr:TextInput1.Text;Initialer:TextInput2.Text});;Navigate(Screen2;ScreenTransition.CoverRight) 
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Yes of course! Perfect, worked like a charm! thanks very much 🙂 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 383 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 356

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard