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 / Why does a text string...
Power Apps
Answered

Why does a text string value become a boolean when set to a variable?

(0) ShareShare
ReportReport
Posted on by 216

My Concat statement combines names from a Combobox and displays the text output. This part is working as expected.

Concat(cboxCC.SelectedItems, DisplayName, ";")

koontz_0-1683217192757.png

 

However, when I set the Concat statement to a variable, <test> in this instance, it then becomes a Boolean value

and evaluates to "True". (screenshot below). I would expect my variable <test> to be the text output from the Concat 

statement. Am I misunderstanding how to set a variable in Powerapps?

 

koontz_1-1683217269468.png

 

Categories:
  • mmollet Profile Picture
    3,187 on at

    What you are seeing is the notification from Notify. This function always returns true.

  • koontz Profile Picture
    216 on at

    I thought Notify returned the argument passed to it?

     

    koontz_0-1683218669820.png

     

  • Verified answer
    mmollet Profile Picture
    3,187 on at

    Correct but set has no return value and so when it returns nothing I am assuming that the Notify defaults to its default return value of true as explained in the link in the previous comment I made. 

     

    When I copy your code it runs fine it just has that popup that says true. You could always just split this into 2 lines of code and execute the separately. This would work better I think.

  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

     Hi @koontz ,

     

    The point is that the 'true' is the return value of the function 'Set' instead of the variable 'test'. If you only want the string value , please try:

     

    Notify(Concat(cboxCC.SelectedItems, DisplayName, ";"))

     

    Best Regards,

    Bof

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard