2017-07-18 5 views
1

私たちは私のコードつもりこのMicrosoft Graph検索会議時間は他の出席者を追加しますか?

{ 
    "attendees": [ 
    { 
     "type": "required", 
     "emailAddress": { 
     "name": "Fanny Downs", 
     "address": "[email protected]" 
     } 
    } 
    ], 
    "locationConstraint": { 
    "isRequired": "false", 
    "suggestLocation": "false", 
    "locations": [ 
     { 
     "resolveAvailability": "false", 
     "displayName": "Conf room Hood" 
     } 
    ] 
    }, 
    "timeConstraint": { 
    "activityDomain":"unrestricted", 
    "timeslots": [ 
     { 
     "start": { 
      "dateTime": "2017-04-17T09:00:00", 
      "timeZone": "Pacific Standard Time" 
     }, 
     "end": { 
      "dateTime": "2017-04-19T17:00:00", 
      "timeZone": "Pacific Standard Time" 
     } 
     } 
    ] 
    }, 
    "meetingDuration": "PT2H", 
    "returnSuggestionReasons": "true", 
    "minimumAttendeePercentage": "100" 
} 

のように見える1人の参加者を持っている場合は、グラフAPIは、パラメータ名attendees

を持っていると私はこの

に変更コードによって、より多くの参加者を追加しようとする会議タイムズマイクロソフトで検索
"attendees": [ 
    { 
     "type": "required", 
     "emailAddress": { 
     "name": "Fanny Downs", 
     "address": "[email protected]" 
     } , 
     "emailAddress": { 
     "name": "Joey medapple", 
     "address": "[email protected]" 
     } 
    } 
    ] 

が、私が他の参加者を追加することができますどのように

を働いていない

答えて

1

2人目の人物を間違った位置に配置しています。各「参加者」typeemailAddressの両方が含まれているはずです。

"attendees": [{ 
    "type": "required", // First Attendee 
    "emailAddress": { 
     "name": "Fanny Downs", 
     "address": "[email protected]" 
    } 
}, { 
    "type": "required", // Second Attendee 
    "emailAddress": { 
     "name": "Jonny Doe", 
     "address": "[email protected]" 
    } 
}, { 
    "type": "optional", // Third Attendee 
    "emailAddress": { 
     "name": "Dave Smith", 
     "address": "[email protected]" 
    } 
}], 

は、あなたが完全な要求は、このようになるはずだ:

{ 
    "attendees": [{ 
     "type": "required", // First Attendee 
     "emailAddress": { 
      "name": "Fanny Downs", 
      "address": "[email protected]" 
     } 
    }, { 
     "type": "required", // Second Attendee 
     "emailAddress": { 
      "name": "Jonny Doe", 
      "address": "[email protected]" 
     } 
    }, { 
     "type": "optional", // Third Attendee 
     "emailAddress": { 
      "name": "Dave Smith", 
      "address": "[email protected]" 
     } 
    }], 
    "locationConstraint": { 
     "isRequired": "false", 
     "suggestLocation": "false", 
     "locations": [{ 
      "resolveAvailability": "false", 
      "displayName": "Conf room Hood" 
     }] 
    }, 
    "timeConstraint": { 
     "activityDomain": "unrestricted", 
     "timeslots": [{ 
      "start": { 
       "dateTime": "2017-04-17T09:00:00", 
       "timeZone": "Pacific Standard Time" 
      }, 
      "end": { 
       "dateTime": "2017-04-19T17:00:00", 
       "timeZone": "Pacific Standard Time" 
      } 
     }] 
    }, 
    "meetingDuration": "PT2H", 
    "returnSuggestionReasons": "true", 
    "minimumAttendeePercentage": "100" 
} 
+1

それが仕事です!ありがとう – Joey

関連する問題