Good Morning,
I'm having some issues with Graph's Beta API.
I'm trying to send in the activity feed a notification using Postman.
Here my call:
https://graph.microsoft.com/beta/users/{MY_USER_ID}/teamwork/sendActivityNotification
with its body:
{
"topic": {
"source": "entityUrl",
"value": "https://graph.microsoft.com/beta/users/{MY_COLLEGUE_USER_ID}/teamwork/installedApps/{MY_APP_ID}"
},
"activityType": "taskCreated",
"previewText": {
"content": "New Task Created"
},
"templateParameters": [
{
"name": "taskId",
"value": "Task 12322"
}
]
}
I'm getting this error:
{
"error": {
"code": "BadRequest",
"message": "The value of the topic must match the graph resource path.",
"innerError": {
"date": "2021-03-03T13:27:56",
"request-id": "ec5bc407-f3e9-49e4-9550-25a065635047",
"client-request-id": "ec5bc407-f3e9-49e4-9550-25a065635047"
}
}
}
I've already given all the required permission and followed the documentation step by step but I'm stuck at this...
I've already edited the app's manifest adding the "webApplicationInfo" paragraph:
"webApplicationInfo":
{
"id": "{MY_APP_ID}",
"resource": "https://localhost:44310/"
},
and already registered "https://localhost:44310/" as redirect URL in AAD's register application authentication panel.
Thanks in advance for any effort and time you will spend helping me out,
Giovanni