Communication preferences

The Communication preferences prefill plugin stores data records for digital addresses based on a person’s BSN or organization’s KVK number, retrieved from a Customer Interactions API. These records can be used to populate the “customerProfile” form component.

Note

The Customer Interactions API stores data related to the contacts between clients and the municipality. The API specifications aren’t standardized, therefore Open Forms follows the Customer Interactions API specifications of Open Klant.

Information about the architecture and the vision of the API can also be found on the VNG github.

What does the Open Forms administrator need?

  • An instance of the Open Klant with:

    • an API token to access the API from Open Forms

Configuration

To use the Communication Preferences prefill plugin you need to configure the access to Customer Interactions API.

  1. In Open Forms, navigate to: Configuration > Services

  2. Create a service for the Customer Interactions API.

    1. Click Add service.

    2. Fill out the form:

      • Label: Fill in a human readable label, for example: My Customer Interactions API

      • Type: Select the type: Klanten API

      • API root url: The root of this API, for example https://example.com/klantinteracties/api/v1/

      • Authorization type: Select the option: API Key

      • Header key: Fill in Authorization

      • Header value: Fill in Token <tokenValue> where <tokenValue> is replaced by the token provided by the Open Klant

    3. Click Save.

  3. Navigate to Configuration > Configuration overview. In the Prefill plugins group, click on Manage API groups for the Communication preferences line.

  4. Create a new API group for the Customer Interactions API:

    1. Click Add customer interactions API group.

    2. Enter the following details:

      • Name: Enter a recognizable name, it will be displayed in various dropdowns.

      • Customer Interactions API: Select the service created above.

    3. Click Save

How it works

In order to enable the plugin you need to complete the configuration above. Next step is to add the relevant component and a user defined form variable:

  • The component you need to add to the form is “Profile” from the special fields. This will automatically create a form variable of data type array. This form variable will hold the data which the user submits.

  • Next step is to add a user defined variable that we call profilePrefill. This variable is used for configuring the plugin and holding the pre-filled data from the Customer Interactions API. In the Configuration popup select the API group created in the “Configuration” section and the profile form variable.

Technical

Service

Supported versions

Open Klant

2.14