Error while subscribing to callRecords with graphAPI

Bartek Wojcieszek 6 Reputation points
2020-11-12T16:38:58.887+00:00

I'm trying to subscribe to callRecords. TO make it simple I'm using postman acording to:
https://learn.microsoft.com/en-us/graph/use-postman

I've created new Azure account, new application and granted permissions:
39400-image.png

I can read all subscriptions without a problem, with response with empty array which is fine.
But when im doing subcripition create i got error. Below is my payload and response:
POST to https://graph.microsoft.com/v1.0/subscriptions

{
"changeType": "created",
"notificationUrl": "https://xxxxxxx.ngrok.io/webhooks/microsoft/call_record",
"resource": "/communications/callRecords",
"expirationDateTime": "2020-11-12T18:23:45.9356913Z",
"clientState": "secretClientState"
}

Response:

{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: Expected 1 response for tenant lookup for tenant id 573f65c7-4318-4446-8558-4473832c5e57 but received 0]",
"innerError": {
"date": "2020-11-12T16:35:51",
"request-id": "31ddb9f6-7177-46f5-9640-2a38818db030",
"client-request-id": "31ddb9f6-7177-46f5-9640-2a38818db030"
}
}
}

Not sure why tenant lookup is failing if i can get bearer token with it.
Am I missing some additional config on my Azzure account for this?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,886 questions
0 comments No comments
{count} vote

2 answers

Sort by: Most helpful
  1. Manish-MSFT 256 Reputation points
    2020-11-16T15:06:44.643+00:00

    You need to confirm if you have all the required permissions. You can check it in jwt.io.
    Check if your notification url is valid - check this for more details.

    0 comments No comments

  2. Christian Hiller 1 Reputation point
    2022-10-13T16:43:19.027+00:00

    i have the same issue like @Bartek Wojcieszek
    is there any solution for this?
    thx.

    0 comments No comments