updateContext (uygulama profili yöneticisi)

Otomasyon sözlüğünü ayarlamanıza olanak tanır ve sağlayıcıların sümüklü böcek değerlerini eklemesine, değiştirmesine ve kaldırmasına olanak tanır; Güncelleştirilmiş değerler daha sonra gelecekte makroları çağırmak için kullanılabilir.

Sözdizimi

Microsoft.Apm.getFocusedSession().updateContext(input);

Parametreler

İsim Türü Gerekli Description
girdi JSON Yes Güncelleştirilecek oturum bağlamının JSON giriş özellikleri.

Dönüş değeri

Yok.

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