Table
BatchJob
Batch job
Holds batch jobs. Each row records the job description, status, schedule and actual start and end times. It also holds the user who runs it, its batch group and recurrence data. It links to batch groups, active periods, users and companies. It has no defined key in the metadata.
- Table name
BatchJob- 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 (32)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ActivePeriodActive period assigned to the job. Points to the active period record. | StringBatchJobActivePeriodId | No | BatchJobActivePeriod.Id | None |
BatchGroupBatch group the job belongs to. Points to the batch group record. | StringBatchGroupId | No | BatchGroup.Group | None |
CanceledByUser who cancelled the job. | StringBatchCanceledBy | No | BatchJobEntity | |
CaptionDescription of the job. | String (200)BatchCaption | No | BatchJobEntity | |
CompanyCompany accounts the job relates to. | StringSelectableDataArea | No | BatchJobEntity | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CriticalYes or no flag marking the job as critical. | EnumNoYes (enum) | No | None | |
DataPartitionData partition the job belongs to. | StringPartitionKey | No | BatchJobEntity | |
EmitBusinessEventPurpose not clear from the metadata.low confidence | IntegerInteger | No | None | |
EndDateTimeDate and time when the job ended. | UtcDateTimeEndDateTime | No | BatchJobEntity | |
ExecutingByUser who runs the job. | StringUserId | Yes | None | |
FinishingPurpose not clear from the metadata.low confidence | IntegerInteger | No | BatchJobEntity | |
HistoryInfoParamOptionOption for logging batch history: use the default, skip info and parameters, or save them. | EnumBatchHistoryInfoParametersOption (enum) | No | None | |
LogLevelSetting for when the job is saved to history: always, errors only or never. | EnumBatchLogLevel (enum) | No | BatchJobEntity | |
ManagedYes or no flag for a managed data access job. | EnumNoYes (enum) | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
MonitoringCategoryCategory used to monitor the job, such as integration or workflow. | EnumBatchMonitoringCategory (enum) | No | None | |
OrigStartDateTimeDate and time when the job was scheduled to start. | UtcDateTimeStartDateTime | Yes | BatchJobEntity | |
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 | BatchJobEntity | |
recurrenceDataRecurrence settings of the job, stored as a container. | ContainerSysRecurrenceData | No | BatchJobEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RuntimeJobPurpose not clear from the metadata.low confidence | Enumboolean (enum) | No | BatchJobEntity | |
SchedulingPriorityScheduling priority of the job: low, normal, high, critical or reserved capacity. | EnumBatchSchedulingPriority (enum) | No | None | |
SchedulingPriorityIsOverriddenYes or no flag showing whether the scheduling priority has been overridden. | EnumNoYes (enum) | No | None | |
StartDateStart date of the job. | DateStartDate | No | BatchJobEntity | |
StartDateTimeDate and time when the job actually started. | UtcDateTimeStartDateTime | No | BatchJobEntity | |
StartTimeStart time of the job. | TimeTimeOfDay | No | BatchJobEntity | |
StatusCurrent state of the job, such as waiting, executing, error, ended or canceled. | EnumBatchStatus (enum) | No | BatchJobEntity | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (10)
StatusRecIdFinishing,Status,StartDateTime,RecVersionNot unique.
DEL_BatchDEL_BatchDataArea,DEL_BatchRecIdNot unique.
CompanyIdxNot unique.
DEL_BatchRecIdNot unique.
RuntimeJobsFinishing,RuntimeJob,RecVersionNot unique.
StatusOrigStartDateTimeIdxStatus,OrigStartDateTime,ActivePeriod,StartDateTime,RecId,Caption,CreatedBy,Critical,MonitoringCategory,Managed,ExecutingBy,CanceledBy,Company,Datapartition,EndDateTime,LogLevel,RecurrenceData,RuntimeJob,StartDate,StartTime,RecVersion,SchedulingPriority,SchedulingPriorityIsOverridden,BatchGroup,EmitBusinessEventNot unique.
ActivePeriodNot unique.
BatchGroupIdxNot unique.
EmitBusinessEventIndexNot unique.
StatusRecIdIdxNot unique.
Relations (7)
Each relation joins BatchJob to another table on the fields shown.
DataArea→DataAreaJoin on
Company = DataArea.id,DataArea.isVirtual = nullMany BatchJob records → zero or one DataArea record
DataAreaRelation→DataAreaJoin on
Company = DataArea.idMany BatchJob records → zero or one DataArea record
PartitionRelation→PartitionsJoin on
DataPartition = Partitions.PartitionKeyMany BatchJob records → exactly one Partitions record
UserInfo→UserInfoJoin on
CanceledBy = UserInfo.idMany BatchJob records → zero or one UserInfo record
BatchJobActivePeriod→BatchJobActivePeriodJoin on
ActivePeriod = BatchJobActivePeriod.IdMany BatchJob records → zero or one BatchJobActivePeriod record
ExecutingByUserInfo→UserInfoJoin on
ExecutingBy = UserInfo.idMany BatchJob records → zero or one UserInfo record
BatchGroup→BatchGroupJoin on
BatchGroup = BatchGroup.GroupMany BatchJob records → exactly one BatchGroup record
Get this data out
Tables are not exposed directly. These public entities read from BatchJob; use one of them in Power BI, Power Platform or a data management project.
BatchJobEntity· 15 fields from this table
Need help with BatchJob in a report, an integration or a migration? Talk to Dr Dynamics.