Need help clearing a String variable in an Update Record in the Flow designer.

WarrenB
Tera Expert

I've got a weird issue.

A final step in a flow I am building is to check for records in sys_user where the "On Leave" flag is false, but some other fields are not empty.  My first attempt was this.  Works great for the Leave effective date and Leave not to exceed fields, but the On Leave Comments field does not get cleared.

find_real_file.png

I then tried some simple inline scripts to clear the comments of which nothing worked

return ;
return '';

Finally, I created a flow variable and did not assign a value.  According to the documentation, that would keep it at the default value isnull.  That didn't work!

find_real_file.png

Any ideas?  This (I would think) shouldn't be too hard!

1 ACCEPTED SOLUTION

I'm curious, have you tried to update the records one at a time in a for-each loop instead?

View solution in original post

9 REPLIES 9

Sukraj Raikhraj
Kilo Sage

Did you try single quotes?

Yes.  No good!  

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

are those fields mandatory?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

No, they aren't mandatory.