Image.makeVersionCurrent (Method)
Makes the specified version the image's active version.
Returns:
Datetime
Arguments:
Name | Type | Required | Description |
---|---|---|---|
imageID | ImageID | Required | An image's ID. |
versionTimeStamp | Datetime | Required | The image version's date and time in the following format 'yyyy-mm-dd hh:mm:ss'. |
moveImageToVersionGallery | Any | Optional. Defaults to '0'. | Boolean value indicating if the image should be moved to the gallery in which the image was residing for the selected version. |
Context:
License Requirements | None |
Permission Requirements | image:author |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock | (not required) |
Transaction Logging | If transaction logging is enabled at the site level, calls to this method will be logged |
Customization | This method may be customized at the site level |
Error Codes:
Code | Error Message |
---|---|
24501 | No record for the specified version exists. |
24502 | The specified version is already the current active version. |
Notes:
None