This guide explains how to use a custom hook to enable real-time events from SAP Service Cloud by configuring a webhook flow. These webhooks notify the Tekst platform whenever a case is created or updated.
Use case
Use a custom hook when you want more control over real-time event delivery.
- Avoid relying on other tools or extensions.
- Trigger only the update events you care about.
- Limit which cases are sent to Tekst.
Hook request
Configure SAP Service Cloud to send a POST request to the Tekst hook endpoint.
| Request type | POST |
| URL | https://hooks.tekst.com/v1/webhook/v1/sapservicecloud/{orgId}/{integrationId} |
| Payload | |
| Extra payload | You can also send extra fields such as body and subject. Tell Tekst customer success before you add them. |
You can find the full webhook URL (including your org ID and integration ID) in the Settings tab of your SAP Service Cloud integration in the Tekst dashboard.
Configure the webhook in SAP Service Cloud
SAP Service Cloud's standard Event Notification sends the payload shown above, so no custom code is needed.
Open Event Notification
In SAP Service Cloud, open the Administrator menu and go to General Settings. Under System Administration, click Event Notification.
Add a consumer
- Above the All Consumers list, click Add
- Fill in the consumer:
- Type: External Consumer
- Name: any name, for example
Tekst Service Connector - Endpoint: the webhook URL from the Settings tab of your SAP Service Cloud integration in Tekst
- Click Save
The consumer needs no credentials: its Authentication Method stays None.
Add the subscriptions
- In the All Consumers list, select the consumer. Its subscriptions show in the Subscriptions section below the list. Click Add there.
- Set Business Object to Ticket (there is no "Service Request" business object in the list). Node is set to Root.
- Set Created and Updated to Yes. Leave Deleted and Enhanced Payload set to No.
- Click Save
For closed tickets, add a second subscription. Field changed cannot be combined with Created and Updated, so this needs its own subscription.
- In the Subscriptions section, click Add
- Set Business Object to Ticket. Node is set to Root.
- Set Field changed to Yes, Field name to
ServiceRequestLifeCycleand Field changed to to 3 - Completed - Click Save
With the consumer selected, the Subscriptions section then lists both subscriptions on Ticket, node Root.
Activate the consumer
In the All Consumers list, select the consumer and click Actions > Activate.
The consumer's Status changes to Active.
To check the setup, create a ticket in SAP Service Cloud. It appears in Tekst shortly after.
0 comments
Please sign in to leave a comment.