Skip to main content

Appointment

The appointment entity is what Dime.Scheduler is all about. An appointment is the main deliverable of the software and represents a block in the planning board. The appointment contains the information of the appointment such as the start and end date, and it holds references to the resources that have been assigned to it.

The following entities are exposed through the import service.

Appointment​

Upsert appointment​

Inserts or updates an appointment record. The behavior of this procedure depends on the data you pass to it:

  • The appointment id is required if you want to update an existing appointment.
  • Otherwise, it inserts an appointment resource record (linking a resource to the appointment) if the record does not exist.
NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)✔️See API reference
SourceTypenvarchar(10)✔️See API reference
JobNonvarchar(50)✔️
TaskNonvarchar(50)✔️
AppointmentIdbigint0
Subjectnvarchar(max)
Bodynvarchar(max)
Startdatetime
Enddatetime
IsAllDayEventbit0
Categorynvarchar(100)See API reference
TimeMarkernvarchar(100)See API reference
Importanceint0See API reference
Lockedbit0
ResourceNonvarchar(50)
AppointmentGuidnvarchar(50)
ReplaceResourcebit0
SentFromBackofficebit1
BackofficeIDnvarchar(100)
BackofficeParentIDnvarchar(100)
PlanningUOMnvarchar(20)
PlanningUOMConversiondecimal(18,6)0
PlanningQtydecimal(18,6)0
UseFixPlanningQtybit0
RoundToUOMbit0

Delete appointment​

The behavior of this procedure depends on the data you pass to it:

  • If a resource number is provided, then the appointment resource record is deleted. The appointment record is also deleted if no more appointment resource records exist for the appointment.
  • If the resource number is not provided, then the appointment record and all linked appointment resource records are deleted.
NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)✔️See API reference
SourceTypenvarchar(10)✔️See API reference
AppointmentIdbigint
AppointmentGuidnvarchar(50)
ResourceNonvarchar(50)
SentFromBackofficebit1

Upsert appointment URI​

Inserts or updates an appointment URI record.

An appointment URI contains links to documents, web pages and the back office system. You need to pass an existing appointment id or appointment GUID.

NameData TypeDefaultRequiredDescription
pSourceAppnvarchar(30)See API reference
pSourceTypenvarchar(10)See API reference
pAppointmentIdbigint0
pAppointmentGuidnvarchar(50)
pUrlnvarchar(1000)✔️
pUrlDescnvarchar(255)

Upsert appointment container​

Adds or updates the allocation of an appointment to a container.

NameData TypeDefaultRequired
Containernvarchar(100)✔️
Appointmentnvarchar(100)✔️

Add assignment​

Add a resource to an existing appointment, thereby creating a linked appointment.

NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)See API reference
SourceTypenvarchar(10)See API reference
AppointmentIdbigint
ResourceNonvarchar(50)✔️
AppointmentGuidnvarchar(50)
SentFromBackofficebit1

Properties​

Update appointment content​

Updates the body and subject of the selected appointment.

NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)See API reference
SourceTypenvarchar(10)See API reference
AppointmentIdbigint
AppointmentGuidnvarchar(50)
SentFromBackofficebit1
Subjectnvarchar(max)
Bodynvarchar(max)

Update appointment planning quantity​

Updates the planning quantity of an appointment.

NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)See API reference
SourceTypenvarchar(10)See API reference
AppointmentIdbigint
PlanningQtydecimal(18,6)
AppointmentGuidnvarchar(50)
SentFromBackofficebit1

Indicators​

Set time marker​

Update the time marker assigned to the appointment. Can be used to update status or progress of the appointment.

NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)See API reference
SourceTypenvarchar(10)See API reference
AppointmentIdbigint
TimeMarkernvarchar(100)
AppointmentGuidnvarchar(50)
SentFromBackofficebit1

Set category​

Updates the category assigned to the appointment. Can be used to update status or progress of the appointment.

NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)See API reference
SourceTypenvarchar(10)See API reference
AppointmentIdbigint
Categorynvarchar(100)
AppointmentGuidnvarchar(50)
SentFromBackofficebit1

Set lock​

Locks or unlocks an appointment. A locked appointment can not be modified nor deleted on the planning board.

NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)See API reference
SourceTypenvarchar(10)See API reference
AppointmentIdbigint
Lockedbit0
AppointmentGuidnvarchar(50)
SentFromBackofficebit1

Set importance​

Sets the importance of an appointment.

NameData TypeDefaultRequiredDescription
SourceAppnvarchar(30)See API reference
SourceTypenvarchar(10)See API reference
AppointmentIdbigint
Importanceint0See API reference
AppointmentGuidnvarchar(50)
SentFromBackofficebit1

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

Category​

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

Time Marker​

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