Table

BatchJobHistory

Batch jobs history

Keeps a history record of batch job runs. It shows who created, ran or cancelled the job, the scheduled and actual start times, the end time and the final status. It also holds the company, batch group and scheduling priorities. It has no defined key and links to the batch job, company, partition and user records.

Table name
BatchJobHistory
Module
System administration
Table group
Transaction
Table type
Regular
Data per company
No
Configuration key
None
Primary index
RecId
Replacement key
None
Key fields
None
Model
ApplicationPlatform

Fields (23)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AlertsProcessedShows whether alerts for this run are not processed, being processed or completed.Enum
BatchAlertsProcessed (enum)
NoNone
BatchCreatedByUser who created the batch job.String
UserId
NoNone
BatchGroupBatch group the job belongs to.String
BatchGroupId
NoNone
BatchJobIdThe batch job this history record belongs to. It points to the batch job record.Int64
RefRecId
NoBatchJob.RecIdNone
CanceledByUser who cancelled the batch job.String
BatchCanceledBy
NoNone
CaptionShort text describing the job.String (200)
BatchCaption
NoNone
CompanyCompany (legal entity) the job ran for.String
SelectableDataArea
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataPartitionData partition the record belongs to.String
PartitionKey
NoNone
EndDateTimeDate and time the job ended.UtcDateTime
EndDateTime
NoNone
ExecutedByUser the job ran as.String
UserId
NoNone
FinishingWhole number whose meaning is not stated in the metadata.low confidenceInteger
Integer
NoNone
GroupSchedulingPriorityScheduling priority set on the batch group, from low to reserved capacity.Enum
BatchSchedulingPriority (enum)
NoNone
JobSchedulingPriorityScheduling priority set on the job, from low to reserved capacity.Enum
BatchSchedulingPriority (enum)
NoNone
JobSchedulingPriorityIsOverriddenYes/No flag showing whether the job's scheduling priority was overridden.Enum
NoYes (enum)
NoNone
OrigStartDateTimeDate and time the job was scheduled to start.UtcDateTime
StartDateTime
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RuntimeJobBoolean flag whose meaning is not stated beyond its name; it appears to mark a runtime job.low confidenceEnum
boolean (enum)
NoNone
StartDateTimeDate and time the job actually started.UtcDateTime
StartDateTime
NoNone
StatusStatus of the job, such as waiting, executing, error, ended or cancelled.Enum
BatchStatus (enum)
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (6)

Relations (7)

Each relation joins BatchJobHistory to another table on the fields shown.

  • BatchJobRelation → BatchJob

    Join on BatchJobId = BatchJob.RecId

    Many BatchJobHistory records → zero or one BatchJob record

  • DataArea → DataArea

    Join on Company = DataArea.id, DataArea.isVirtual = null

    Many BatchJobHistory records → zero or one DataArea record

  • DataAreaRelation → DataArea

    Join on Company = DataArea.id

    Many BatchJobHistory records → zero or one DataArea record

  • PartitionRelation → Partitions

    Join on DataPartition = Partitions.PartitionKey

    Many BatchJobHistory records → exactly one Partitions record

  • UserInfo → UserInfo

    Join on BatchCreatedBy = UserInfo.id

    Many BatchJobHistory records → zero or one UserInfo record

  • UserInfo1 → UserInfo

    Join on CanceledBy = UserInfo.id

    Many BatchJobHistory records → zero or one UserInfo record

  • ExecutedByUserInfo → UserInfo

    Join on ExecutedBy = UserInfo.id

    Many BatchJobHistory records → zero or one UserInfo record

Get this data out

No public entity reads from BatchJobHistory. Its data is only reachable through the application, a custom entity or a database export.

Need help with BatchJobHistory in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk