I have created simple ".aspx" content page, and added this page as a Tab in "Microsoft Teams". I want to get the "SharePoint Url" of Microsoft Team where content page added as Tab. To do this I need "microsoftteams.context" object. Please let me know how to resolve this problem. I tried below code (with microsoft teams JS library) but its not working.
microsoftTeams.initialize();
microsoftTeams.getContext(function(Context) {
alert("getcontext call back function");
alert(Context.teamName);
});
microsoftTeams.initialize();
microsoftTeams.getContext(function(Context) {
alert("getcontext call back function");
alert(Context.teamName);
});