setSessionTitle (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0
Note
This content applies only to Dynamics 365 Channel Integration Framework version 2.0.
Note
Session management APIs allow you to integrate multisession experiences only in Omnichannel for Customer Service app.
Sets the session title, if the session belongs to the channel provider.
Syntax
Microsoft.CIFramework.setSessionTitle(input).then(successCallback, errorCallback);
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| sessionId | String | Yes | Unique identifier of the session |
| title | String | Yes | Session title |
| successCallback | Function | No | A function to call when the request is successful |
| errorCallback | Function | No | A function to call when the request fails |
Return Value
None
Example
var input = {
sessionId: "session-id-16",
customer: "John"
};
// setSessionTitle needs two params in input bag.
// 1. sessionId
// 2. slug name which we use in title field of session template record.. In sample, we have given value as "Call from {customer}"
// hence we pass "customer" in the input bag parameter.
Microsoft.CIFramework.setSessionTitle(input);
Feedback
Submit and view feedback for