none
Bug In me/findMeetingTimes API RRS feed

  • Question


  • I'm trying to execute the following code, but I received Error 500

    var x = {
    "Attendees": [
     {
          "type": "resource",
          "emailAddress": {
            "address": "meeting.room1@salic.com"
          }
        }
    ],
    "TimeConstraint": {
    "ActivityDomain": "Unrestricted",
    "Timeslots": [{
    "Start": {
    "DateTime": "2018-05-03T07:45:00",
    "TimeZone": "UTC"
    },
    "End": {
    "DateTime": "2018-05-03T08:45:00",
    "TimeZone": "UTC"
    }
    }]
    },
    "MeetingDuration": "PT1H",
    "MaxCandidates": 100,
      "isOrganizerOptional": false
    }

    var token = JSON.parse(localStorage.getItem('token'));
              
                $.ajax({
                    url: "https://graph.microsoft.com/beta/me/findMeetingTimes",
                    type: 'POST',
                    contentType:'application/json',
                    beforeSend: function (xhr) {
                        xhr.setRequestHeader('Authorization', 'Bearer ' + token['access_token']);
                    },
                    data: JSON.stringify(x),
                    success: function (data) {
                       console.log(data)
                    },
                    error: function (xhr, ajaxOptions, thrownError) {
    
                    }
                });

    Thursday, May 3, 2018 11:08 AM