Microsoft Teams: Error when saving/retrieving config settings
I'm working on saving the configs of a custom Teams tab that I have finished developing. To do the development, I'm using:
- Visual Studio 2017,
- Microsoft Teams SDK,
- App Studio (for the manifest) and
- DevExtreme controls
However, saving and retrieving the settings is making me chew bricks! The way I'm doing it is by using string manipulation to either add or extract the various settings from the URL of the tab page. However, I'm unable to either retrieve or save the setting.
Here are the problems:
* When retrieving the setting (using the retrieveSettings() method), each of the values returned are undefined.
* When saving the setting (using the btnSave_Click() method), I get and error. Please refer to the attached screenshot.
I posted about this error on StackOverflow (https://stackoverflow.com/questions/62328553/microsoft-teams-error-when-saving-retrieving-config-settings) and one user suggested that I call microsoftTeams.initialize(); in a separate script block in the HTML file. This did not solve the problem.