Flow Designer, issues with using IF branch and currency field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2020 02:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2020 12:11 PM
Talking to HI support, they stated the below (in case anyone else runs into this)
Methods such as getValue() and getCurrencyValue() return unformatted numbers as strings. The floating point value can be obtained by using the JavaScript function parseFloat(). The resulting value can be used to perform calculations. The currency associated with these values can be obtained by the APIs that return the currency code. You can also use the getCurrencyCode() methods to determine a field's currency. var rate = parseFloat(current.base_rate); var currencyCode = current.base_rate.getCurrencyCode();
I can't create a custom scripted action as it requires a integration hub license and we aren't licensed for it so as a workaround and to keep my sanity I changed the fields to a float and the comparison works as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2020 11:12 AM
Just want to update that when I went back to this and tried some other numbers, it was doing it's old behavior so I don't think the work-around I said worked actually worked. The oob IF activity seems to be doing a string compare no matter what the fields are. Anyways, I got tired of messing around with it and decided to go the workflow route.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2020 11:17 AM
Any chance you can use the inline scripting? Example (click the Fx icon next the field you want)
var floatval = parseFloat(fd_data.trigger.my_amount;
return floatval;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2020 07:23 AM