OfficeDev / microsoft-teams-library-js

JavaScript library for use by Microsoft Teams apps
https://docs.microsoft.com/microsoftteams/platform/
Other
425 stars 193 forks source link

pages.config.setConfig is saving wrong config webhookUrl in new client #2290

Open vbatr opened 4 months ago

vbatr commented 4 months ago

Hi all,

When I am trying to save setting configuration while configuring new connector the different webhookUrl is set on calling pages.config.setConfig(), so when I am trying to manage the saved connector setting it has different webhook URL

STR:

1) Create connector 2) Get webhook URL by calling await microsoftTeams.pages.getConfig() 3) Save configs by calling pages.config.setConfig() 4) Open configured connector and check received webhook URL ((await microsoftTeams.pages.getConfig()).webhookURL)

AR: The webhook URL on configuration pages doesn't much webhook URL after saving configs ER: webhook URL should be the same

Teams client: Teams v2 msteams-js version: 2.22.0

Notes:

Everything is working as expected on Teams legacy client. The webhook URL is the same after saving configs

Regards, Volodymyr B.

Meghana-MSFT commented 4 months ago

Could you please confirm if you are facing the same issue while creating this manually as well? Is your issue similar to https://learn.microsoft.com/en-us/answers/questions/1621849/when-edit-an-existing-configured-connector-in-new?

Meghana-MSFT commented 4 months ago

@vbatr - Could you please confirm above?

vbatr commented 4 months ago

Hi @Meghana-MSFT

It seems that issue described in the question is related to the same issue - pages.config.setConfig() is generating new configuration and webhhok URL is changing, that is causing new configuration creation.

Meghana-MSFT commented 4 months ago

We already have an incident created for this issue. We will keep you posted on the updates. Thank you.

BobbyAD commented 3 months ago

Have there been any updates to this? It's causing issues for our current connector as well. The only workaround we've found is to have users navigate to the Manage page where we can get the actual webhook URL and save it on our side.

Meghana-MSFT commented 3 months ago

Unfortunately, we do not have any updates to share. We are following up with engineering team for updates.