Question
How can I create a link to navigate to a Team's channel, from within a custom personal tab?
Context
I'm trying to navigate from within a personal tab to a Team the user is a member of. I've tried the only 2 options I can think of so far:
using an a tag
using microsoftTeams.executeDeepLink
But they don't work.
When clicking the a tag, the tab contents are redirect to the general MS Teams navigation page, where you can choose to open in client or web.
When using the microsoftTeams.executeDeepLink function, a result is returned containing the error message The executeDeepLink API is not implemented in this client.
It seems the API only works on team (configurable) tabs on the desktop client.
#Nsevens This feature is not public yet. Could you please try this in the Developer Preview
Related
VS 2022 Teams App: in startup code i.e. program.cs I need to identify if the app is running either in Teams or as a standalone web app. This is to properly configure authentication to suit the specific environment before app.Run(), as I need the app to be able to run as either Teams-hosted or standalone web.
For Personal apps, in your manifest you are able to specify a contentUrl, which is the url that is rendered for your app when inside Microsoft Teams, as well as a websiteUrl, which is what will get shown when your app is opened outside of the Teams context (e.g. if the user clicks the button to load the web view, or I think some mobile devices render this by default). See more here.
For a Channel or Chat tab, you have a "Configuration" page that the user sees first - the small popup for configuring your tab, and likewise here you set a contentUrl and a websiteUrl (see more here).
In both these cases, you can actually set the -same- url, but with a different querystring value to indicate to your backend which view it is, and then use that value to do what you need.
I have a bot that ultimately returns a hero card to a chat message box. This card has an action button that is currently configured to use openUrl, which spawns a new browser window upon click. We now have a requirement to display the same Url in a collaborative view within Teams (i.e. along-side a chat conversation).
I've seen similar functionality when sharing a document via a chat conversation, but can't seem to find any code samples that take this approach for a Url.
Is something like this possible and if so, any ideas how to best implement this approach?
When you use open URL action it will redirect to browser. This is by Design. But you open open the URL with in the task module when you click on the button, The page need to be publicly available and it should be IFrame. Also you need to add the URL domain to the valid domain, so that you can view the Page inside taskmodule without redirecting to browser. Please check this docs for more info
I am working on teams tab, looking for a solution to stop teams tab redirecting to browser or redirecting to any website from website icon🌐 on top right corner.
For a configurable tab , in your config page you call setSettings().
There you specify:
the entityId,
contentUrl,
the websiteUrl,
and optionally the removeUrl
Here you can leave the websiteUrl empty/null/None
Note that you will need to provide a content contentUrl which will point to your angular app/site to render the tab in Teams.
However it is important to be aware that this may have impact on the way a mobile client renders the tab.
If you distribute your App via the tenant store , this will have no impact.
For a published store app (via Appsource), the app needs to be approved / whitelisted to use the url in contentUrl. (this should be handled by the AppValidation Team)
Apps that are approved for mobile will use the contentUrl
Non-approved apps will use the websiteUrl, and if you did not provide that , there is nothing to display😶.
This process is intended make sure existing Apps+Tabs properly render on mobile devices,
and is something to be aware of when design / deploying and sending the app for store approval.
https://learn.microsoft.com/en-us/microsoftteams/platform/tabs/what-are-tabs#mobile-clients
also see :
https://learn.microsoft.com/en-us/graph/api/resources/teamstabconfiguration?view=graph-rest-1.0
I'm planning to build a custom application for Ms Teams and I wanted the app to have an 'Administration' context, reserved for some users, with charts and records management that the rest of the users wouldn't be able to see. Is there a way to accomplish this?
Is it possible to hide tabs depending on a user profile? Is there another way to accomplish this on teams?
Tks
Inside your tab you can do whatever you want - it's just a custom web app/page. The only "restriction" aside from a normal web app, is that it must implement the Teams javascript library - see here for more. However, once you've implemented that library, you can get the Teams context, which includes the user's Azure AD Id and also UPN, and you could use one or both of those to do a lookup against your database, determine the user's role, and show/hide UI elements accordingly.
However, I think you might be asking about whether the entire Tab -itself- (i.e. even the tab item inside the Teams client) can be hidden from other users. To do this, an option is to use a "private channel", just for the relevant users, and pin the tab inside there only.
I have been reading google developers API document and trying to setup my private hangout chat for employees. I have created project in Console, enabled hangout API, verified domain ownership used for service and all that is listed at step one and two on this page https://developers.google.com/+/hangouts/getting-started.
When I go to page Run your app privatly on page https://developers.google.com/+/hangouts/running#running-private I cant find way to add my app as is mentioned here, because there is no Add apps link.
Move the mouse pointer to the left edge of the Hangout to reveal the
menu, choose the three dots (...), then Add apps. The app picker
appears.
Could you please help me