Adding tabs with roles inside custom app in Microsoft teams - botframework

I have added custom app in Microsoft teams. Currently, there are three tabs abc, chat and about. I need to hide abc tab from users.it should be visible only to Admin.
How to do it?

User-role based hiding tabs are not supported currently. You can suggest this feature at Microsoft Feedback portal.

Related

How do you link from a Personal Tab app to a Channel Tab app in Microsoft Teams?

Update
There's a bug in teams-js which is causing getContext to return an empty string for subEntityId, a required field for deeplinking to an app within a channel within a team.
Original Question
I have a requirement to link from a Personal Tab app to a Channel Tab app. Is this possible? If so, how do you do it? I couldn't find any relevant info in the docs.
Detail
We have an app which runs in the Channel Tab and the Personal Tab. If you're viewing our app from your Personal Tab, you'll see a list of items which when clicked should navigate to our app in a Channel Tab associated with the clicked item. The channel could be under a different team, but it will be in the same organization, and you are already a member of that team and channel.
You can accomplish this via Deep Linking. See more at https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/deep-link-application?tabs=teamsjs-v2#generate-a-deep-link-to-your-tab but specifically here is an example cited in that page:
Link to a configurable tab itself:
https://teams.microsoft.com/l/entity/fe4a8eba-2a31-4737-8e33-e5fae6fee194/tasklist123?webUrl=https://tasklist.example.com/123&label=Task List 123&context={"channelId": "19:cbe3683f25094106b826c9cada3afbe0#thread.skype"}

How to add custom UI elements inside chat window using MS Teams Toolkit?

I previously worked on creating VSTO and Office addins for MS Outlook, Excel and Word using C# VS. Now I have a plan to build one for MS teams. So, I checked online and found the documentation.
But I didn't found that how I can add custom UI elements (text, buttons etc.) inside a chat window. For example: Teams suggested replies shows suggestions inside button above the chat textbox.
Do anybody have an idea that how I can achieve this one?
you might want to start with these docs:
build a command-response bot that you can customize the messages in chat window to either text or adaptive cards (on which you can have buttons).
and notification bot doc which has more information on customizing adaptive card for Teams apps.
there are also docs on message extension on the same doc site, you can take a look to decide which is what you want to build.

How to Add image/logo for Bot in MS Teams

I have created a Bot and uploaded it to MS teams. I have already added the icons in the manifest.The uploaded icons appear only at the heading but not in the conversation.
I've heard this is apparently a "bug" that the relevant Microsoft team is dealing with, but, basically, you need to ALSO set the icon in the Azure portal, in your bot registration. Go to the Settings screen, and there's an option to upload an icon - you can use the same one you used in your Teams manifest of course.
Don't forget to click the "Save" button at the top of the settings screen when you're done. See example screenshot:
I forgot to add, very importantly, that this can take up to 24 hours for the change to come through, I think

How to hide Assistant/Activities tab and Attach button in Notes section on Social Pane in Dynamics 365?

Has anyone had an experience modifying the Social Pane in Dynamics 365?
Hiding the Assistant and Activities Tab
Hiding the Attach button in the Notes Tab
Googling shows unsupported way by accessing and hiding by DOM manipulation. Has tried Security roles, Ribbon Workbench but still tabs and Attach button are showing. The Notes form also cannot be customized.
We tried also the Intelligence Configuration by following this: https://learn.microsoft.com/en-us/dynamics365/customer-engagement/sales-enterprise/configure-enable-embedded-intelligence
But nothing changed.
Can you share your experience on this?
The social pane is a disappointing feature. The only two things you can change is the order of the activities displayed and the default tab.
If you want to prevent your user from attaching files to notes, you can make a plugin on the creation of the note and throw an exception.
To hide the other tabs, the only way I can think of is unsupported. Using javascript. I don't like it but when my clients are asking for it, I do it.
Unfortunately we don't have lot of control over there to customize Social Pane the way we want. Maximum we can configure that what should be the default tab (Supported Customization).
Dynamics 365 got Timeline control (Social Pane 2.0) which has more doors open like: Timeline is available in Mobile, Dashboards, unified experience, filtering options, etc. But only catch: it is available only in Unified Interface (UCI App aka model-driven PowerApp & Hub apps) and not on Standard Web client.
Read more
Embedded Intelligence will enhance Relationship Assistant experience.

Hide the soft keyboard in Facebook Messenger Bot

Hi I'm writing a Facebook Messenger bot that has a few nice looking card actions - that end up taking up a large portion of the chat window. The problem is that the soft keyboard on phones such as iPhone and Android still displays, constraining the visible area of the chat to an even smaller window, obscuring the card.
Is there a way I can send some sort of specific JSON down in my bot messages to indicate to FB Messenger that the keyboard should be hidden until the user clicks back into the message entry area?
Thanks.
One option could be is using the Persist Menu feature and set the composer_input_disabled property to true.
From the docs:
Disables the Messenger composer field if set to true. This means your
bot can only be interacted with via the persistent menu, postbacks,
buttons, and webviews.
Some useful links:
Microsoft Bot Framework .NET - Add a persistent menu to your Facebook Messenger chatbot
Adding Menu and Buttons to your messenger bot
Add Persistent Menu and Buttons to your messenger bot
As Ezequiel pointed out. You can use the persistent menu feature for Facebook Messenger. If you are using the .NET SDK check out the sample I created:
https://github.com/FranciscoPonceGomez/Persistent-Menu-Facebook

Resources