SOLVED

Is there a way to store/retrieve persistent data in Teams tab?

Brass Contributor

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.

 

2 Replies
best response confirmed by George71 (Brass Contributor)
Solution

@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.

Thanks for your advice. 🙂
1 best response

Accepted Solutions
best response confirmed by George71 (Brass Contributor)
Solution

@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.

View solution in original post