Newer Version Available

This content describes an older version of this product. View Latest

scheduleForPublication(articleId, scheduledDate)

Schedules the article for publication as a major version. If the specified date is null, the article is published immediately.

Signature

public static Void scheduleForPublication(String articleId, Datetime scheduledDate)

Parameters

articleId
Type: String
scheduledDate
Type: Datetime

Return Value

Type: Void

Example

1String articleId = 'Insert article ID';
2Datetime scheduledDate = Datetime.newInstanceGmt(2012, 12,1,13,30,0);
3KbManagement.PublishingService.scheduleForPublication(articleId, scheduledDate);