Edit

resolveSlug (app profile manager)

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 {}.