Forum Discussion
George71
Jul 24, 2020Brass Contributor
Is there a way to store/retrieve persistent data in Teams tab?
What is the simplest way to store persistent data in my Teams app tab? I have an integer value, which I would like to maintain in one of my tabs. This value can change so I need some way of storing it. I would like the ability to retrieve this value in my tab after Teams is restarted.
Is this possible? Can someone point me to a snippet of code, which stores and retrieves persistent data?
Thanks.
George71 You can use Get Context for your tab, this will return the tab context data, if you are willing to pass this value in tab URL you can also do that, you will get that for sure. Please look at get context for your tab using Teams client SDK. You can also use getSetting and setSetting method for creating a configuration page.
- Trinetra-MSFT
Microsoft
George71 You can use Get Context for your tab, this will return the tab context data, if you are willing to pass this value in tab URL you can also do that, you will get that for sure. Please look at get context for your tab using Teams client SDK. You can also use getSetting and setSetting method for creating a configuration page.
- George71Brass ContributorThanks for your advice. 🙂