onInstallationUpdate, onInstallationUpdateAdd and onInstallationUpdateRemove event handlers

%3CLINGO-SUB%20id%3D%22lingo-sub-1961384%22%20slang%3D%22en-US%22%3EonInstallationUpdate%2C%20onInstallationUpdateAdd%20and%20onInstallationUpdateRemove%20event%20handlers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1961384%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'd%20like%20to%20know%20how%20the%20following%20methods%20are%20triggered%3A%3C%2FP%3E%3CP%3EonInstallationUpdate%2C%20onInstallationUpdateAdd%2C%20onInstallationUpdateRemove%3C%2FP%3E%3CP%3EWe%20updated%20our%20botbuilder-core%20package%20to%204.11.0.%26nbsp%3B%20In%20our%20DialogBot%20class%20that%20extends%20ActivityHandler%2C%20we%20have%20added%20the%20following%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3Ethis.onInstallationUpdateRemove(this._onInstallationUpdateRemove.bind(this))%0Athis.onInstallationUpdateAdd(this._onInstallationUpdateAdd.bind(this))%0Athis.onInstallationUpdate(this._onInstallationUpdate.bind(this))%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20the%20event%20handlers%20do%20today%20is%20just%20to%20log%20that%20the%20event%20was%20triggered.%26nbsp%3B%20For%20example%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-applescript%22%3E%3CCODE%3Econsole.log(%22__onInstallationUpdateRemove%20triggered%22)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20assuming%20these%20events%20are%20triggered%20when%20a%20user%20installs%20or%20removes%20the%20app%20from%20his%20Teams%20instance.%26nbsp%3B%20However%2C%20when%20I%20tried%20to%20install%20or%20uninstall%20my%20bot%20from%20my%20Teams%2C%20nothing%20happens.%26nbsp%3B%20There%20are%20no%20%22triggered%22%20log%20statements.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20how%20these%20events%20get%20triggered%3F%26nbsp%3B%20What%20is%20their%20purpose%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20You%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1961384%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2024984%22%20slang%3D%22en-US%22%3ERe%3A%20onInstallationUpdate%2C%20onInstallationUpdateAdd%20and%20onInstallationUpdateRemove%20event%20handlers%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2024984%22%20slang%3D%22en-US%22%3EHi%2C%20%3CBR%20%2F%3E%3CBR%20%2F%3EDid%20you%20ever%20receive%20an%20answer%20on%20this%20or%20find%20out%20what%20you%20needed%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E
Contributor

Hi,

 

I'd like to know how the following methods are triggered:

onInstallationUpdate, onInstallationUpdateAdd, onInstallationUpdateRemove

We updated our botbuilder-core package to 4.11.0.  In our DialogBot class that extends ActivityHandler, we have added the following

 

this.onInstallationUpdateRemove(this._onInstallationUpdateRemove.bind(this))
this.onInstallationUpdateAdd(this._onInstallationUpdateAdd.bind(this))
this.onInstallationUpdate(this._onInstallationUpdate.bind(this))

 

 

All the event handlers do today is just to log that the event was triggered.  For example

 

console.log("__onInstallationUpdateRemove triggered");

 

I am assuming these events are triggered when a user installs or removes the app from his Teams instance.  However, when I tried to install or uninstall my bot from my Teams, nothing happens.  There are no "triggered" log statements.

 

Does anyone know how these events get triggered?  What is their purpose?

 

Thank You

2 Replies
Hi,

Did you ever receive an answer on this or find out what you needed?

Best, Chris