Using Adaptive card
#AdaptiveCard, #MDA, #PowerAutomate, #Teams, #Notification
Last updated
#AdaptiveCard, #MDA, #PowerAutomate, #Teams, #Notification
Last updated
Greetings everyone,
Following a conversation with my client regarding Approval Notifications, it has been determined that they would like to receive notifications in their MS Teams chat whenever a record is approved.
In my case, the client has a Deal entity and it has been configured as the Approval Flow. The user requested that: When their Deal has been approved, they will receive a notification about this event in the Team chat.
... and I propose to use Power Automate to send an Adaptive Card to the record owner once it is approved in MS Teams.
For building an Adaptive card that shows messages in MS Teams, I used the tool - Adaptive Cards designer. And my sample:
I will not talk in detail about the components of this tool today, but I believe you can grasp and comprehend it swiftly... 😇 That is my promise. 😍
Okay ... I have attached the JSON code for this card below. You can try it out.
For more details, you can find the Designing Adaptive Cards for your Microsoft Teams app
After finishing the Adaptive Card, I jumped to my solution and created a Cloud flow to send the Adaptive card to Deal Owner once it is approved in MS Teams.
The action name: Post card in a chat or channel. Following the configure:
Post as: Flow bot
Post in: Chat with Flow chat
Recipient: Owner of record who receive the notification
Adaptive Card: input the JSON code of the card which was built from the Adaptive Carder designer tool.
After entering the JSON code into the Flow, I will modify the JSON's Placeholder with the Dynamics value from the record in the Flow.
I will change the Status Reason of the Deal record to "Approved". Then, the Adaptive Card is sent to the Owner of the Deal in MS Teams.
Besides using the Adaptive Card Designer, I requested help from the ChatGPT to generate the JSON code for a sample Adaptive card.
Let's try it yourself...
Thank you and hoping well... 🎉 [NTD]yns.asia ...invite me a cup. ☕ Thank you. ❤️