In the new SP1 SU2 HF3 update, the Inline Function activity now allows Number(ToDecimal, ToDouble, ToFloat, ToLong) functions. These are particularly useful when converting data from REST sources, since REST data always comes back a strings. To illustrate this, create a simple test process like this:
On the form, add one text box with a default string value of "1234.5678"
In the Inline Function, add Process Fields DecimalValue as a Decimal type and DoubleValue as a Double type. (Of course, Float and Long variables can also be created.)
Now define these two variables using the form text box and the new functions as shown here.
Please sign in to leave a comment.