cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mats_1997
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
Jcook
MVP

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!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





View solution in original post

5 REPLIES 5
ManishJain
Solution Sage
Solution Sage

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

Jcook
MVP

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!


Check out my blog for Power Automate tips,
tricks, and guides
FlowAltDelete





v-litu-msft
Community Support
Community Support

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

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

mike528
Resolver II
Resolver II

Everyone, 

 

While the workarounds suggested here are one way to solve it. I am happy to report that after many, many calls with Microsoft support, this is now fixed. When you test a flow with an integer parameter it properly recognizes the integer, evident by the input control being an incrementor and if you enter something other than a number, it shows an error message.

 

Thanks to Microsoft Support for getting this fixed. 

@Jcook @v-litu-msft @ManishJain 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,364)