Table "Job Queue Entry"
ID 472
Namespace: System.Threading
Properties
Fields
Name
Type
Description
ID
Guid
"User ID"
Text[65]
XML
Blob
"Last Ready State"
DateTime
"Expiration Date/Time"
DateTime
"Earliest Start Date/Time"
DateTime
"Object Type to Run"
Option
"Object ID to Run"
Integer
"Object Caption to Run"
Text[250]
"Report Output Type"
Enum System.Threading."Job Queue Report Output Type"
"Maximum No. of Attempts to Run"
Integer
"No. of Attempts to Run"
Integer
Status
Option
"Record ID to Process"
RecordId
"Parameter String"
Text[250]
"Recurring Job"
Boolean
"No. of Minutes between Runs"
Integer
"Run on Mondays"
Boolean
"Run on Tuesdays"
Boolean
"Run on Wednesdays"
Boolean
"Run on Thursdays"
Boolean
"Run on Fridays"
Boolean
"Run on Saturdays"
Boolean
"Run on Sundays"
Boolean
"Starting Time"
Time
"Ending Time"
Time
"Reference Starting Time"
DateTime
"Next Run Date Formula"
DateFormula
Description
Text[250]
"Run in User Session"
Boolean
"User Session ID"
Integer
"Job Queue Category Code"
Code[10]
"Error Message"
Text[2048]
"User Service Instance ID"
Integer
"User Session Started"
DateTime
"Notify On Success"
Boolean
"User Language ID"
Integer
"Printer Name"
Text[250]
"Report Request Page Options"
Boolean
"Rerun Delay (sec.)"
Integer
"System Task ID"
Guid
Scheduled
Boolean
"Manual Recurrence"
Boolean
"Inactivity Timeout Period"
Integer
"Error Message Register Id"
Guid
"Job Timeout"
Duration
"Entry No."
BigInteger
"Priority Within Category"
Enum System.Threading."Job Queue Priority"
Specifies the priority of the job within the category. Is only used when the job has a Category Code
SystemId
Guid
SystemCreatedAt
DateTime
SystemCreatedBy
Guid
SystemModifiedAt
DateTime
SystemModifiedBy
Guid
SystemRowVersion
BigInteger
Methods
DoesExistLocked
procedure DoesExistLocked(): Boolean
Returns
RefreshLocked
procedure RefreshLocked()
GetRecLockedExtendedTimeout
Allow up to three lock time-outs = 90 seconds, in order to reduce lock timeouts
procedure GetRecLockedExtendedTimeout(): Boolean
Returns
IsExpired
procedure IsExpired(AtDateTime: DateTime): Boolean
Parameters
Name
Type
Description
AtDateTime
DateTime
Returns
IsReadyToStart
procedure IsReadyToStart(): Boolean
Returns
ShowErrorMessage
procedure ShowErrorMessage()
SetError
procedure SetError(ErrorText: Text)
Parameters
Name
Type
Description
ErrorText
Text
SetResult
procedure SetResult(IsSuccess: Boolean, PrevStatus: Option, ErrorMessageRegisterId: Guid)
Parameters
Name
Type
Description
IsSuccess
Boolean
PrevStatus
Option
ErrorMessageRegisterId
Guid
SetResultDeletedEntry
procedure SetResultDeletedEntry()
FinalizeRun
GetLastLogEntryNo
procedure GetLastLogEntryNo(): Integer
Returns
InsertLogEntry
procedure InsertLogEntry(var JobQueueLogEntry: Record "Job Queue Log Entry")
Parameters
FinalizeLogEntry
procedure FinalizeLogEntry(JobQueueLogEntry: Record "Job Queue Log Entry")
Parameters
FinalizeLogEntry
procedure FinalizeLogEntry(JobQueueLogEntry: Record "Job Queue Log Entry", LastErrorCallStack: Text)
Parameters
SetStatus
procedure SetStatus(NewStatus: Option)
Parameters
Name
Type
Description
NewStatus
Option
Cancel
DeleteTask
DeleteTasks
Restart
CheckRequiredPermissions
procedure CheckRequiredPermissions()
HasRequiredPermissions
procedure HasRequiredPermissions(): Boolean
Returns
CancelTask
ScheduleTask
procedure ScheduleTask(): Guid
Returns
DefaultJobTimeout
procedure DefaultJobTimeout(): Duration
Returns
Type
Description
Duration
ReuseExistingJobFromID
procedure ReuseExistingJobFromID(JobID: Guid, ExecutionDateTime: DateTime): Boolean
Parameters
Name
Type
Description
JobID
Guid
ExecutionDateTime
DateTime
Returns
ReuseExistingJobFromCategory
procedure ReuseExistingJobFromCategory(JobQueueCategoryCode: Code[10], ExecutionDateTime: DateTime): Boolean
Parameters
Name
Type
Description
JobQueueCategoryCode
Code[10]
ExecutionDateTime
DateTime
Returns
ReuseExistingJobFromCategoryAndUser
procedure ReuseExistingJobFromCategoryAndUser(JobQueueCategoryCode: Code[10], UserId: Text, ExecutionDateTime: DateTime): Boolean
Parameters
Name
Type
Description
JobQueueCategoryCode
Code[10]
UserId
Text
ExecutionDateTime
DateTime
Returns
CleanupAfterExecution
procedure CleanupAfterExecution()
IsNextRunDateFormulaSet
procedure IsNextRunDateFormulaSet(): Boolean
Returns
ShowStatusMsg
procedure ShowStatusMsg(JQID: Guid)
Parameters
Name
Type
Description
JQID
Guid
LookupRecordToProcess
procedure LookupRecordToProcess()
LookupObjectID
procedure LookupObjectID(var NewObjectID: Integer): Boolean
Parameters
Name
Type
Description
NewObjectID
Integer
Returns
GetXmlContent
procedure GetXmlContent(): Text
Returns
SetXmlContent
procedure SetXmlContent(Params: Text)
Parameters
Name
Type
Description
Params
Text
GetReportParameters
procedure GetReportParameters(): Text
Returns
SetReportParameters
procedure SetReportParameters(Params: Text)
Parameters
Name
Type
Description
Params
Text
RunReportRequestPage
procedure RunReportRequestPage()
ScheduleJobQueueEntry
procedure ScheduleJobQueueEntry(CodeunitID: Integer, RecordIDToProcess: RecordId)
Parameters
Name
Type
Description
CodeunitID
Integer
RecordIDToProcess
RecordId
ScheduleJobQueueEntryWithParameters
procedure ScheduleJobQueueEntryWithParameters(CodeunitID: Integer, RecordIDToProcess: RecordId, JobParameter: Text[250])
Parameters
Name
Type
Description
CodeunitID
Integer
RecordIDToProcess
RecordId
JobParameter
Text[250]
ScheduleJobQueueEntryForLater
procedure ScheduleJobQueueEntryForLater(CodeunitID: Integer, StartDateTime: DateTime, JobQueueCategoryCode: Code[10], JobParameter: Text)
Parameters
Name
Type
Description
CodeunitID
Integer
StartDateTime
DateTime
JobQueueCategoryCode
Code[10]
JobParameter
Text
GetStartingDateTime
procedure GetStartingDateTime(Date: DateTime): DateTime
Parameters
Name
Type
Description
Date
DateTime
Returns
Type
Description
DateTime
GetEndingDateTime
procedure GetEndingDateTime(Date: DateTime): DateTime
Parameters
Name
Type
Description
Date
DateTime
Returns
Type
Description
DateTime
ScheduleRecurrentJobQueueEntry
procedure ScheduleRecurrentJobQueueEntry(ObjType: Option, ObjID: Integer, RecId: RecordId)
Parameters
Name
Type
Description
ObjType
Option
ObjID
Integer
RecId
RecordId
ScheduleRecurrentJobQueueEntryWithFrequency
procedure ScheduleRecurrentJobQueueEntryWithFrequency(ObjType: Option, ObjID: Integer, RecId: RecordId, NoofMinutesbetweenRuns: Integer)
Parameters
Name
Type
Description
ObjType
Option
ObjID
Integer
RecId
RecordId
NoofMinutesbetweenRuns
Integer
ScheduleRecurrentJobQueueEntryWithFrequency
procedure ScheduleRecurrentJobQueueEntryWithFrequency(ObjType: Option, ObjID: Integer, RecId: RecordId, NoofMinutesbetweenRuns: Integer, StartTime: Time)
Parameters
Name
Type
Description
ObjType
Option
ObjID
Integer
RecId
RecordId
NoofMinutesbetweenRuns
Integer
StartTime
Time
ScheduleRecurrentJobQueueEntryWithRunDateFormula
procedure ScheduleRecurrentJobQueueEntryWithRunDateFormula(ObjType: Option, ObjID: Integer, RecId: RecordId, JobQueueCategoryCode: Code[10], MaxAttemptsToRun: Integer, NextRunDateFormula: DateFormula, StartingTime: Time)
Parameters
Name
Type
Description
ObjType
Option
ObjID
Integer
RecId
RecordId
JobQueueCategoryCode
Code[10]
MaxAttemptsToRun
Integer
NextRunDateFormula
DateFormula
StartingTime
Time
InitRecurringJob
procedure InitRecurringJob(NoofMinutesbetweenRuns: Integer)
Parameters
Name
Type
Description
NoofMinutesbetweenRuns
Integer
FindJobQueueEntry
procedure FindJobQueueEntry(ObjType: Option, ObjID: Integer): Boolean
Parameters
Name
Type
Description
ObjType
Option
ObjID
Integer
Returns
GetDefaultDescription
procedure GetDefaultDescription(): Text[250]
Returns
Type
Description
Text[250]
FilterInactiveOnHoldEntries
procedure FilterInactiveOnHoldEntries()
DoesJobNeedToBeRun
procedure DoesJobNeedToBeRun(): Boolean
Returns
Events
OnAfterReschedule
[IntegrationEvent(False,False)]
local procedure OnAfterReschedule(var JobQueueEntry: Record "Job Queue Entry")
Parameters
OnAfterCleanupAfterExecution
[IntegrationEvent(False,False)]
local procedure OnAfterCleanupAfterExecution(var JobQueueEntry: Record "Job Queue Entry")
Parameters
OnAfterGetXmlContent
[IntegrationEvent(False,False)]
local procedure OnAfterGetXmlContent(var JobQueueEntry: Record "Job Queue Entry", var Params: Text)
Parameters
OnAfterRunReportRequestPage
[IntegrationEvent(False,False)]
local procedure OnAfterRunReportRequestPage(JobQueueEntry: Record "Job Queue Entry", var Params: Text)
Parameters
OnAfterSetDefaultValues
[IntegrationEvent(False,False)]
local procedure OnAfterSetDefaultValues(var JobQueueEntry: Record "Job Queue Entry")
Parameters
OnBeforeClearServiceValues
[IntegrationEvent(False,False)]
local procedure OnBeforeClearServiceValues(var JobQueueEntry: Record "Job Queue Entry")
Parameters
OnAfterFinalizeRun
[IntegrationEvent(False,False)]
local procedure OnAfterFinalizeRun(JobQueueEntry: Record "Job Queue Entry")
Parameters
OnBeforeInsertLogEntry
[IntegrationEvent(False,False)]
local procedure OnBeforeInsertLogEntry(var JobQueueLogEntry: Record "Job Queue Log Entry", var JobQueueEntry: Record "Job Queue Entry")
Parameters
OnBeforeModifyLogEntry
[IntegrationEvent(False,False)]
local procedure OnBeforeModifyLogEntry(var JobQueueLogEntry: Record "Job Queue Log Entry", var JobQueueEntry: Record "Job Queue Entry")
Parameters
OnBeforeScheduleTask
[IntegrationEvent(False,False)]
local procedure OnBeforeScheduleTask(var JobQueueEntry: Record "Job Queue Entry", var TaskGUID: Guid, var IsHandled: Boolean)
Parameters
OnBeforeSetRecurringField
[IntegrationEvent(False,False)]
local procedure OnBeforeSetRecurringField(var JobQueueEntry: Record "Job Queue Entry", var IsHandled: Boolean)
Parameters
OnBeforeSetStatusValue
[IntegrationEvent(False,False)]
local procedure OnBeforeSetStatusValue(var JobQueueEntry: Record "Job Queue Entry", var xJobQueueEntry: Record "Job Queue Entry", var NewStatus: Option, var IsHandled: Boolean)
Parameters
OnBeforeTryRunJobQueueSendNotification
[IntegrationEvent(False,False)]
local procedure OnBeforeTryRunJobQueueSendNotification(var JobQueueEntry: Record "Job Queue Entry", var IsHandled: Boolean)
Parameters
OnFindingIfJobNeedsToBeRun
[IntegrationEvent(True,False)]
local procedure OnFindingIfJobNeedsToBeRun(var Result: Boolean)
Parameters
Name
Type
Description
Result
Boolean
OnInsertOnBeforeSetDefaultValues
[IntegrationEvent(False,False)]
local procedure OnInsertOnBeforeSetDefaultValues(var JobQueueEntry: Record "Job Queue Entry", var SetupUserId: Boolean)
Parameters
OnRunReportRequestPageBeforeGetReportParameters
[IntegrationEvent(False,False)]
local procedure OnRunReportRequestPageBeforeGetReportParameters(JobQueueEntry: Record "Job Queue Entry")
Parameters
OnScheduleTaskOnAfterCalcShouldChangeUserID
Obsolete
This element will become obsolete from version 25.0. Function ScheduleTask no longer changes user ID.
[Obsolete(Function ScheduleTask no longer changes user ID.,25.0)]
[IntegrationEvent(False,False)]
local procedure OnScheduleTaskOnAfterCalcShouldChangeUserID(var JobQueueEntry: Record "Job Queue Entry", var ShouldChangeUserID: Boolean)
Parameters
OnSetXmlContentOnBeforeModify
[IntegrationEvent(False,False)]
local procedure OnSetXmlContentOnBeforeModify(var JobQueueEntry: Record "Job Queue Entry", var Params: Text)
Parameters
OnBeforeCleanupAfterExecution
[IntegrationEvent(False,False)]
local procedure OnBeforeCleanupAfterExecution(var JobQueueEntry: Record "Job Queue Entry", var IsHandled: Boolean)
Parameters
OnBeforeRestart
[IntegrationEvent(False,False)]
local procedure OnBeforeRestart(JobQueueEntry: Record "Job Queue Entry")
Parameters
OnAfterSetReportParameters
[IntegrationEvent(False,False)]
local procedure OnAfterSetReportParameters(var JobQueueEntry: Record "Job Queue Entry")
Parameters
OnScheduleRecurrentJobQueueEntryOnBeforeEnqueueTask
[IntegrationEvent(False,False)]
local procedure OnScheduleRecurrentJobQueueEntryOnBeforeEnqueueTask(var JobQueueEntry: Record "Job Queue Entry")
Parameters
OnModifyOnAfterRunParametersChangedCalculated
[IntegrationEvent(False,False)]
local procedure OnModifyOnAfterRunParametersChangedCalculated(var JobQueueEntry: Record "Job Queue Entry", var xJobQueueEntry: Record "Job Queue Entry", var RunParametersChanged: Boolean)
Parameters
OnBeforeHandleExecutionError
[IntegrationEvent(False,False)]
local procedure OnBeforeHandleExecutionError(var JobQueueEntry: Record "Job Queue Entry", var IsHandled: Boolean)
Parameters
OnBeforeIsReadyToStart
[IntegrationEvent(False,False)]
local procedure OnBeforeIsReadyToStart(var JobQueueEntry: Record "Job Queue Entry", var ReadyToStart: Boolean, var IsHandled: Boolean)
Parameters
OnAfterSetStatusValue
[IntegrationEvent(False,False)]
local procedure OnAfterSetStatusValue(var JobQueueEntry: Record "Job Queue Entry", var xJobQueueEntry: Record "Job Queue Entry")
Parameters
See also