Unsubscribing from events
You can use the UnSubscribeForEvents to unsubscribe from events.
The UnSubscribeForEvents is called to send the request to stop the event subscription for a device.
The following are the properties included in the UnSubscribeForEvents activity. You can see these properties on the adapter step page of the clipboard.
Properties of the SubscribeForEvents activity
Property | Description |
---|---|
DN | The device number on which the event is subscribed. |
AgentID | The agent ID logged in to the extension. |
In header of Dev Studio, search for the UnSubscribeForEvents activity in the OpenCTI adapter class.
Copy this activity to the implementation class and add the Pega Platform integration connector to unsubscribe for the event for a device.
If the unsubscribe event of the device fails, then an error should be returned. For more information, seeHandling errors.
Previous topic Subscribing to events Next topic Handling events from the CTI server