Forum Discussion
fabin10
Aug 04, 2021Brass Contributor
The bot is not a part of the conversation roster error in new chat(Chat->New)
Hi, I am using Microsoft Bot Framework to create the message extension. I would like to get the user email of the customer who enters the search query in the bottom search chatbox. The email is gett...
Prasad_Das-MSFT
Microsoft
Aug 04, 2021fabin10
Could you please share the manifest file?
fabin10
Aug 09, 2021Brass Contributor
Hi,
This is the manifest.json file
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.9/MicrosoftTeams.schema.json",
"manifestVersion": "1.9",
"version": "1.0.1",
"id": "<ID>",
"packageName": "<packageName>",
"developer": {
"name": "chatapp",
"websiteUrl": "",
"privacyUrl": "",
"termsOfUseUrl": ""
},
"icons": {
"color": "color.png",
"outline": "outline.png"
},
"name": {
"short": "Chatapp",
"full": ""
},
"description": {
"short": "This is a sample chat app",
"full": "This is a sample chat app."
},
"accentColor": "#FFFFFF",
"configurableTabs": [
{
"configurationUrl": "<URL>",
"canUpdateConfiguration": false,
"scopes": [
"team"
],
"context": [
"channelTab"
]
}
],
"staticTabs": [
{
"entityId": "id",
"name": "Website",
"contentUrl": "<URL>",
"scopes": [
"personal"
]
},
{
"entityId": "conversations",
"scopes": [
"personal"
]
},
{
"entityId": "about",
"scopes": [
"personal"
]
}
],
"bots": [
{
"botId": "<BOTID>",
"scopes": [
"personal",
"team"
],
"supportsFiles": false,
"isNotificationOnly": false
}
],
"composeExtensions": [
{
"botId": "<BOTID>",
"canUpdateConfiguration": true,
"commands": [
{
"id": "search",
"type": "query",
"title": "search",
"description": "",
"initialRun": false,
"fetchTask": false,
"context": [
"commandBox",
"compose"
],
"parameters": [
{
"name": "query",
"title": "Search Text",
"description": "Search Text",
"inputType": "text"
}
]
}
]
}
],
"permissions": [
"identity",
"messageTeamMembers"
],
"validDomains": [
""
]
}
- Prasad_Das-MSFTAug 09, 2021
Microsoft
fabin10
The bot MUST be installed to the Team in order to get the roster for that Team. If the bot is not installed in the Team, you will get a "The bot is not part of the conversation roster" error.
TeamsInfo.getMember() will not get the mail id from Chat->New Chat.- fabin10Aug 09, 2021Brass Contributor
Thanks for the updates. So, it's not possible to get the mail id using TeamsInfo.getMember() from Chat->New Chat.? or will it only be possible to get the mail id when the bot is connected to a channel? Prasad_Das-MSFT
- Prasad_Das-MSFTAug 09, 2021
Microsoft
Yes, it only be possible to get the mail id when the bot is connected to a Teams channel.