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.
Allows you to get the value of a session context variable.
Syntax
Microsoft.Apm.getFocusedSession().resolveSlug(input);
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| input | String | Yes | Session context variable to be retrieved. |
Return value
String.
Example
These examples use the 'resolveSlug' method to retrieve the value of a session context variable.
Entity session template
Retrieves the value from a variable in an entity session.
var caseTitle = Microsoft.Apm.getFocusedSession().resolveSlug("{anchor.title}")
Generic session template
Retrieves the value from a variable in a generic session.
var customerName = Microsoft.Apm.getFocusedSession().resolveSlug("{customerName}")
Note
Make sure that you include the variable between brackets {}.