Clear out a value in a workflow update.

bigbacon
Giga Guru

I have a workflow that is creating tasks and one of the variables in the task keeps being set to something associated with the caller but we can't figure out how to stopt that so we are trying to make an update to the task after the workflow creates it to clear out that variable. 

So far I've tried to just set the script to return "" or return null but that doesn't work. The field we are trying to clear is a reference field and it is not a manditory field for the task.

 

How do we clear it and/or how do I stop it from doing what its doing in the first place?

1 REPLY 1

Brad Bowman
Kilo Patron
Kilo Patron

You can do this with a before or after insert Business Rule on the sc_task table.  If you don't have anything in the Catalog Task activity in the workflow that is setting this value initially, then there might be a Business Rule that is doing it.  Variables are common across the RITM and all Catalog Tasks, so it could be updated on the RITM, then reflected on the Catalog Task.