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 descriptionType / EDT / enumMandatoryReferencesIn public entities
ActivePeriodActive period assigned to the job. Points to the active period record.String
BatchJobActivePeriodId
NoBatchJobActivePeriod.IdNone
BatchGroupBatch group the job belongs to. Points to the batch group record.String
BatchGroupId
NoBatchGroup.GroupNone
CanceledByUser who cancelled the job.String
BatchCanceledBy
NoBatchJobEntity
CaptionDescription of the job.String (200)
BatchCaption
NoBatchJobEntity
CompanyCompany accounts the job relates to.String
SelectableDataArea
NoBatchJobEntity
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
CriticalYes or no flag marking the job as critical.Enum
NoYes (enum)
NoNone
DataPartitionData partition the job belongs to.String
PartitionKey
NoBatchJobEntity
EmitBusinessEventPurpose not clear from the metadata.low confidenceInteger
Integer
NoNone
EndDateTimeDate and time when the job ended.UtcDateTime
EndDateTime
NoBatchJobEntity
ExecutingByUser who runs the job.String
UserId
YesNone
FinishingPurpose not clear from the metadata.low confidenceInteger
Integer
NoBatchJobEntity
HistoryInfoParamOptionOption for logging batch history: use the default, skip info and parameters, or save them.Enum
BatchHistoryInfoParametersOption (enum)
NoNone
LogLevelSetting for when the job is saved to history: always, errors only or never.Enum
BatchLogLevel (enum)
NoBatchJobEntity
ManagedYes or no flag for a managed data access job.Enum
NoYes (enum)
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
MonitoringCategoryCategory used to monitor the job, such as integration or workflow.Enum
BatchMonitoringCategory (enum)
NoNone
OrigStartDateTimeDate and time when the job was scheduled to start.UtcDateTime
StartDateTime
YesBatchJobEntity
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
NoBatchJobEntity
recurrenceDataRecurrence settings of the job, stored as a container.Container
SysRecurrenceData
NoBatchJobEntity
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RuntimeJobPurpose not clear from the metadata.low confidenceEnum
boolean (enum)
NoBatchJobEntity
SchedulingPriorityScheduling priority of the job: low, normal, high, critical or reserved capacity.Enum
BatchSchedulingPriority (enum)
NoNone
SchedulingPriorityIsOverriddenYes or no flag showing whether the scheduling priority has been overridden.Enum
NoYes (enum)
NoNone
StartDateStart date of the job.Date
StartDate
NoBatchJobEntity
StartDateTimeDate and time when the job actually started.UtcDateTime
StartDateTime
NoBatchJobEntity
StartTimeStart time of the job.Time
TimeOfDay
NoBatchJobEntity
StatusCurrent state of the job, such as waiting, executing, error, ended or canceled.Enum
BatchStatus (enum)
NoBatchJobEntity
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (10)

Relations (7)

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

  • DataArea → DataArea

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

    Many BatchJob records → zero or one DataArea record

  • DataAreaRelation → DataArea

    Join on Company = DataArea.id

    Many BatchJob records → zero or one DataArea record

  • PartitionRelation → Partitions

    Join on DataPartition = Partitions.PartitionKey

    Many BatchJob records → exactly one Partitions record

  • UserInfo → UserInfo

    Join on CanceledBy = UserInfo.id

    Many BatchJob records → zero or one UserInfo record

  • BatchJobActivePeriod → BatchJobActivePeriod

    Join on ActivePeriod = BatchJobActivePeriod.Id

    Many BatchJob records → zero or one BatchJobActivePeriod record

  • ExecutingByUserInfo → UserInfo

    Join on ExecutingBy = UserInfo.id

    Many BatchJob records → zero or one UserInfo record

  • BatchGroup → BatchGroup

    Join on BatchGroup = BatchGroup.Group

    Many 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.

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

Email sales@drdynamics.co.uk