Adaptive Card in Teams

Akshata 46 Reputation points
2022-04-11T04:00:02.637+00:00

Created an adaptive card and posted on teams which is barely a group of 10 people.
I want to record all those 10 person's responses on SharePoint List.

Issue I am facing is, whenever an individual fills that card response, card message get closed with only one response and other 9 people are not able to fill their responses.

I want to make it use for all 10 people like, if we post the Microsoft form, it will stay open until everyone respond to it, every single person can fill it. Here, I am not seeing that kind of option in Adaptive cards.

Please suggest if any solution on this.

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,825 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,542 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,818 questions
{count} votes

Accepted answer
  1. Bruno Lucas 4,411 Reputation points MVP
    2022-04-12T09:43:02.13+00:00

    Hi Akshatashete ,
    Sorry for rushing up on my answer. I actually found a way to do it. hope may be applicable for you scenario

    You first need the collection of users you want to send adaptive cards for. Something similar to this but could be a SharePoint list

    192276-image.png

    Inside the loop, you can actually use "Post adaptive card and wait for response". make sure you select these options:

    192246-image.png
    192190-image.png

    each user will receive and individual message like this

    192209-image.png


1 additional answer

Sort by: Most helpful
  1. Bruno Lucas 4,411 Reputation points MVP
    2022-04-11T06:07:39.047+00:00

    Looking at that control I don't see any setting to do that . The Send-Wait-Return is built-in inside the control that does not appear to offer some option to manage multiple recipients.

    What you can try to do is to add the recipient list (followed by the SharePoint) into an Array and loop. like on this video:
    https://www.youtube.com/watch?v=yQqN950H-UE

    Another way would be using the http control to direct access graph:
    https://techcommunity.microsoft.com/t5/integrations-on-azure-blog/calling-graph-api-from-azure-logic-apps-using-delegated/ba-p/1997666
    https://learn.microsoft.com/en-us/answers/questions/158736/how-to-send-an-adaptive-card-through-microsoft-gra.html

    use this api to send
    https://learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http

    than use this to check, count and return after you have all messages:
    https://learn.microsoft.com/en-us/graph/api/chatmessage-list-replies?view=graph-rest-1.0&tabs=http