UPDATED QUESTION 16-10-2020 I simplified the code so it doesn\'t contain an if statement anymore to run the postMessageToTeams function and I added the erro