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 set the automation dictionary and enables providers to add, modify, and remove values of slugs; the updated values are then available for invoking macros in the future.
Syntax
Microsoft.Apm.getFocusedSession().updateContext(input);
Parameters
Name | Type | Required | Description |
---|---|---|---|
input | JSON | Yes | JSON input properties of the session context to be updated. |
Return value
None.
Example
Microsoft.Apm.getFocusedSession().updateContext({"customerName":"Contoso"});
Microsoft.Apm.getFocusedSession().getContext().then((context)=> context.get("customerName")).then(
function success(result) {
console.log(result);
// should expected "Contoso"
// Perform operations upon record retrieval and opening
},
function (error) {
console.log(error.message);
// Handle error conditions
}
);