Send Activity Notification doesn't show up, can only see the badge

Juan Carrilho 0 Reputation points
2023-06-16T19:55:44.3033333+00:00

I am using the /users/{userId}/teamwork/sendActivityNotification endpoint with the TeamsActivity.Send delegated permission to send an activity notification from a user to another user.

The notification is successfully sent, but I can only see the badge. Nothing more is shown. No text, no sound, no banners. The feed remains empty.User's image

Here is my request to post the notification:

      .api(
        `/users/{userId}/teamwork/sendActivityNotification`
      )
      .post({
        topic: {
          source: "entityUrl",
          value: `https://graph.microsoft.com/v1.0/users/{userId}/teamwork/installedApps/{appId}`,
        },
        activityType: "missedCall",
        previewText: {
          content: "previewText.content",
        },
        templateParameters: [
          {
            name: "caller",
            value: "phone number",
          },
        ],
      })
Microsoft Teams | Development
Microsoft Teams | Development
Building, integrating, or customizing apps and workflows within Microsoft Teams using developer tools and APIs
Microsoft Security | Microsoft Graph
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 10,266 Reputation points Microsoft External Staff Moderator
    2023-06-22T12:44:15.9533333+00:00

    It is quite strange that the notification content doesn't show up.
    Using this sample we checked, and it does send the activity feed notification.
    Could you please check once?

    Response:User's image

    Thanks, 

    Prasad Das

    ************************************************************************* 

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.