Creates a previous version for an item if versioning is enabled in the version control settings, and then increments the version number of the item to the next major version.



Code Sample


# Increment the major version of the item.

$itemIdentifier = 1526;

$versionDescription = "Repurposed the item as a test server.";

$xia.DO_IncrementMajorVersionNumber($itemIdentifier, $versionDescription);