question

Huzaifa-9671 avatar image
0 Votes"
Huzaifa-9671 asked Wajeed-MSFT commented

Specifying onlineMeetingProvider as teamsForBusiness responses onlineMeetingProvider as skypeForConsumer and meetingUrl as a skype link.

While creating calendar/event in calendar using graph api, when I specify onlineMeetingProvider as teamsForBusiness, I get in response onlineMeetingProvider as skypeForConsumer and meetingUrl responded is also a skype link.

[1]: /answers/storage/attachments/109345-screenshot-from-2021-06-25-13-51-36.png

[2]: /answers/storage/attachments/109299-screenshot-from-2021-06-25-13-55-18.png

office-teams-app-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Huzaifa-9671 avatar image
0 Votes"
Huzaifa-9671 answered Wajeed-MSFT commented

I have tried again and yet response is S110644-screenshot-from-2021-06-30-16-33-58.pngkype link



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


@Huzaifa-9671 - To get the correct token for Microsoft Teams Free and guest users, it is important that the apps use tenant specific endpoint https://login.microsoftonline.com/{tenantId}. If the apps use https://login.microsoftonline.com/common, the users will get incorrect tokens and will log on to the "home" tenant instead of the tenant that they are currently signed into.
Easiest way to get your tenant Id by logging in to https://teams.microsoft.com/ using your personal account.
111605-image.png

Graph Explorer by default logins to home tenant. Could you please try following the steps mentioned in get access token documentation and let me know if it works for you?


0 Votes 0 ·
image.png (7.0 KiB)
Huzaifa-9671 avatar image
0 Votes"
Huzaifa-9671 answered Huzaifa-9671 commented

is your account a school/work account or personal account .. .??

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

school/work account account

0 Votes 0 ·

I am using personal account and I think that's why I am unable to get teamsForBusiness link

1 Vote 1 ·
TanmaySarkar avatar image
0 Votes"
TanmaySarkar answered

I've tried this body to create a new meeting. and I'm able to get "defaultOnlineMeetingProvider": "teamsForBusiness",

Request:

{
"subject": "My event",
"start": {
"dateTime": "2021-06-30T11:06:57.416Z",
"timeZone": "UTC"
},
"end": {
"dateTime": "2021-07-07T11:06:57.416Z",
"timeZone": "UTC"
},
"isOnlineMeeting": true,
"onlineMeetingProvider": "teamsForBusiness"
}

110598-image.png

110636-image.png



image.png (29.9 KiB)
image.png (77.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.