ServerScheduledJobs.importJobDefinition (Method)
Imports the definition of an 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. |
isFactory | Boolean | Optional. Defaults to 'false'. | Internal use only - true for importing 'factory' data, otherwise should be false. |
dsnServer | PlainText | Optional. Defaults to '#Request.ServerDataSource#'. | INTERNAL USE ONLY - datasource name for 'commonspot-sites' datasource. |
Context:
License Requirements | (none) |
Permission Requirements | server:ServerMaintenance |
Deny Context | ClusterROPS |
Require Context | (none) |
Author Lock |
Error Codes:
Code | Error Message |
---|---|
39005 | The specified job definition is not a valid $1 level job definition. |
39006 | Another job definition already exists with the same name. |
39007 | The scope of a job definition cannot be changed. |
39015 | '$1' is not defined for one of the form fields of the specified job definition. |
39021 | The specified job definition is a factory job definition which cannot be modified or deleted. |
Notes:
None