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...
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.
Solved! Go to Solution.
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.
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>'])
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.
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Attend in person or online, there are incredible conferences and events happening all throughout the month of September.