Hi all,
Right now, every field the form processor fetchs is TEXT type..how this can be changed? since there are numbers there.
thanks
Alfredo
Solved! Go to Solution.
Hi @ALFRED05,
Can you share how you have written the float function?
Here's an example of how it could look like: float(outputs('Process_and_save_information_from_forms')?['body/responsev2/predictionOutput/labels/Invoice_c07c9cb94c35e3b7ad2a2db05978cfea/value'])
Hi @ALFRED05,
Thanks for the question. Indeed today your Form processing model will return the extracted values as text. You can then use the built in function in both Power Automate and Power Apps to convert the desired outputs to number.
In a flow you can use both the int() function (or the float() function if your number has decimals) as shown here:
In an app in Power Apps, you can use the Value() function like this:
I hope this helps! Lets us know if you have more questions.
Thanks Joe! but it didnt work :(, I got this error. maybe worth mention I am using a sharepoint file to record the outcomes, I have tried changing the column type to NUMBER but still the same error.
I tried without the float function and it worked.
the problem is that is as TEXT in sharepoint.
Hi @ALFRED05,
Can you share how you have written the float function?
Here's an example of how it could look like: float(outputs('Process_and_save_information_from_forms')?['body/responsev2/predictionOutput/labels/Invoice_c07c9cb94c35e3b7ad2a2db05978cfea/value'])
I did it exactly like in the video, picking up the parameter from the dynamic content
I JUST REALIZED WHY IT GIVES THE ERROR!...the number has a $, that must be the issue. Sorry to bother you!!
Great to hear you found the issue @ALFRED05. Not bothering at all. 🙂
You could leverage the replace function to get rid of the $ sign and then convert to number like this:
float(replace(outputs('Predict')?['body/responsev2/predictionOutput/labels/Total/value'],'$',''))
Check out new user group experience and if you are a leader please create your group
See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.