Show notification for ms teams personal app cum SharePoint app

Bhawana 21 Reputation points
2021-09-07T09:52:17.693+00:00

Hi All,

I have created one SharePoint SPFX web part and same web part is converted into ms teams personal app. now I need to show the bubble notification in ms teams for the same app. I have seen few blogs which says to use ms graph but none of them gives example for personal app.

below configuration settings I have done in WebPart.manifest.json file so that SPFX web part can be used on both SharePoint and MS teams

"supportedHosts": ["SharePointWebPart","TeamsPersonalApp"]

now I need to show notification in ms teams app. please see below image

103979-image.png

any help and suggestions are appreciated.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,989 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,754 questions
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,954 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 32,476 Reputation points Microsoft Vendor
    2021-09-08T05:50:36.977+00:00

    Hi @Bhawana ,
    I found a video shows you how to send Teams notification using Microsoft Graph, you can see if is helpful to you. The following link also show the components of activity feed notification for your reference.
    https://www.youtube.com/watch?v=3MCAKzHkdWU&t=471s

    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    And please go through this documentation as reference
    https://learn.microsoft.com/en-us/graph/teams-send-activityfeednotifications


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.