I am building a flow that runs when someone adds an attachment to an item in a Sharepoint list. I have to specify which item; in this case the row number is called 'ReqID'; it's a column in Sharepoint that's type is "Number". I initialized the variable in PowerAutomate because I need to reference it in the content of an Adaptive Card. PowerAutomate threw an error and told me this was a new issue and I should post it here:
Error:
Action 'Initialize_variable' failed
Error details:
Bad Request. The variable 'ReqID' of type 'Integer' cannot be initialized or updated with value of type 'Float'. The variable 'ReqID' only supports values of types 'Integer'.
I guess I need to figure out a way of converting a floating point value to an integer so Power Automate doesn't barf.
Here's a screen shot of my flow, if you need it:
Please advise.
Solved! Go to Solution.
Hi @citykidz
Try using the below expression. Store the value in a variable float and in your next compose action step use the below expression
first(split(string(variables('Float')),'.'))
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @citykidz
Try using the below expression. Store the value in a variable float and in your next compose action step use the below expression
first(split(string(variables('Float')),'.'))
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogUse int() function: https://powerusers.microsoft.com/t5/Building-Flows/int-function-not-working-as-expected/td-p/418008
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
32 | |
32 | |
25 | |
24 | |
21 |
User | Count |
---|---|
64 | |
56 | |
44 | |
37 | |
29 |