Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

Getting Started with the MSEG Support SDK for JavaScript


View products that this article applies to.

The MSaaS SDK for JavaScript is the easist way to integrate your web site with Microsoft support products. It provides a rich set of client-side functionality that:

↑ Back to the top


Using the SDK

To use the SDK on your site, add the following script tags:

<script src="https://cdn.support.services.microsoft.com/support-web-sdk/v2/latest/support.sdk.all.js" type="text/javascript"></script>
<script type="text/javascript">
    var config = {
        partnerId: "yourPartnerId",
        appId: "yourAppId"
    };
    MsSupportSdk.init(config)
        .then(
            function(){ // success callback
                // Sdk initialized, start using features (chat, virtualAgent, etc ...) provided by the SDK
            }, 
            function(error) { // error callback
                console.log(error);
            });
</script>

↑ Back to the top


Article Info
Article ID : 4025743
Revision : 31
Created on : 4/9/2018
Published on : 4/10/2018
Exists online : False
Views : 196