How to Add a scroll bar to an adaptive card - botframework

I m showing a list of users in a card, can I add a scrollbar to the card so that it fits the screen size?
I am currently using Adaptive card 1.0 and sending this card to MS Teams.

AdaptiveCards do not allow scrolling or paging.
If you want to implement paging you could add a "next page" button to your card, when pressed you just update the card with the new list data.
MS Teams allows you to update cards/message you already sent so you could send the first page and when a user clicks on the action button you sent the second page etc.

AdaptiveCards do not have the ability to specify scrolling.But we can do with Carousel feature.
{
attachmentLayout: Attacenter code herehmentLayoutTypes.Carousel,
attachments: [CardFactory.adaptiveCard()]
}

AdaptiveCards do not have the ability to specify scrolling. It would be up to the client to implement this functionality. However, you may be able to send a list card, depending on if it suits your needs.

Related

Show Original adaptive card in teams after submit

I have implemented a requirement where i need to post a adaptive card from Power automate to a user through Flow bot and get response to log it.
But after clicking on "Submit" original adaptive card is lost and response card is getting displayed.
Is there any way by which we can retain the original card after response.
Original card:
Card after submitting comments:
It is by design and it is not possible to retain the original card after response. In the attached screenshot you can see there is no option to retain the original card in the flow.

Sending adaptive card to multiple users in Teams referencing Forms dynamic content

Based on the value of a question submitted in a Microsoft Form, I want to send an adaptive card to one or more people via Teams. I think I have the end steps figured out. I have the adaptive card nested within an Apply to each action. The Recipient of the adaptive card is set to the Current item of the Apply to each, and the selection on the Apply to each is the output from a variable.
That variable is where I'm hung up. I'm currently using an if formula to calculate the email addresses. This is probably where I need help.
if(equals(outputs('Get_response_details')?['body/r43d6bce2bb684bf79bff6d8c61fb8f9c'],'Finance'),'josh#.com',if(equals(outputs('Get_response_details')?['body/r43d6bce2bb684bf79bff6d8c61fb8f9c'],'Sales Operations'),'robby#.com','josh#.com'))
You can send adaptive cards to team/group/1:1 by getting user id / channel id.please check this docs

How to handle adaptive cards with mobile view

Is there any way to be more specific with adaptive cards on mobile.
Here I'm using bot-framework with adaptive cards. More precisely, I am building table view in cards.
Looking for adding pagination in the table.
Adding scrolling in table.
AdaptiveCards do not allow scrolling or paging.. But we can do with Carousel feature.Please check the below code:
{
attachmentLayout: Attacenter code herehmentLayoutTypes.Carousel,
attachments: [CardFactory.adaptiveCard()]
}
Other work Around Solution,
If you want to implement paging you could add a "next page" button to your card, when pressed you just update the card with the new list data.
MS Teams allows you to update cards/message you already sent so you could send the first page and when a user clicks on the action button you sent the second page etc.

Use input for update message in a Teams Flow - Post Adaptive Card action

With the "Post an adaptive card" action in Flow / Power Automate -> Microsoft Teams there's the option to specify an "update message" following the user response to the card.
How can I access the data inputs and the submitActionId for use in this message?
The use case is as follows:
user receives the card and enters data into a textfield.
user clicks one of two buttons (similar to "approve" and "reject")
(what I want to do:) card is updated to show what text the user entered and which button was pressed.
I can access other dynamic data that have been created by previous actions in the "update message" field. But the output of this adaptive card action itself is not available "within" the action, not by normal means anyway. Later in the flow it's necessary to parse the JSON output of this action.
Supplementary question: Is it possible to style the "update message". Currently it appears all bold.
Supplementary info: the "update message" field does not appear to accept another adaptive card (would have been logical...). If I enter adaptive card json there, it just gets spat back out literally in Teams.

How can I let the user share plain text, no hero cards or carousel?

I display quote prices of stocks in one of my bots in the form of text. I would like to let the user be able to share these prices on Messenger without using Hero Cards or generic template. How can I achieve this?
UPDATE 1
How to add share button in persistent menu in addition to this?
Text messages can be forwarded by long tapping, then choosing 'forward'. There is no way to add the share button to a text message. Why not just use the generic template without an image?
In the persistent menu, only url and postback buttons are supported.

Resources