SchedPublish

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:02

Description

Schedule a Publish or Unpublish command.

Parameters (* denotes an optional parameter)

PubDest

Path of the publishing destination to modify, as a string.

PubCmd

A complete description of the modifications to apply to the publishing destination content, encoded as a string.

See: http://tech.teradp.com/tech/html/gn4/docs/VSdoc/frlrfTeraDPGN4GNClientPublishCmdClassTopic_members--.html

Priority*

An integer value that designates the task priority.

At*

A properly constructed date-time condition that specifies when to execute the publish or unpublish, e.g., 2009-12-04T12:04:00Z for GMT time, or 2009-12-04T01:04:00 for local system time. When this parameter is not specified, the task is scheduled for immediate execution.

Profile*

The name of a profile as defined in the Back4 configuration.

Examples

This schedule publish command uses a GMT date/time to publish the object with id=1725 to the publishing destination with the path of '/All':

http://gnhost.teradp.com/MyPortal/do.ashx?cmd=schedpublish&pubcmd=aids:1725&pubdest=/All&at=2009-12-04T16:57:00Z

When executed in the browser, a successful message is returned:

Succesfully scheduled task. The new task id is 61968

This command schedules the unpublish of the object with id=1725 to the publishing destination with the path of '/Image' at the local system time specified:

http://gnhost.teradp.com/maple/do.ashx?cmd=schedpublish&pubcmd=aids:1725&pubdest=/Image&at=2009-12-04T09:43:00

See also

Publish, UnPublish