performWithObjects

Available for: Content Management Server

Task: The procedure executes the obj withId id command for each file in the specified objIds list.

Syntax:

performWithObjects command objIds

Function parameters:

  • command is one of the available obj commands, including the parameters to be passed to it.

  • objIds is the list of files for which the command command is to be executed.

Return value if successful: none

Necessary permissions: Only the IDs of the files for which the user has permissionRead permission will be processed. Further permissions may be required to execute the specified command.

Example:

CM>performWithObjects {set suppressExport 0} {2108 2116 2124}
performing set suppressExport 0
done.