cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Finnair
Resolver I
Resolver I

Is there restrictions for Collect() in buttons with other functions like Set()

I need a button where I set a new Collection and also set new variables.

 

Is it possible have Collect() and Set() in a same button with "And" between them?

 

Because if I add both functions, Collect() emerges immediately an error: Invalid argument type: must be number, text, boolean.

 

Collect() works fine alone.

2 ACCEPTED SOLUTIONS

Accepted Solutions
SebS
Memorable Member
Memorable Member

Hi @Finnair 

 

Seperate Collect()  with ; 

 

Like this 

 

Collect(); Set()

 

you can place more actions like that just make sure at end of each action you have ";"


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.

View solution in original post

Finnair
Resolver I
Resolver I

I found it, "And" must be a semicolon....

View solution in original post

2 REPLIES 2
SebS
Memorable Member
Memorable Member

Hi @Finnair 

 

Seperate Collect()  with ; 

 

Like this 

 

Collect(); Set()

 

you can place more actions like that just make sure at end of each action you have ";"


If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users to find it.
Finnair
Resolver I
Resolver I

I found it, "And" must be a semicolon....

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,132)