I’ve used the javascript below to set the value for the property TestProp1 to green **(“TestProp1”, “green”)**. Now I want to **unset** the value. Using the script below, I’ve tried CEObject.getProperties().putValue(“TestProp1”, null); but the script errors with **(string.null) is ambiguous**. What’s the correct syntax or method to set a property to null making it as if it was never set?
Script that **does not work**:
importClass(Packages.com.filenet.api.property.Properties);
importClass(Packages.com.filenet.api.constants.RefreshMode);
function OnCustomProcess (CEObject)
{
CEObject.refresh();
CEObject.getProperties().putValue(“TestProp1”, null);
CEObject.save(RefreshMode.REFRESH);
}