Nov 01 2022 08:53 PM
We have a message extension that uses Task Module and Adaptive Cards which allows users to select from a ChoiceSet or enter input text. We implement chained adaptive cards, which means there are multiple steps. It works well on desktop but when we try it out on mobile, the cards won't load up after the initial step.
We are handling the inputs using TeamsActivityHandler.handleTeamsMessagingExtensionSubmitAction and TeamsActivityHandler.handleTeamsMessagingExtensionFetchTask.
On some occasions, the desktop app also won't load up the Msg Extension Modal and we had to sign in/out and turn on/off Developer Preview - this experience seem to happen only on our dev organization and custom apps so we might have missed a setting but behavior still is weird.
Kindly advise.
Nov 01 2022 11:08 PM - edited Nov 01 2022 11:10 PM
@vannyconoza -
For Desktop app issue I suggest clearing your Teams desktop app cache:
1. Sign out on Teams > Quit Microsoft Teams by right clicking the icon and select Quit.
2. On your keyboard, Hold Windows key and Press R
3. Cut and paste %appdata%\Microsoft\Teams in the RUN then OK.
4. Delete the contents of the entire folder.
5. Restart Microsoft Teams > Sign In.
For mobile app issue can you please clarify below points.
1. Are you trying to open adaptive card on Taskmodule via messaging extension action?
2. Can you please share your adaptive card json to try at our end? Because you have mentioned you are trying multiple steps or we just need to try with choiceset?
3. Are you facing issue in android or IOS mobile?
Nov 02 2022 04:49 AM
@Nivedipa-MSFT
Can you share steps for Mac?
For the mobile app issue,
1. Yes. We use adaptive card on task module as msg extension action. Something like this:
task: {
type: "continue",
value: {
card: cardAttachment,
height: height,
title: "Make Collaboration Happen",
url: null,
width: width
}
}
2. Yup, our card have TextBlock, ColumnSet, ChoiceSet, Input, Action.Submit, etc. We have tried checking our card in Adaptive Card Designer and seems to work so I guess can just try any simple card.
3. Currently, we are facing the issue in IOS. But again, this seem to only happen on our dev organization.
Nov 08 2022 12:18 AM
@vannyconoza - We are checking this internally. We will update you soon.
Nov 08 2022 01:23 AM - edited Nov 11 2022 04:26 AM
@vannyconoza
We have tested this on IOS version 15.5 and Teams version 4.12.0
But it's working fine at our end.
Please check below video for your reference:
https://user-images.githubusercontent.com/92150070/200525889-6d6b8c5c-3bdf-4734-8ba7-d13e188cfb91.mp...
Could you please update the Teams version and check again?
Nov 11 2022 05:29 AM
Nov 15 2022 03:28 AM
Nov 15 2022 03:29 AM
Nov 17 2022 12:27 AM
@Nivedipa-MSFT Hi, I'm still facing this issue and what I've figured out as yet is that I have the below-attached commands for my message extension in my manifest. createTicketFromMessage command with message context is the one ain't working on android. If I add parameters to this command in the manifest then it works fine but the form renders with empty data. I want to load a form field populated with message body text in it which I was doing in handleTeamsMessagingExtensionSubmitAction function in my bot code but if I add parameters in the manifest command then I don't receive the request in handleTeamsMessagingExtensionSubmitAction function and form gets rendered with empty fields.
"composeExtensions": [
{
"botId": "<<BOT-ID>>",
"commands": [
{
"id": "createTicket",
"type": "action",
"description": "Command to run action to create a Ticket from Compose Box",
"title": "Create Ticket",
"context": ["compose"],
"fetchTask": true,
"initialRun": true
},
{
"id": "addComment",
"type": "action",
"description": "Add comment",
"title": "Add Comment",
"context": ["message"]
},
{
"id": "createTicketFromMessage",
"type": "action",
"description": "Create ticket",
"title": "Create a ticket",
"context": ["message"]
}
]
}
]
Nov 17 2022 05:18 AM
Nov 18 2022 05:22 AM
@Nivedipa-MSFT sure, let me know afterward I'm waiting for your response.
Nov 18 2022 10:28 AM
Nov 21 2022 06:59 AM - edited Nov 21 2022 07:06 AM
Actually, the exact above-mentioned createTicketFromMessage command isn't working on android. It doesn't work without adding parameters.
It works only when I add the following parameters but I want to load the message body text as the description parameter's value and if I add parameters in my manifest then upon calling this command, there is no call made to my bot code.
"parameters": [
{
"name": "title",
"title": "Name",
"description": "Name of the User",
"inputType": "text"
},
{
"name": "subTitle",
"title": "Designation",
"description": "Designation of the User",
"inputType": "text"
},
{
"name": "text",
"title": "Description",
"description": "Description",
"inputType": "textarea"
}
]
Nov 23 2022 08:45 PM - edited Nov 24 2022 10:50 PM
@anaas1070 - Could you please share screen recording with us to investigate further on this?
And also share the error what you are getting on ngrok?
Nov 27 2022 11:51 PM
Nov 28 2022 01:20 AM - edited Nov 28 2022 01:21 AM
@anaas1070 - Could you please share your valuable feedback via Microsoft Teams Developer Community Response Feedback.