Skip to main content
Version: iSign 9

Appointments

info

This procedure requires a basic understanding of the system interface and the ability to copy existing scripts safely and make simple changes, such as updating values or text.

This guide explains how to process appointments from the configured appointment import data source. Complete scripts are available from Support if you have the required permissions.

Go to Administration → Vocatis → Appointments.

Vocatis appointments

There are two options, depending on the workflow you need.

Create a Task Plan​

A task plan defines which information from online appointment booking is added to a ticket, such as the last name or reason for the visit.

Add a task plan
Click New Task Plan in the top bar.

Add a new task plan

The input form appears.

Task plan input form

Enter a name, set when and how often the task plan should run, and select the data source to import.

Configure the task plan

Under Action, add the appropriate script and customize it.

info

You can resize the field by dragging its lower-right corner.

Import Appointments (With or Without Terminal Sign-In)​

Copy the TerminlandImport script into the empty field.

info

Field names must match those in the data source exactly.

/////////////
// OPTIONS //
/////////////
// source name in vocatis appointments
const string thisSource = "terminland";

// field names
const string idField = "TerminNr";
const string dateField = "Datum";
const string timeField = "Uhrzeit";
//const string timestampField = "ts";
const string nameField = "Nachname";
const string titleField = "Anrede";
const string descriptionField = "Hinweistext";
const string urlField = "Termin anzeigen";
const string planField = "Terminplan";
const string numberField = "Referenz-Nr;";
const string stateField = "Status";

Configuration: Select fields that exist in the data source and should appear in Vocatis with the number.

const string nameField = "Nachname";
const string titleField = "Anrede";
const string descriptionField = "Hinweistext";

Select Run. After a successful run, select Save.

Automatically Queue Appointments Without Terminal Sign-In (Create Ticket)​

Assign appointment numbers to queues and add a category to display them with a priority.

/////////////
// OPTIONS //
/////////////

const string thisSource = "terminland";
const string planname = "Name des Terminplans";
readonly CommonGuidId queue = CommonGuidId.FromString("31477411-7e4b-4dbd-ad3d-34b59f19f157");
readonly CommonGuidId[] categories = new CommonGuidId[]
{
CommonGuidId.FromString("b9cb4232-5634-4f1b-8fd9-5563f0ea1b7d")
};

const bool postpone = true;
// Select import time span
readonly var timeFrom = DateTime.Today;
//timeTo = timeFrom.AddDays(1.0);
readonly var timeTo = DateTime.Now.AddMinutes(0);
//timeTo = DateTime.Now;

const string NumberPrefix = "T";
const int NumberLength = 4;

Configuration: Customize these values as needed:

  • queue: ID of the queue.
  • categories: ID of the category.
  • postpone = true: Example: Hold numbers until the appointment time.
  • timeTo = DateTime.Now.AddMinutes(5): Example: Add numbers to the queue 5 minutes before the appointment.
  • NumberPrefix = "T": Example: Prefix numbers with T.
  • NumberLength = 4: Example: Use the last four digits of the appointment or reference number.

Select Run. After a successful run, select Save.

Assign Multiple Appointment Plans with the Same Prefix to a Queue​

Use the planname parameter to assign several appointment plans to a queue at once.

For example, to include every appointment plan whose name begins with the same prefix:

const string planname = "Testplan ";

This matches appointment plans whose names begin with "Testplan ", such as:

  • Testplan Bürgerbüro
  • Testplan Beratung
  • Testplan Zulassung

Note: The trailing space is part of the prefix. Only plans whose names begin with the exact prefix are selected.