cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DaynaLitherland
Level: Powered On

Set global variable to be a int which is populated from a parameter

Hello,

 

I want to pass in a parameter from my URL which would be a database Id number. However, when I set the variable using OnStart, it defaults to being text.

 

I set the variable by doing:

Set(startScreen, Param("ScreenId"));

 

But then I get errors about a mismatch in datatype. It sets the variable by default to be text, but I need it to be an int.

 

Many thanks!

Dayna

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft RusselThomas
Microsoft

Re: Set global variable to be a int which is populated from a parameter

Hi DaynaLitherland,

 

You can try

Set(startScreen, Value(Param("ScreenId")))

Haven't tested this, but in theory it should work 🙂

 

Hope this helps,


RT

View solution in original post

2 REPLIES 2
Microsoft RusselThomas
Microsoft

Re: Set global variable to be a int which is populated from a parameter

Hi DaynaLitherland,

 

You can try

Set(startScreen, Value(Param("ScreenId")))

Haven't tested this, but in theory it should work 🙂

 

Hope this helps,


RT

View solution in original post

DaynaLitherland
Level: Powered On

Re: Set global variable to be a int which is populated from a parameter

Perfect, as always, a star! Thank you Russel!

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,836)