Reputation: 1009
So I want to receive a notification, when a call is happening callRecord (/communications/callRecords)
so I grabed myself this example and changed the task function to this:
public async Task<ActionResult<string>> Get()
{
var graphServiceClient = GetGraphClient();
var sub = new Microsoft.Graph.Subscription();
sub.ChangeType = "created";
sub.NotificationUrl = config.Ngrok + "/api/notifications";
sub.Resource = "/communications/callRecords";
sub.ExpirationDateTime = DateTime.UtcNow.AddMinutes(5);
var newSubscription = await graphServiceClient
.Subscriptions
.Request()
.AddAsync(sub);
Subscriptions[newSubscription.Id] = newSubscription;
if (subscriptionTimer == null)
{
subscriptionTimer = new Timer(CheckSubscriptions, null, 5000, 15000);
}
return $"Subscribed. Id: {newSubscription.Id}, Expiration: {newSubscription.ExpirationDateTime}";
}
I also added the graph api permission CallRecords.Read.All
to my app. Beforehand I testet the example with the updated users notification and it worked fine. But now it won't trigger the notification for a call.
Upvotes: 1
Views: 559
Reputation: 460
Same here, everything worked yesterday but today my webhook endpoint didn't even trigger once.
I think there might be an issue on Microsoft's side. I follow this issue here of someone who has the same problem as us.
UPDATE: Someone from Microsoft answered in the linked Github Issue:
There is currently an ongoing issue. The related post is TM220340 in the M365 Admin Center.
So they're confirming that the issue is on their end.
Upvotes: 2