Example: Bulk action to set document property values
This JavaScript example shows how to update the document title property.
Adapt the following items in the query example:
Query example
SELECT This FROM Document WHERE Id = <Document-Id>
Script example
importClass(Packages.com.filenet.api.property.Properties);
importClass(Packages.com.filenet.api.constants.RefreshMode);
function OnCustomProcess (CEObject)
{
CEObject.refresh();
CEObject.getProperties().putValue("DocumentTitle", "Test1");
CEObject.save(RefreshMode.REFRESH);
}