Тёмный

⚙️How to use Actionable Messages in Outlook with Power Automate 

Giuliano De Luca
Подписаться 10 тыс.
Просмотров 20 тыс.
50% 1

In this video tutorial will see how to build and send Adaptive Cards Actionable Messages to Outlook using Power Automate.
I'll show you how to play with the user context in order to process properly every submission made using an Actionable Message in Outlook.
We'll start from scratch by creating a Device Self-Service Request to approve asset assignments, moreover, I'll demonstrate how it works an Actionable Message in Outlook for mobile.
🔗Where to create an Adaptive Card
adaptivecards.io/designer/
🔗Actionable Email Developer Dashboard for Developers (Generate the originator)
outlook.office.com/connectors...
🔗Actionable Email Developer Dashboard for Admins (Admin Approval)
outlook.office.com/connectors...
🔗Decode a Bearer Token
jwt.io
👇
🔔Don't forget to subscribe to my channel to stay tuned Subscribe: ru-vid.com...
👆
🎬More Videos:
-Microsoft Teams: • Microsoft Teams
-Microsoft SharePoint: • Microsoft SharePoint
-Microsoft 365: • Microsoft 365
-Azure: • Microsoft Azure
-PowerPoint: • Microsoft PowerPoint
-⚙Tools: • ⚙Tools
-Shorts: • Playlist
📺My RU-vid Channel:
/ giulianodeluca
🔗Let’s connect on social:
/ delucagiulian
/ delucagiuliano
/ delucagiulian
/ delucagiulian
/ delucagiulian
delucagiuliano.com
⏲Timestamps
0:00 Introduction
1:07 Demonstration of a New Device Self-Service Request with Actionable Messages
4:58 Actionable Message from a mobile perspective
5:25 Creating the first Power Automate flow that sends the Actionable Message
6:31 How to create an Adaptive Card Actionable Message
11:28 Actionable Message autoInvokeAction to refresh the Adaptive Card
12:53 Actionable Message Originator
14:11 Sending the Actionable Message and completing the flow
19:00 How to register an Actionable Message (Getting the originator)
22:25 How to approve an Actionable Message registration (Admin Approval)
23:07 Adding the originator to the first flow
23:28 Building the flow HTTP trigger to process the Actionable Message
24:32 How to get the current user that is interacting on the Actionable Message
27:24 Building the business logic of the second flow to process the Actionable Message
38:20 Conclusion
#GiulianoDeLuca #DeLuca

Наука

Опубликовано:

 

31 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 59   
@paulclifford-jones5960
@paulclifford-jones5960 22 дня назад
Very comprehensive and well presented. Excellent.
@DeLucaGiulian
@DeLucaGiulian 22 дня назад
@@paulclifford-jones5960 Thank you, I'm honored
@nenath08
@nenath08 9 месяцев назад
Thanks a lot for the video, I couldnt find a way to approve actionable message registration. thanks to you i found the link to log in as admin
@Mike-uz3kn
@Mike-uz3kn Год назад
This is fantastic. Thank you!
@DeLucaGiulian
@DeLucaGiulian Год назад
Thanks Mike 😉
@titahaver6290
@titahaver6290 Год назад
really helpful. Thanks 😊
@dayanaaj1279
@dayanaaj1279 Год назад
Hi, thank you for this tutorial. I have managed to follow each steps successfully except for the CARD-UPDATE-IN-BODY. The run in Power Automate shows that it is successfully executed but on outlook the actionable message is not refreshed and it gives me error "Something went wrong. Please try again later". I'm using version 1.0. Any ideas?
@user-lk3xc5mt4n
@user-lk3xc5mt4n 2 месяца назад
Thank you very much. Sub element is what I was after and couldn't find it anywhere.
@DeLucaGiulian
@DeLucaGiulian 2 месяца назад
Thank you for taking the time to watch the video.
@markokrstanovic8476
@markokrstanovic8476 8 месяцев назад
Hi Giuliano, Message works perfectly for me, but i have an a problem with other users. I've created test user group for this with 3 of my colleagues and as a sender, I've added our Admin account. When actionable message arrives, we all can see the message, but only mine and Admin account actually send HTTP request,. For other users there is an error: The action could not be completed. I've tried Client and Web, I've tried put other colleagues, I've registered new originators. But still same problem, and i don't know where to look anymore. Thanks!
@anggamuhammadfirsyah131
@anggamuhammadfirsyah131 3 месяца назад
Thanks for the video, but how come you can use adaptive card version 1.3 for outlook actionable messages? As far as I know, actionable messages only support adaptive cards v 1.0
@DeLucaGiulian
@DeLucaGiulian 3 месяца назад
Hi, Thanks for watching 😉. Outlook actionable message supports the schema version v1.4
@RobFahndrich1
@RobFahndrich1 Год назад
Good video! Can you tell me will this process work if we are sending the emails to users outside our organization?
@DeLucaGiulian
@DeLucaGiulian Год назад
Thanks for watching 😉. It will work only with Microsoft 365 or Outlook.com mailboxes.
@paultobiloba8998
@paultobiloba8998 2 месяца назад
Hi Giuliano, I have an issue with the submit button (Action.Http). I keep getting the following error: "The remote endpoint returned an error (HTTP '502'). Please try again later." when i try to submit the actionable message. This is the error returned on the flow: Unable to process template language expressions in action 'Decode_Auth_Bearer_Payload' inputs at line '0' and column '0': 'The template language function 'decodeBase64' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'.
@DeLucaGiulian
@DeLucaGiulian 2 месяца назад
Hi, Try to replace the string that you have in step 'Decode_Auth_Bearer_Payload' with this one: decodeBase64(concat(split(replace(triggerOutputs()['headers']?['Action-Authorization'], 'Bearer ', ''), '.')?[1], '=='))
@VirajChokhany
@VirajChokhany Год назад
Hi, I had few questions. What happens if the first approver opens the email and closes it without performing any action ? Will autoinvoke say that the request is approved/rejected? And if yes, how to prevent such scenarios ?
@DeLucaGiulian
@DeLucaGiulian Год назад
Hi, Thank you for your question. In order to handle this use case along with the autoinvoke request you should send the id of the SharePoint list item for instance. In this way, in your Logic App or Power Automate flow, you can check the current status of your request by querying the SharePoint list. If the status is not approved or rejected, you have to send back a response with HTTP status 200 and enough. I hope it's clear.
@VirajChokhany
@VirajChokhany Год назад
@@DeLucaGiulian this is the condition which is handled in the first switch case in the example power flow… is that right ? So if I’m correct, the actionable message not refreshing on simply opening is handled here as well , right ?
@DeLucaGiulian
@DeLucaGiulian Год назад
Yes exactly 👍 The actionable message won't refresh
@VirajChokhany
@VirajChokhany Год назад
@@DeLucaGiulian Thank You so much for clarifying my doubts
@DeLucaGiulian
@DeLucaGiulian Год назад
Thanks to you for watching and asking
@guillermodimas9183
@guillermodimas9183 Год назад
Works fine for me in outlook from the browser but I'm getting an error when submitting when using mobile outlook app and windows outlook app. Says "Something Went Wrong" even though on power automate it shows that it completed just fine. Any ideas?
@DeLucaGiulian
@DeLucaGiulian Год назад
Hi, Maybe for some reason the response doesn't land correctly in the Outlook App. Could you try to downgrade the version of your adaptive card. For example if you have version 1.3 you can try with lower versions 1.2 or 1.1
@guillermodimas9183
@guillermodimas9183 Год назад
@@DeLucaGiulian that was it, thank you! Subscribed 👍
@DeLucaGiulian
@DeLucaGiulian Год назад
Thanks 🙏
@DroneEyes
@DroneEyes Год назад
could you share the code you used on the active card?
@DeLucaGiulian
@DeLucaGiulian Год назад
Hi, Here you can find the Actionable Message sample that I used: github.com/giuleon/ActionableMessage/blob/main/ActionableMessage.json Thank you for your interest
@bgcreationsrhythm2881
@bgcreationsrhythm2881 5 месяцев назад
Is it possible to use this method to send adaptive card to webex as well?
@DeLucaGiulian
@DeLucaGiulian 5 месяцев назад
Hi, Yes you can send the adaptive card for webex check this out: developer.webex.com/buttons-and-cards-designer
@milidoshi6832
@milidoshi6832 3 месяца назад
09:40 - where can I find the code for POST URL and Body?
@DeLucaGiulian
@DeLucaGiulian 3 месяца назад
There you go: { "type": "Action.Http", "title": "Submit", "method": "POST", "url": "prod-70.westeurope.logic.azure.com:443/workflows/9956605329af451790e5e5a8da19d196/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=3o-VCGgh8uemBKHg3bL7vp7YfXsonr9aK-vHCQokOD4", "body": "{\"Option\": \"{{Options.value}}\", \"Comments\": \"{{Comments.value}}\",\"ac_id\": \"@{triggerOutputs()?['body/ID']}\"}", "headers": [ { "name": "Authorization", "value": "" }, { "name": "Content-Type", "value": "application/json" } ] } You can create this code in the adaptive card designer: www.adaptivecards.io/designer/
@wildchangjr.8998
@wildchangjr.8998 Год назад
Action.HTTP no longer exists on adaptive card designer. What do we do?
@DeLucaGiulian
@DeLucaGiulian Год назад
Hi, In the adaptive card designer set Outlook Actionable Messages in the field Select host app and you'll be able to add an Action.Http button
@wildchangjr.8998
@wildchangjr.8998 Год назад
@@DeLucaGiulian Thank you. I found it. The problem I am having rn is that the action.http button does not show up in the outlook email, even though I added it in the adaptive card designer format. Am I missing something or is it just a bug? I also included an id and an originator as demonstrated in the video, but no luck. Any suggestions?
@DeLucaGiulian
@DeLucaGiulian Год назад
If you are sure that you added the actionable message in the Actionable Email Developer Dashboard (where you get the originator ID), next thing to do is trying to decrease the version of your adaptive card which is probably not compatible with your outlook version. One quick question you have the same behavior in Outlook for web?
@wildchangjr.8998
@wildchangjr.8998 Год назад
@@DeLucaGiulian what do you mean by behavior?
@DeLucaGiulian
@DeLucaGiulian Год назад
That the button doesn't show up
@arjanterheegde
@arjanterheegde 7 месяцев назад
decodeBase64(split(replace(triggerOutputs()['headers']?['Action-Authorization'], 'Bearer ', ''), '.')?[1]) gives the following error: Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': 'The template language function 'decodeBase64' was invoked with a parameter that is not valid. The value cannot be decoded from base64 representation.'. Is there a solution for this error?
@DeLucaGiulian
@DeLucaGiulian 7 месяцев назад
decodeBase64(split(replace(triggerOutputs()['headers']?['Action-Authorization'], 'Bearer ', ''), '.')?[1]) This one works fine for me, have you tried in another environment?
@arjanterheegde
@arjanterheegde 7 месяцев назад
@@DeLucaGiulian That code didn't work, i didn't try another environment. The solution for me was using this code in a Initialize variable: @{json(if( equals(mod(length(split(variables('JWT Code'),'.')[1]),4),0), decodeBase64(split(variables('JWT Code'),'.')[1]), decodeBase64(concat(split(variables('JWT Code'),'.')[1],take('===',sub(4,mod(length(split(variables('JWT Code'),'.')[1]),4))))) ))} JWT Code: @{replace(triggerOutputs()['headers']?['Action-Authorization'], 'Bearer ', '')}
@DeLucaGiulian
@DeLucaGiulian 7 месяцев назад
@@arjanterheegde the error that you get comes from a compose action?
@arjanterheegde
@arjanterheegde 7 месяцев назад
@@DeLucaGiulian Yes!
@DeLucaGiulian
@DeLucaGiulian 7 месяцев назад
Strange that you get this error but in any case you found a workaround
@freddyparedes6917
@freddyparedes6917 Год назад
When I try to send another user the message is blank
@DeLucaGiulian
@DeLucaGiulian Год назад
Hi, Have you tried to open the message in Outlook for web? It sounds that the version that you specified in the JSON of your adaptive card is not yet supported in your Outlook client, you can try to downgrade the version and send the message again. For instance, if you have "version": "1.4" you can modify it in this way "version": "1.3"
@syedgazanfar7795
@syedgazanfar7795 4 месяца назад
Can we use power automate approval instead of this approach???
@DeLucaGiulian
@DeLucaGiulian 4 месяца назад
Yes sure
@syedgazanfar7795
@syedgazanfar7795 4 месяца назад
Thanks for your quick reply, One more question 😊 how can we make approver comments required when we use power automate approval
@DeLucaGiulian
@DeLucaGiulian 4 месяца назад
@@syedgazanfar7795 you can do it mandatory with adaptive cards but in classic approvals approach is not available, that means putting a loop in order to check if the comment is added otherwise asking again to the user
@syedgazanfar7795
@syedgazanfar7795 4 месяца назад
I will use this method then thank you so much for this great video I really appreciate your quick response.
@michaeldjjohnson
@michaeldjjohnson 4 месяца назад
Good day to you Giuliano, I have been trying to reach you on social networks. Apologises for my approach. I am I have been following your tutorial called "How to use Actionable Messages in Outlook with Power Automate" and I am stuck. Would you be able to help me? I am willing to pay for your services. Please let me know if this is workable with you. Regards Michael
@DeLucaGiulian
@DeLucaGiulian 3 месяца назад
replied on linkedin
Далее
Ouch.. 🤕
00:30
Просмотров 12 млн
How to Send Recurring Emails in Outlook
7:22
Просмотров 103 тыс.
Actionable Messages step-by-step
24:35
Просмотров 28 тыс.
Telefonu Parçaladım!😱
0:16
Просмотров 29 млн
How to Soldering wire in Factory ?
0:10
Просмотров 7 млн