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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AlertsProcessedShows whether alerts for this run are not processed, being processed or completed. | EnumBatchAlertsProcessed (enum) | No | None | |
BatchCreatedByUser who created the batch job. | StringUserId | No | None | |
BatchGroupBatch group the job belongs to. | StringBatchGroupId | No | None | |
BatchJobIdThe batch job this history record belongs to. It points to the batch job record. | Int64RefRecId | No | BatchJob.RecId | None |
CanceledByUser who cancelled the batch job. | StringBatchCanceledBy | No | None | |
CaptionShort text describing the job. | String (200)BatchCaption | No | None | |
CompanyCompany (legal entity) the job ran for. | StringSelectableDataArea | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataPartitionData partition the record belongs to. | StringPartitionKey | No | None | |
EndDateTimeDate and time the job ended. | UtcDateTimeEndDateTime | No | None | |
ExecutedByUser the job ran as. | StringUserId | No | None | |
FinishingWhole number whose meaning is not stated in the metadata.low confidence | IntegerInteger | No | None | |
GroupSchedulingPriorityScheduling priority set on the batch group, from low to reserved capacity. | EnumBatchSchedulingPriority (enum) | No | None | |
JobSchedulingPriorityScheduling priority set on the job, from low to reserved capacity. | EnumBatchSchedulingPriority (enum) | No | None | |
JobSchedulingPriorityIsOverriddenYes/No flag showing whether the job's scheduling priority was overridden. | EnumNoYes (enum) | No | None | |
OrigStartDateTimeDate and time the job was scheduled to start. | UtcDateTimeStartDateTime | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RuntimeJobBoolean flag whose meaning is not stated beyond its name; it appears to mark a runtime job.low confidence | Enumboolean (enum) | No | None | |
StartDateTimeDate and time the job actually started. | UtcDateTimeStartDateTime | No | None | |
StatusStatus of the job, such as waiting, executing, error, ended or cancelled. | EnumBatchStatus (enum) | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (6)
BatchJobNot unique.
DEL_BatchDEL_BatchDataArea,DEL_BatchRecIdNot unique.
DEL_RecIdNot unique.
FinishingIdxNot unique.
AlertsProcessedIdxAlertsProcessed,BatchJobId,Status,CanceledBy,Caption,Company,DataPartition,EndDateTime,OrigStartDateTime,StartDateTimeNot unique.
CreatedDateTimeNot unique.
Relations (7)
Each relation joins BatchJobHistory to another table on the fields shown.
BatchJobRelation→BatchJobJoin on
BatchJobId = BatchJob.RecIdMany BatchJobHistory records → zero or one BatchJob record
DataArea→DataAreaJoin on
Company = DataArea.id,DataArea.isVirtual = nullMany BatchJobHistory records → zero or one DataArea record
DataAreaRelation→DataAreaJoin on
Company = DataArea.idMany BatchJobHistory records → zero or one DataArea record
PartitionRelation→PartitionsJoin on
DataPartition = Partitions.PartitionKeyMany BatchJobHistory records → exactly one Partitions record
UserInfo→UserInfoJoin on
BatchCreatedBy = UserInfo.idMany BatchJobHistory records → zero or one UserInfo record
UserInfo1→UserInfoJoin on
CanceledBy = UserInfo.idMany BatchJobHistory records → zero or one UserInfo record
ExecutedByUserInfo→UserInfoJoin on
ExecutedBy = UserInfo.idMany 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.