Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a unique topic name for a given event in multisession.
Syntax
let topic = Microsoft.Apm.getEventPublisherTopic(eventName);
Parameters
| Name | Type | Required |
|---|---|---|
| eventName | string | Yes |
Return value
A string that represents the unique topic name for the specified event in the current Copilot Service workspace session.
Example
// Retrieving the event topic for the "ON_SESSION_CLOSED" event
const sessionCloseTopic = Microsoft.Apm.getEventPublisherTopic("ON_SESSION_CLOSED");
// Output example
console.log(sessionCloseTopic);
Note
This method is only supported with ON_SESSION_SWITCH and ON_SESSION_CLOSED events.