performWithEditedContentOfObjects

Available for: Content Management Server

Task: The procedure executes obj withId id editedContent command for each file in the specified objIds list. If a file does not have a draft version, it is quietly skipped.

Syntax:

performWithEditedContentOfObjects command objIds

Function parameters:

  • command is one of the available content commands, including the parameters to be passed to this command.

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

Return value if successful: none

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

Example:

CM>performWithEditedContentOfObjects {set validFrom [now]} [obj list]
performing set validFrom [now] with edited Content
done.