Editar

Compartir a través de


updateContext (app profile manager)

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
    }
);