title: How to setup a connector for outlook and microsoft teams?
body: <p>i'm building a connector for MS Teams and Outlook. I have registered the connector on Connectors Developer Dashboard but when I sideload it on outlook and I try to configure the connector... Nothing happens in my setup page. Indeed, </p>
  
  <p><code>microsoftTeams.settings.getSettings</code> is not working.</p>
  
  <p>Does the microsoftTeams js library works for Outlook too? If not how do I do? </p>
  
  <p>It seems that Connect To Office 365 Button aren't the ongoing way to do it.</p>
  
  <p>Documentation with dead links and mix between Teams &amp; Outlook doesn't help :(</p>
  
  <p>Thank you!</p>
  
  <p>Edit 1: </p>
  
  <p>AngularJS code called on my configuration page:</p>
  
  <pre class="lang-js prettyprint-override"><code>    $scope.setValidateState = function() {
          microsoftTeams.settings.setValidityState(true);
      };
  
      $scope.authenticate = function() {
          microsoftTeams.authentication.authenticate({
              url: isSettings.serverUrl + '/microsoft/auth-start/',
              with: 500,
              height: 800,
              successCallback: function(data) {
                  $scope.isAuthenticated = data &amp;&amp; data['accessToken'];
                  localStorage.setItem("microsoft-oauth", JSON.stringify(data));
                  displayConfiguration();
              },
              failureCallback: function(reason) {
                  console.log(reason);
              }
          });
      };
  
      function displayConfiguration() {
          microsoftTeams.settings.setValidityState(true);
          microsoftTeams.settings.registerOnSaveHandler(function(saveEvent) {
              microsoftTeams.settings.setSettings({
                  entityId: 'icescrum-connector-pkey-' + $scope.settings.project.pkey,
                  contentUrl: isSettings.serverUrl + '/microsoft/setup/',
                  configName: $scope.settings.project.name
              });
              microsoftTeams.settings.getSettings(function(settings) {
                  $scope.settings.webhookUrl = settings.webhookUrl;
                  console.log(settings.webhookUrl);
                  saveEvent.notifySuccess();
              });
          });
  
          microsoftTeams.settings.getSettings(function(settings) {
              $scope.setup = !settings.configName;
              ProjectService.listByUserAndRole(Session.user.id, 'productOwner', {light: true}).then(function(projects) {
                  $scope.projects = projects;
                  if (settings.entityId) {
                      $scope.settings.project = _.find($scope.projects, {pkey: settings.entityId.split('icescrum-connector-pkey-')[1]});
                  }
                  $scope.ready = true;
              });
          });
      }
  
      // Init
      $scope.settings = {};
      $scope.projects = [];
      $scope.ready = false;
      var tokenData = JSON.parse(localStorage.getItem("microsoft-oauth"));
      $scope.isAuthenticated = tokenData &amp;&amp; tokenData['accessToken'];
  
      microsoftTeams.initialize();
  
      if($scope.isAuthenticated){
          displayConfiguration();
      }
  </code></pre>
  
  <p>My manifest.json: </p>
  
  <pre><code>{
    "$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.3/MicrosoftTeams.schema.json",
    "manifestVersion": "1.3",
    "id": "a15dcb92-35af-400e-ab9b-99efda40138f",
    "version": "1.0.0",
    "packageName": "com.iceScrum2",
    "developer": {
      "name": "Developer",
      "websiteUrl": "https://www.icescrum.com",
      "privacyUrl": "https://www.icescrum.com",
      "termsOfUseUrl": "https://www.icescrum.com"
    },
    "description": {
      "full": "iceScrum connector",
      "short": "integration iceScrum with Microsoft Teams with a bot, a connector and a tab"
    },
    "icons": {
      "outline": "icescrum-icon-32x32.png",
      "color": "icescrum-icon-192x192.png"
    },
    "connectors": [
      {
        "connectorId": "a15dcb92-35af-400e-ab9b-99efda40138f",
        "scopes": [
          "team"
        ],
        "configurationUrl": "https://icescrum.ngrok.io/icescrum/microsoft/setup/"
      }
    ],
    "name": {
      "full": "iceScrum2",
      "short": "iceScrum2"
    },
    "accentColor": "#FFFFFF",
    "validDomains": [
      "*.icescrum.com",
      "icescrum.ngrok.io"
    ]
  }
  </code></pre>