cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,605)