Configure a Transform Map consumer
- UpdatedJul 31, 2025
- 2 minutes to read
- Zurich
- Building applications
Import and process data from your Kafka environment using your existing transform map configurations.
Before you begin
- Role required: integration_hub_admin
- This consumer requires a Stream Connect subscription. For more information, see https://www.servicenow.com/now-platform/workflow-data-fabric.html.
- The ServiceNow Stream Connect Installer [com.glide.hub.stream_connect.installer] plugin is required.
- This consumer requires a transform map.
Formatting Kafka message payloads
Use simple JSON payloads for Kafka messages. Each Kafka message should have just one, flat JSON object. Complex JSON payloads, such as those with lists and nested objects, are not supported.
Example of simple, valid JSON input, using a flat map of key-value pairs.
{"key1": "value1", "key2": "value2"}Examples of complex, invalid JSON input. The first uses a list. The second uses nested
objects.
[{"key1": "value1", "key2": "value2"}, {"key1": "value3", "key2": "value4"}]{"key1": "value1", "key2": {"key3": "value3", "key4": "value4"}}About this task
To configure a consumer, you need to create two records.
- The consumer record, which specifies how to import and process data.
- A record for the Kafka stream, which defines the stream of data to your consumer.
Procedure
What to do next
Create a Kafka stream for this consumer. After the stream is activated, you can start receiving messages from your Kafka environment.