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 Apps
Suggested Answer

Multiline code

(1) ShareShare
ReportReport
Posted on by

Hello, I want to assign multiple actions (functions) to some buttons, but I always get an error.
For example, I want a button to change the value of two different global variables at the same time.

In general, the problem is how to concatenate two different actions

 
 OnSelect:
 
Set(Var1; true)
Set(Var2; "G3")
 
I tried using ',' or ';' at the end of each line, but it doesn't work.
 
Categories:
I have the same question (0)
  • Suggested answer
    Infamous_Let Profile Picture
    332 Super User 2026 Season 1 on at
    To set multiple global variables at the same time, you should separate the actions with a semicolon (;) but also make sure you're using commas (,) inside the Set function. Your code should look like this:

    Set(Var1, true); 
    Set(Var2, "G3")
  • Suggested answer
    CU20022111-0 Profile Picture
    3 on at
    I had the same problem and I found the solution in the Microsoft Documentation; 
     
     
    Basically it depends on your system language. Specially for French or Spanish you have to consider the different decimal separator.
     
    Please try doble semi-colon it will solve the problem. 
     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 414

#2
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard