Sub-Flow test with FX Currency

Kelly Logan
Kilo Sage

I have a sub-flow that has two FX Currency fields as inputs. When I want to test however I am not finding the right value to enter. (I am on  glide-vancouver-07-06-2023__patch4-hotfix1b-01-25-2024.)

 

The test field has no FX Currency controls, and appears to be just a blank string input.

KellyLogan_0-1711569759660.png

 

I have tried:
USD;230

$230

230

4cf59191834146509e2ce8c0deaad3f6 (the value in XML for a field with the same value)

 

Any ideas? If I don't find an answer soon I'll workaround by changing the inputs to decimal then transforming the data before and after. Seems like a waste though (also, not portable if people start using other currencies).

1 REPLY 1

Vaclav Zdrahal
Tera Contributor

l'd try to set it in the script in scripted action. If it doesn't work, create a script include for setting it and call it from the flow/scripted action. 

FX currency field can be set by setDisplayValue("USD;230") or using directly the object, so:

myCurrencyField = {

currency: "USD",

amount: 230

}
Hope it can help.