updateContext (JavaScript API Reference) for Dynamics 365 Channel Integration Framework 2.0
This method allows you to set the automation dictionary. It enables providers to add, modify, and remove values of slugs. The updated values are then available for future macro invocations.
Syntax
Microsoft.CIFramework.updateContext(input, sessionId, isDelete, correlationId);
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
input | JSON Object | Yes | JSON string |
sessionId | String | Yes | Unique identifier of the current session. |
isDelete | Boolean | No | Set isDelete to true if the list of parameters in input JSON are to be deleted.If isDelete is set to true , the slug values will be deleted and will no longer be available for subsequent macro invocations. |
correlationId | GUID | No | Used to group all related API calls together for diagnostic telemetry |
Return value
Returns a promise with string value.
Example
var sessionId = await Microsoft.CIFramework.getFocusedSession().then(successCallback, errorCallback);
var input = { "customerName" : "Contoso" };
Microsoft.CIFramework.updateContext(input, sessionId).then(
function success(result) {
console.log(result);
// Perform operations upon record retrieval and opening
},
function (error) {
console.log(error.message);
// Handle error conditions
}
);
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應