Skip to main content
Version: iSign 9

Data Sources

Under Administration > Data Sources, you can connect data sources to iSign.

Data sources in Administration

Available Providers​

CSV Import​

The provider can load CSV files (RFC 4180) from local files or over HTTP. It supports text replacement in URLs.

See also Import appointments from Terminland.

Options​

  • File name or link: Path to the file or an HTTP(S) URL.
  • Encoding: Character encoding used by the file.
  • Delimiter: Delimiter used in the CSV file. Common delimiters include ; and ,.
  • Has header?: Use the first row as column headers.
  • Remove blank rows?: Ignore blank rows in the file.
  • Row numbers?: Add a sequential number to each row.
  • Allow file access?: Allow the system to access files next to the source file or in a subdirectory.

Example: Configure a Data Source from a CSV File​

To import content, prepare a CSV file containing the data you want, for example, in Microsoft Excel.

Procedure:

Configure the CSV Data Import​
  1. Save the CSV file on the server.

  2. Open the iSign web interface. In a browser, go to Administration > Data Sources.

  3. Click Add.

    Add a data source

    • Name: A unique name for identifying the data source.
    • Provider: CSV Import.
    • Cache validity: How long imported data remains in the cache before it is refreshed.
    • Error tolerance: Yes enables tolerant mode for data imports.
    • Visible: Yes makes the data source visible and selectable in the user interface.
  4. Configure the data source.

    Configure the CSV data source

  5. View data / Preview. Check that the imported data appears correctly and that the data source is configured successfully.

    Preview imported data

iCalendar Import​

Use iCalendar Import to import data in the iCalendar format (RFC 5545).

Parameters​

  • File name or link: Local path or HTTP(S) link to the data.
  • Allow file access?: Allow the data source to access files in the same directory as the source file or in a subdirectory.
  • Expand recurring events?: Create a separate entry for each occurrence of an event.

LINQ Query​

Use LINQ Query to query data from an existing data source.

Options​

  • LINQ: LINQ query. See Write LINQ queries.
  • Data source: Source data source, available through the data variable.
  • Parameters used: Parameters to use from the data source, available through the parameters variable.

LINQ Query Examples​

info

You can combine the following examples. Adjust field names to match the underlying data source.

Filter: Entries Active Today​

Returns entries that have already started and have not yet ended.

from row in data
where DateTime.Parse((string)row["Start"]).ToLocalTime().Date <= DateTime.Today
where DateTime.Parse((string)row["End"]).ToLocalTime().Date >= DateTime.Today
select row
Filter: Entries Starting Within 15 Minutes and Not Yet Ended​
from row in data
where DateTime.Parse((string)row["Start"]).ToLocalTime() <= DateTime.Now.AddMinutes(15)
where DateTime.Parse((string)row["End"]).ToLocalTime() > DateTime.Now
select row
Location Filter (using the location parameter)​

Some templates use the location parameter to pass the display's Location setting to the data source. This lets the data source return different data for each display.

from row in data
let location=(string?)parameters["location"]
where string.IsNullOrEmpty(location) || (string)row["location"] == location
select row

LINQ to XML Import​

Use this provider to import XML data. LINQ supports complex queries.

Options​

  • File name: Path to the XML file. URLs for HTTP GET requests are also supported. The file is available to the query through the document variable.
  • LINQ query: See Query XML trees with LINQ.
  • Use query time as variant: If selected, metadata uses the current time as the change timestamp. Otherwise, the timestamp from the input data is used.
  • Additional code: Optional C# code, such as helper classes.
  • Parameters used: Optional parameters available through the parameters variable.

LINQ Query Example​

This example reads data from the <ROW> tag, filters by the StartDate attribute, selects the EventName, RoomName, and Date fields, and returns up to two entries.

(
from x in document.Descendants("ROW")

// filter by date
let date = DateTime.ParseExact((string)x.Attribute("StartDate"), "yyyyMMdd", null)
where date.Date == DateTime.Now.Date

// define output
select new
{
EventName = (string)x.Attribute("EventName"),
RoomName = (string)x.Attribute("RoomName"),
Date = date.ToString("d", null)
}
)
// Return a maximum of 2 items
.Take(2)

Microsoft EWS Calendar Import​

Use Microsoft Exchange Web Services (EWS) to query calendars in Microsoft Exchange. If possible, we recommend using the Microsoft Graph API instead.

Create an EWS calendar data source in the same way as an appointment calendar data source. Select Exchange Web Services Calendar Import as the provider.

The user account needs read access to the relevant resource calendars.

EWS calendar import settings

Supported fields:
Subject, Start, End, Location, IsAllDayEvent, Organizer, RequiredAttendees, OptionalAttendees, Body

Options​

EWS calendar import options

  • URL: EWS URL.
  • Username, password, and domain: Authentication details.
  • Resource: Email address of the calendar.

Microsoft Graph API Calendar Import​

Use this provider to query calendars in Microsoft Exchange Online.

Supported fields: Subject, Start, End, Location, Body, Organizer, Attendees

Options​

  • ClientId: Client ID used for authentication. It must be created in Entra ID for iSign.
  • ClientSecret: Secret associated with the client ID.
  • TenantId: Tenant ID of the customer environment.
  • AuthCode: Optional; depends on the selected authentication method.
  • Resource: Email address of the calendar.

Configure the Graph API​

1. Register a Microsoft Azure App​

Before importing calendar data, register an app in Azure Active Directory (Azure AD). The app allows the system to communicate with your Microsoft Exchange Online calendar.

Register your app in Azure AD:

  1. Sign in to the Azure portal. Go to Azure portal and sign in with your Microsoft account.
  2. Create an app:
    • Go to Azure Active Directory > App registrations > New registration.
    • Enter a name, such as "Calendar Integration".
    • Select the supported account type, usually Accounts in this organizational directory only.
    • Click Register.
  3. Record the app and tenant IDs. After registration, note the Client ID (Application ID) and Tenant ID. You will need them later.
2. Set API Permissions​

The app needs permissions to access your calendar.

  1. Go to API permissions > Add a permission.
  2. Select Microsoft Graph, then Application permissions.
  3. Add Calendars.Read.
  4. Click Grant admin consent to apply the permissions.
3. Create a Client Secret​

You need a client secret to authenticate the app with the Microsoft Graph API.

  1. Go to Certificates & secrets > New client secret.
  2. Enter a name and select an expiration date.
  3. Click Add and copy the generated secret. Store it securely, because it will not be displayed again.
4. Enter the Parameters in iSign​

To import calendar data, enter these parameters in iSign:

  • ClientId: Client ID created during Azure app registration.
  • ClientSecret: Secret created in the previous step.
  • TenantId: Tenant ID for your Microsoft account.
  • AccessToken: Leave this field empty.
  • Resource: Email address of the calendar to import.

Graph API data source settings

Enter these parameters in iSign so it can access the calendar.

  1. Add a new data source in Administration and select MS Graph API Calendar Import.
  2. Edit the data source and enter the parameters.
  3. Select Preview to check whether data is available. This works only if the web interface uses HTTPS.

Advanced Features​

Parameters​

Data sources can support parameters. A template can pass the display's location to a data source, for example, so that it returns only data for that location.

Text Replacement in URLs​

Providers that load data from URLs, such as local files or HTTP, generally support text replacement. Text in the URL in the form {TOKEN} or {TOKEN:FORMAT} is replaced.

Available tokens include NOW (current local time) and parameters available to the data source.

Export Data​

Use Export to export data.

Export data

A pop-up window appears where you can select one or more data sources to export.

Select data sources for export