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
}
);
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for