Which event get triggered when user installs the app?

Mash Codee 0 Reputation points
2023-07-21T10:48:50.59+00:00

I have tried onInstallationUpdate, onMembersAdded and onConversationUpdate events but none of them are working.

I want to create the team account in my db when they installs the app in the app, so I also want to know when the first installation done in the organisation

I have created a bot with Team Toolkit VS Code extension.

Microsoft Teams | Development
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 9,061 Reputation points Microsoft External Staff Moderator
    2023-07-24T05:42:55.77+00:00

    A bot receives a conversationUpdate event when bot has been added to a conversation. The conversationUpdate event is sent to your bot when it receives information on membership updates for teams where it has been added. It also receives an update when it has been added for the first time for personal conversations.
    Use the InstallationUpdate event to determine when when your bot is added or removed from a conversation.
    Ref: https://learn.microsoft.com/en-us/microsoftteams/platform/bots/how-to/conversations/subscribe-to-conversation-events?tabs=dotnet#installation-update-event

    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. Click here to escalate.

    0 comments No comments

Your answer

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