From a81a0dbe0d3e89e26ed5ad0a2816f805038a282a Mon Sep 17 00:00:00 2001 From: ShacharKidor Date: Tue, 11 Feb 2025 15:58:14 +0200 Subject: [PATCH] Added logs --- .../Integrations/MicrosoftTeams/MicrosoftTeams.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py b/Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py index 9901caa03f68..3009dac92e25 100644 --- a/Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py +++ b/Packs/MicrosoftTeams/Integrations/MicrosoftTeams/MicrosoftTeams.py @@ -1402,6 +1402,7 @@ def create_chat(chat_type: str, users: list, chat_name: str = "") -> dict: members += [create_conversation_member(user_id, [USER_TYPE_TO_USER_ROLE.get(user_type)]) for user_id, user_type in users] + demisto.debug(f"Chat members are: {members}") request_json: dict = { "chatType": chat_type, @@ -1521,9 +1522,12 @@ def add_bot_to_chat(chat_id: str): # bot is already part of the chat if is_bot_in_chat(chat_id): + demisto.debug(f"Bot is already part of the chat - chat ID: {chat_id}") return res = http_request('GET', f"{GRAPH_BASE_URL}/v1.0/appCatalogs/teamsApps", params={"$filter": f"externalId eq '{BOT_ID}'"}) + demisto.debug(f"res is: {res}") + demisto.debug(f"res type is: {type(res)}") app_data = res.get('value')[0] # type: ignore bot_internal_id = app_data.get('id')