cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Testing Flow with integer innput

I'm building a flow I want to connect to power Apps. For a variable I've therefore asked power apps for the value, and set it to be an integer. To avoid the pesky thing with having to remake the entire flow should it require modification if I use it in power apps right away I've tried using the innbuild flow tester.

However, when I fill inn the parameter with a number, I get an error, where flow seems to read the integer input as a string...

Capture.PNGCapture1.PNGCapture2.PNGCapture3.PNG

so my question is, why? how do I work around this? is this at all intended? I know Power apps already is quite wonky with it's types and hate all and everything that has to do with type conversion(like string->int, or int->string), but yes, how do I work around this? I'd really like to test the flow in power automate before I try to implement it in my app.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Testing Flow with integer innput

Hello @Mats_1997 

 

in your variable use the expression

int()

 

put your power app dynamic content inside the ( )





Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up ?


Proud to be a Flownaut!





View solution in original post

4 REPLIES 4
Highlighted
Post Prodigy
Post Prodigy

Re: Testing Flow with integer innput

Hi @Mats_1997 ,

 

When you are creating manual flow with input you need to select the input of type Number from the available options , otherwise it will be of type string , as a result you are getting the error when you are assigning this value to another integer variable.

 

Thanks

Highlighted
Super User
Super User

Re: Testing Flow with integer innput

Hello @Mats_1997 

 

in your variable use the expression

int()

 

put your power app dynamic content inside the ( )





Did I answer your question? Mark my post as a solution!

If you like my post please hit the Thumbs Up ?


Proud to be a Flownaut!





View solution in original post

Highlighted
Community Support
Community Support

Re: Testing Flow with integer innput

Hi @Mats_1997,

 

Has your problem been solved by @Jcook 's answer?
If your problem has been solved, You could go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

Best Regards,
Community Support Team _ Lin Tu

Highlighted
Helper I
Helper I

Re: Testing Flow with integer innput

hi @v-litu-msft 

Yes, as you can see I did mark his reply as the solution, it did indeed work to go to expression and write

int(triggerBody()['<name of your flow component asking for variable here>'])

good sollution

Helpful resources

Announcements
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Users online (6,986)