Start of changeIBM FileNet P8, Version 5.2.1            

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:

Document Id Search for the Id of the document whose title you want to change.

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);
}
            


Last updated: March 2016
p8pcc443.htm

© Copyright IBM Corporation 2017.
End of change