Skip to main content

Job

A job in Dime.Scheduler is the encompassing entity that groups tasks. This can be a service order header with multiple lines, a project with several tasks, a cargo transport with multiple containers, etc. A job record is mandatory for a task. In other words, you cannot create a task if the corresponding job record does not exist.

The following entities are exposed through the API.

Upsert

Inserts or updates a job record.

NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)✔️See API reference
SourceTypenvarchar(10)✔️See API reference
JobNonvarchar(50)✔️
ShortDescriptionnvarchar(50)✔️
Descriptionnvarchar(MAX)
Typenvarchar(50)
Namenvarchar(255)
Categorynvarchar(100)See API reference
TimeMarkernvarchar(100)See API reference
Pinnvarchar(100)See API reference
CustomerNonvarchar(20)
CustomerNamenvarchar(50)
CustomerAddressnvarchar(MAX)
CustomerAddressGeoLongnvarchar(50)
CustomerAddressGeoLatnvarchar(50)
CustomerPhonenvarchar(50)
CustomerEmailnvarchar(50)
ContactNonvarchar(20)
ContactNamenvarchar(50)
ContactAddressnvarchar(MAX)
ContactAddressGeoLongnvarchar(50)
ContactAddressGeoLatnvarchar(50)
ContactPhonenvarchar(50)
ContactEmailnvarchar(50)
SiteNonvarchar(20)
SiteNamenvarchar(50)
SiteAddressnvarchar(MAX)
SiteAddressGeoLongnvarchar(50)Used to diplay the job on the map.
SiteAddressGeoLatnvarchar(50)Used to diplay the job on the map.
SitePhonenvarchar(50)
SiteEmailnvarchar(50)
SiteRegionnvarchar(10)Used in the geocoding process.
SiteStreetnvarchar(255)Used in the geocoding process.
SiteStreetNonvarchar(20)Used in the geocoding process.
SitePostcodenvarchar(20)Used in the geocoding process.
SiteCitynvarchar(50)Used in the geocoding process.
SiteCountynvarchar(50)Used in the geocoding process.
SiteStatenvarchar(50)Used in the geocoding process.
SiteCountrynvarchar(50)Used in the geocoding process.
SiteFromNonvarchar(20)
SiteFromNamenvarchar(50)
SiteFromAddressnvarchar(MAX)
SiteFromAddressGeoLongnvarchar(50)
SiteFromAddressGeoLatnvarchar(50)
SiteFromPhonenvarchar(50)
SiteFromEmailnvarchar(50)
SiteFromRegionnvarchar(10)
SiteFromStreetnvarchar(255)
SiteFromStreetNonvarchar(20)
SiteFromPostcodenvarchar(20)
SiteFromCitynvarchar(50)
SiteFromCountynvarchar(50)
SiteFromStatenvarchar(50)
SiteFromCountrynvarchar(50)
BillNonvarchar(20)
BillNamenvarchar(50)
BillAddressnvarchar(MAX)
BillAddressGeoLongnvarchar(50)
BillAddressGeoLatnvarchar(50)
BillPhonenvarchar(50)
BillEmailnvarchar(50)
BillRegionnvarchar(10)
Importanceint0See API reference
CreationDateTimedatetime
CustomerReferencenvarchar(50)
Languagenvarchar(10)
Responsiblenvarchar(50)
Creatornvarchar(50)
FreeText1nvarchar(100)See API reference
FreeText2nvarchar(100)See API reference
FreeText3nvarchar(100)See API reference
FreeText4nvarchar(100)See API reference
FreeText5nvarchar(100)See API reference
FreeText6nvarchar(100)See API reference
FreeText7nvarchar(100)See API reference
FreeText8nvarchar(100)See API reference
FreeText9nvarchar(100)See API reference
FreeText10nvarchar(100)See API reference
FreeText11nvarchar(100)See API reference
FreeText12nvarchar(100)See API reference
FreeText13nvarchar(100)See API reference
FreeText14nvarchar(100)See API reference
FreeText15nvarchar(100)See API reference
FreeText16nvarchar(100)See API reference
FreeText17nvarchar(100)See API reference
FreeText18nvarchar(100)See API reference
FreeText19nvarchar(100)See API reference
FreeText20nvarchar(100)See API reference
FreeDecimal1decimal(18, 6)See API reference
FreeDecimal2decimal(18, 6)See API reference
FreeDecimal3decimal(18, 6)See API reference
FreeDecimal4decimal(18, 6)See API reference
FreeDecimal5decimal(18, 6)See API reference
FreeDate1datetimeSee API reference
FreeDate2datetimeSee API reference
FreeDate3datetimeSee API reference
FreeDate4datetimeSee API reference
FreeDate5datetimeSee API reference
FreeBit1bit0See API reference
FreeBit2bit0See API reference
FreeBit3bit0See API reference
FreeBit4bit0See API reference
FreeBit5bit0See API reference
EnableManualSelectionbit0
AvailableInGanttbit0
StartDatedatetime
EndDatedatetime
AllowDependenciesbit1
Notenvarchar(max)
OverRuleGanttPlanningbit0
ReadOnlybit0
  • This endpoint is available in the import API endpoint /import via the procedure mboc_upsertJob.
  • Example body:
    [
    {
    "StoredProcedureName": "mboc_upsertJob",
    "ParameterNames": ["SourceApp", "SourceType", "JobNo", "ShortDescription"],
    "ParameterValues": ["BC", "JOB", "JOB001", "Important job"]
    }
    ]

Delete

Deletes a job record. The behavior of this procedure depends on the CheckAppointments flag:

  • When CheckAppointments is true: the job is not deleted when there are appointments for any task attached to the job.
  • When CheckAppointments is false: the job is deleted without further checks. When a job is deleted, all tasks and appointments attached to the job, if any, are also deleted.
NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)✔️See API reference
SourceTypenvarchar(10)✔️See API reference
JobNonvarchar(50)✔️
CheckAppointmentsbit
SentFromBackofficebit1
  • This endpoint is available in the import API endpoint /import via the procedure mboc_deleteJob.
  • Example body:
    [
    {
    "StoredProcedureName": "mboc_deleteJob",
    "ParameterNames": ["SourceApp", "SourceType", "JobNo"],
    "ParameterValues": ["BC", "JOB", "JOB001"]
    }
    ]

API reference

Source

Dime.Scheduler is a centralized planning application. One the key tenets is the ability to accommodate data from different origins. For instance, it is perfectly acceptable to plan work orders from Business Central, CRM, imported Excel sheets, etc., and Dime.Scheduler won't break a sweat because of the existence of the Source App and SourceType fields in the data model.

Source App

When the planner makes an appointment for a resource or task, Dime.Scheduler knows which system to notify. Through the connector setup, Dime.Scheduler will find a matching SourceApp and send the appointment to the corresponding URI subsequently. The source app field is a unique identifier that identifies a back office instance such a tenant of Business Central, a test environment, an instance of CRM cloud, or any other application you wish to use to feed the data into Dime.Scheduler.

Source Type

The SourceType is used inside the back-office system itself. A source type represents a distinct entity such as a service order, production order, assembly order, etc.

The standard connectors that Dime Software provides make it possible to plan different types of resources and tasks. When Dime.Scheduler posts an appointment to a standard connector, it ends up in a staging table, which is then processed by the connector to make sure the appointment produced in Dime.Scheduler is traced back to the original record using the externally identifiable fields (JobNo, TaskNo, ResourceNo) that identify the record.

Importance

Controls the visual indicator of the planned task in the planning board. Read more about this topic here.

Category

Controls the visual indicator of the planned task in the planning board. Read more about this topic here.

Time Marker

Controls the visual indicator of the planned task in the planning board. Read more about this topic here.

Pin

Controls the visual indicator of the planned task in the map. Read more about this topic here.

Free fields

Free fields are unmapped fields that you can link custom fields to.

The caption can be changed through the captions localization system. Either use the GUI and look for the corresponding field of the corresponding source table for the 'DATABASEFIELD' context, or use the API.