다음을 통해 공유


Dynamics 365 채널 통합 프레임워크 2.0용 updateContext(JavaScript API 참조)

이 방법을 사용하면 자동화 사전을 설정할 수 있습니다. 이를 통해 공급자는 슬러그 값을 추가, 수정 및 제거할 수 있습니다. 그런 다음 업데이트된 값을 향후 매크로 호출에 사용할 수 있습니다.

Syntax

Microsoft.CIFramework.updateContext(input, sessionId, isDelete, correlationId);

매개 변수

매개 변수 유형 필수 Description
입력 JSON 객체 Yes JSON 문자열
세션 ID String Yes 현재 세션의 고유 식별자입니다.
삭제 불리언 (Boolean) 아니오 isDelete JSON의 true 매개변수 목록을 삭제하려는 경우 설정합니다input.
isDelete 로 설정true하면 슬러그 값이 삭제되고 후속 매크로 호출에 더 이상 사용할 수 없습니다.
correlationId GUID 아니오 진단 원격 분석을 위해 모든 관련 API 호출을 함께 그룹화하는 데 사용됩니다.

반환 값

문자열 값이 있는 약속을 반환합니다.

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