I have a screen flow with a Currency screen element.
I'm trying to set the default value with a formula. The formula will either have a value, or it won't.
If the result of the formula is null, the flow errors when I reach that page.
It looks like the result of the formula must be a non null value.
The formula I want to use:
IF(
CONDITION, null,
{!MyVar.My_Currency_Field__c}
)
The formula I have to use:
IF(
CONDITION, 0,
BLANKVALUE({!MyVar.My_Currency_Field__c}, 0)
)
Notice how I'm being forced to provide a value, in this case 0
.
NOTE: this happens regardless of whether the currency field is required or not.
Is there a way to return a null value in a Currency flow formula?
This same behaviour doesn't seem to happen with a Number field, so it seems something specific to the Currency field.
NULL
rather than0
?null
in some circumstances.