SiteScheduledJobs.importJobDefinition (Method)

Imports the definition of a job definition. Either creates a new Job Definition or updates an existing Job Definition.

Returns:

PositiveInteger

Arguments:

Name Type Required Description
jobDefinitionID NonNegativeInteger Required The ID of the job definition to update, or 0 to create a new job definition.
dialogXML JobDefinitionDialogXML Required The XML describing the job definition.

Context:

License Requirements (none)
Permission Requirements site:SiteAdmin
Deny Context ClusterROPS
Require Context (none)
Author Lock (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization Customization is not supported for this method.

Error Codes:

Code Error Message
39004 $1 level job definitions cannot be imported at the $2 level.
39006 Another job definition already exists with the same name.
39021 The specified job definition is a factory job definition which cannot be modified or deleted.

Notes:

None