I want to erase the set value of a Reference type flow variable in Flow Designer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 10:27 AM
Thanks for taking a look.
I would like to erase the value set for a flow variable of type Reference in Flow Designer so that nothing is set.
To date, I have tried the following methods, none of which have worked.
(1) I tried to erase the set values by leaving the data field blank in "Set Flow Variables" in Flow Logic.
(2) In "Set Flow Variables" of Flow Logic, I tried to overwrite the set value with undefined by setting "return undefined;" to "Togle Scripting".
If the flow variable was a string type flow variable, I could set it to "undefined" by the method (2), but I could not achieve this with the Reference type flow variable.
Please let me know if you can shed any light on this.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2025 04:43 AM
@ymmt Was this issue resolved ? Are you able to update to empty ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2025 05:52 PM
Not sure if you ever found a solution but I finally got this to work in Flow Designer with a Reference field that references the sys_user table. Not sure it works with all Reference fields but worth the try.
Used the code:
var emptyVal = "(empty)";
return emptyVal;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 09:09 AM
Does work for other references.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 11:25 AM
Also when are you setting the variable? How is it getting set the first time? Is this a subflow and you are trying to change the value of one of the inputs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2023 07:13 PM
Thanks, DrewW.
Currently, we are testing the operation with a very simple flow.
Thank you in advance.