SOLVED

Which event fired when someone uninstall your app in Microsoft Teams

%3CLINGO-SUB%20id%3D%22lingo-sub-1610299%22%20slang%3D%22en-US%22%3EWhich%20event%20fired%20when%20someone%20uninstall%20your%20app%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1610299%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20working%20on%20creating%20a%20bot%20for%20Microsoft%20teams%20in%20C%23%20using%20Bot%20Framework.%20User%20can%20interact%20with%20bot%20and%20ask%20some%20query.%3C%2FP%3E%3CP%3EWhen%20user%20install%20the%20app%2C%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EOnConversationUpdateActivityAsync%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eevent%20gets%20fired%20and%20i%20save%20some%20user%20info%20in%20my%20azure%20database.%3C%2FP%3E%3CP%3EI%20have%20to%20delete%20user%20data%20when%20app%20is%20uninstalled%20from%20the%20teams.%3C%2FP%3E%3CP%3EThe%20problem%20that%20i%20am%20facing%20is%2C%20i%20am%20not%20getting%20any%20event%20that%20is%20fired%20when%20someone%20uninstall%20the%20app.%3C%2FP%3E%3CP%3EIs%20there%20any%20way%20to%20achieve%20what%20i%20am%20looking%20for%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1610299%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1619840%22%20slang%3D%22en-US%22%3ERe%3A%20Which%20event%20fired%20when%20someone%20uninstall%20your%20app%20in%20Microsoft%20Teams%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1619840%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F745757%22%20target%3D%22_blank%22%3E%40DeveshT%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20anything%20in%20here%20that%20could%20help%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fresources%2Fbot-v3%2Fbots-notifications%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmicrosoftteams%2Fplatform%2Fresources%2Fbot-v3%2Fbots-notifications%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20note%20the%20section%20where%20the%20bot%20is%20shown%20as%20a%20removed%20member%20when%20removed.%20So%20if%20you%20can%20track%20that%20activity%20for%20when%20say%20the%20ID%20of%20the%20Bot%20is%20referenced%20as%20being%20the%20member%20that%20is%20being%20removed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHenry%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I am working on creating a bot for Microsoft teams in C# using Bot Framework. User can interact with bot and ask some query.

When user install the app, OnConversationUpdateActivityAsync event gets fired and i save some user info in my azure database.

I have to delete user data when app is uninstalled from the teams.

The problem that i am facing is, i am not getting any event that is fired when someone uninstall the app.

Is there any way to achieve what i am looking for?

1 Reply
Highlighted
Best Response confirmed by ThereseSolimeno (Microsoft)
Solution

Hi @DeveshT ,

 

Is there anything in here that could help: https://docs.microsoft.com/en-us/microsoftteams/platform/resources/bot-v3/bots-notifications

 

If you note the section where the bot is shown as a removed member when removed. So if you can track that activity for when say the ID of the Bot is referenced as being the member that is being removed.

 

Thanks

 

Henry