function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Doug Beltowski XDoug Beltowski X 

Using Visual Flow set a Date field to Null / Blank

I can't figure out how to do this.  There seems to be no global constant for blank/null associated with Date fields, and if I simply leave the assignment box empty it doesn't do anything.
Derhyk Doggett -Derhyk Doggett -
Can you use $GlobalConstant.Null or simply null?
Doug Beltowski XDoug Beltowski X
No option for null  These are the only options I've given to assign the Date field.  
Derhyk Doggett -Derhyk Doggett -

Hi Doug,
I think I have a solution for you. Unsure if you've already setup an sObject variable and formula.
What I did to achieve this is made an sObject variable Account and a formula to pull the CreatedDate. (Not the best example as this will never be null, unlike your scenerio - but should work the same regardless).
After this I added a Decision and then used the formula 'AccountCreatedDate" formula as the resource and used the isnull operator.
Image below.

User-added image


Jackie StuartJackie Stuart
Alternatively, create a new formula resource, and use 'null' or {!Null}