🔁 How to refresh and update Adaptive Cards in Teams [Travel Request Self-Service]

  Рет қаралды 13,177

Giuliano De Luca

Giuliano De Luca

Күн бұрын

Пікірлер: 16
@gegervl
@gegervl 9 ай бұрын
@DeLucaGiulian Hi, can you please tell me at 31:23 how do you get the Responder Name for the value Approved by ? Is there a way to get this dynamic content ? How should it be written ? I don't know how to get the user info who submit the adaptative card previously this step. Can you explain me that part please ? I need to get this user to display in the updated adaptative card and save it in the sharepoint list
@DeLucaGiulian
@DeLucaGiulian 9 ай бұрын
Hi, Thank you for asking, this is what I have in order to save the approver in the SharePoint list: triggerBody()?['entity']?['teamsFlowRunContext']?['messagePayload']?['from']?['user']?['displayName']
@ligang2683
@ligang2683 26 күн бұрын
Thank you for sharing your video. I was wondering if the “Update an existing card” action can be paired with the “Post an adaptive card and wait for a response” action. Additionally, some users have reported that the “Update an existing card” action can take up to eight seconds to complete. Is this still the case?
@DeLucaGiulian
@DeLucaGiulian 26 күн бұрын
Hi, Thanks, for your feedback and questions. Regarding the use case I never tried so if you will have the chance let us know. Answering the second question, it really depends of what your flow is doing in the backstage, but as far as I know there is a limited time to refresh the card otherwise the flow will encounter the timeout error.
@microfuel
@microfuel 2 жыл бұрын
Good to see it working in channels. Does updating the card work for you in chats with the Flow Bot (outside of channels)? I get an error 403 when I try that.
@DeLucaGiulian
@DeLucaGiulian 2 жыл бұрын
Hi Andreas, Yes it works.
@microfuel
@microfuel 2 жыл бұрын
@@DeLucaGiulian Thanks for the response. Do you know what permissions are needed for the user that makes the connection in the flow in order to be able to update cards between the flowbot and another user?
@DeLucaGiulian
@DeLucaGiulian 2 жыл бұрын
In my case a used a user with Teams and power automate license, I used the same PoC of flows in the video.
@nivednambiar6845
@nivednambiar6845 8 ай бұрын
Hi Is it possible to update a adaptive card in chat when user submit it , I am still getting forbidden issue with that
@pedronunesguth
@pedronunesguth Жыл бұрын
Could you provide the json for the Adaptive Card? I need one just like your and I've already lost 2 hours trying to get it right on the JSON formater. My god man...
@DeLucaGiulian
@DeLucaGiulian Жыл бұрын
{ "type": "AdaptiveCard", "$schema": "adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "body": [ { "type": "TextBlock", "text": "New Trip Requested @{triggerOutputs()?['body/Title']}", "wrap": true }, { "type": "TextBlock", "text": "Reason for travel @{triggerOutputs()?['body/ReasonForTravel']}", "wrap": true }, { "type": "TextBlock", "text": "Submitted by @{triggerOutputs()?['body/Requester/DisplayName']}", "wrap": true }, { "type": "TextBlock", "text": "Destination: @{triggerOutputs()?['body/Destination']}", "wrap": true }, { "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": "Open Request", "url": "@{triggerOutputs()?['body/{Link}']}" } ] }, { "type": "Input.Text", "placeholder": "Comments", "label": "Add the reason of your choice below:", "id": "_comments", "isRequired": true, "errorMessage": "The reason for the approval or rejection must be provided" }, { "type": "ActionSet", "actions": [ { "type": "Action.Submit", "title": "Approve", "id": "_approve", "data": { "Action": "Approved", "SPListItemID": "@{triggerOutputs()?['body/ID']}" }, "style": "positive" }, { "type": "Action.Submit", "title": "Reject", "id": "_reject", "style": "destructive", "data": { "Action": "Rejected", "SPListItemID": "@{triggerOutputs()?['body/ID']}" } }, { "type": "Action.ShowCard", "title": "Reassign", "card": { "type": "AdaptiveCard", "body": [ { "type": "Input.ChoiceSet", "id": "peoplepicker", "isRequired": true, "isMultiSelect": true, "label": "Select who to assign the approval to:", "errorMessage": "Select the user to reassign the workflow", "choices": [ { "title": "Custom Profile 1", "value": "Profile1" }, { "title": "Custom Profile 2", "value": "Profile2" } ], "choices.data": { "type": "Data.Query", "dataset": "graph.microsoft.com/users" } } ], "actions": [ { "type": "Action.Submit", "title": "Send", "data": { "Action": "Reassigned", "SPListItemID": "@{triggerOutputs()?['body/ID']}" } } ], "$schema": "adaptivecards.io/schemas/adaptive-card.json" } } ] } ], "id": "ac_travelrequest" }
@anjelotorres5967
@anjelotorres5967 Жыл бұрын
Can you send your JSON adaptive card here? all of it
@DeLucaGiulian
@DeLucaGiulian Жыл бұрын
{ "type": "AdaptiveCard", "$schema": "adaptivecards.io/schemas/adaptive-card.json", "version": "1.4", "body": [ { "type": "TextBlock", "text": "New Trip Requested @{triggerOutputs()?['body/Title']}", "wrap": true }, { "type": "TextBlock", "text": "Reason for travel @{triggerOutputs()?['body/ReasonForTravel']}", "wrap": true }, { "type": "TextBlock", "text": "Submitted by @{triggerOutputs()?['body/Requester/DisplayName']}", "wrap": true }, { "type": "TextBlock", "text": "Destination: @{triggerOutputs()?['body/Destination']}", "wrap": true }, { "type": "ActionSet", "actions": [ { "type": "Action.OpenUrl", "title": "Open Request", "url": "@{triggerOutputs()?['body/{Link}']}" } ] }, { "type": "Input.Text", "placeholder": "Comments", "label": "Add the reason of your choice below:", "id": "_comments", "isRequired": true, "errorMessage": "The reason for the approval or rejection must be provided" }, { "type": "ActionSet", "actions": [ { "type": "Action.Submit", "title": "Approve", "id": "_approve", "data": { "Action": "Approved", "SPListItemID": "@{triggerOutputs()?['body/ID']}" }, "style": "positive" }, { "type": "Action.Submit", "title": "Reject", "id": "_reject", "style": "destructive", "data": { "Action": "Rejected", "SPListItemID": "@{triggerOutputs()?['body/ID']}" } }, { "type": "Action.ShowCard", "title": "Reassign", "card": { "type": "AdaptiveCard", "body": [ { "type": "Input.ChoiceSet", "id": "peoplepicker", "isRequired": true, "isMultiSelect": true, "label": "Select who to assign the approval to:", "errorMessage": "Select the user to reassign the workflow", "choices": [ { "title": "Custom Profile 1", "value": "Profile1" }, { "title": "Custom Profile 2", "value": "Profile2" } ], "choices.data": { "type": "Data.Query", "dataset": "graph.microsoft.com/users" } } ], "actions": [ { "type": "Action.Submit", "title": "Send", "data": { "Action": "Reassigned", "SPListItemID": "@{triggerOutputs()?['body/ID']}" } } ], "$schema": "adaptivecards.io/schemas/adaptive-card.json" } } ] } ], "id": "ac_travelrequest" }
@anjelotorres5967
@anjelotorres5967 Жыл бұрын
@@DeLucaGiulian Can you provide also the work flow for Reassigned?
@dileshwarnirmlkar3394
@dileshwarnirmlkar3394 2 жыл бұрын
a
@simrankhan3375
@simrankhan3375 2 жыл бұрын
John
⚙️How to use Actionable Messages in Outlook with Power Automate
38:34
How to Manage Projects Like a Pro in Microsoft Teams
24:33
Bulb Digital
Рет қаралды 253 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
How to use Facilitator in Teams [Meeting AI Assistant]
12:37
Giuliano De Luca
Рет қаралды 1,6 М.
👤How to add a People Picker to an Adaptive Card
12:32
Giuliano De Luca
Рет қаралды 4,1 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН