restoreOldVersion(articleId, versionNumber)
Creates a draft article from an existing online article
based on the specified archived version of the article and returns
the article version ID.
Signature
public static String restoreOldVersion(String articleId, Integer versionNumber)
Parameters
- articleId
- Type: String
- versionNumber
- Type: Integer
Return Value
Type: String
Example
String articleId = 'Insert article ID';
String id = KbManagement.PublishingService.restoreOldVersion (articleId, 1);