Consuming a webservice that requires a Float

0
Hi, Doing some testing with Mx6.6 and encounter the issue that one of the web services that I need to consume (and is out of my control) requires a Float value (when importing it, it shows datatype Float for one of it attributes). Mx6 deprecates Float and requires Decimals. How to properly handle this? Thanks. EDIT: toString($Attribute/Decimal) seems to be allowed as a value.
asked
1 answers
0

For import mapping, you can directly map the Float attribute from the consumed webservice to the Decimal attribute in your Domain Model. Mendix wil automatically convert it.

(For export mapping, this doesn't work, and you'll need to create a microflow that will convert the Decimal to a float)

answered