Hi, I am successfully using scripts to put values to properties, but now I am facing a customer request to clear an already set values for a number of cases. In a case folde in ACCE there is an option to cancel set value and clear the field. Could you please provide a script I can use for bulk action? The example of my script I am currently using is
importClass(Packages.com.filenet.api.constants.RefreshMode);
const date1 = new Date("2014-12-31T00:00:00");
function OnCustomProcess (CEObject)
{
CEObject.refresh();
CEObject.getProperties().putValue("CRU_CzyUmowaNaCzasNieokreslony", "TAK");
CEObject.getProperties().putValue("CRU_DataZakonczeniaZUmowy", date1);
CEObject.save(RefreshMode.REFRESH);
}
In this case, I would like to value of the CRU_DataZakonczeniaZUmowy to be void. I have tried to put the date1 const as a void value, but it resulted in the date being displayed as 1970.01.01.
------------------------------
Bartosz Kaczmarek
------------------------------