How to use Action.HTTP and autoInvokeAction in Actionable Messages

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • Learn how to use Action.HTTP (for GET and POST requests) and autoInvokeAction (triggered when a message is opened) in Actionable Messages, in Outlook.
    Actionable Messages step-by-step: • Actionable Messages st...
    Action.HTTP docs: docs.microsoft.com/en-us/outl...
    autoInvokeAction docs: docs.microsoft.com/en-us/outl...
    Chapters:
    0:00 Intro
    1:48 Action.HTTP
    5:35 Handle responses from Actionable Message
    7:40 Action.HTTP demo
    10:20 autoInvokeAction
    13:40 autoInvokeAction demo
    15:20 Timeouts in actions
    20:20 Wrap up!

Komentáře • 25

  • @zachariahbauer6576
    @zachariahbauer6576 Před rokem

    This video is full of great information. Thanks for sharing

  • @samyboumangock4725
    @samyboumangock4725 Před 8 měsíci

    Hello Tomasz,
    Regarding Outlook Actionable Message (ver 1.4+) and Power Automate, the Universal Action Model recommends to depart from Action.Http and use Action.Execute instead. However it is unclear how to achieve the same result as Action.Http given that Action.Execute does not allow for POST requests to specific URLs. What would be your suggestion? Thanks

    • @TomaszPoszytek
      @TomaszPoszytek  Před 7 měsíci

      Action.Execute requires a bot that processes all the requests. So anytime this action is triggered, data is sent to bot.

  • @stevenverne7594
    @stevenverne7594 Před 7 měsíci

    How do I know the AutoInvokeAction was processed by the Power Automate flow? It does not appear in the Run log.

    • @TomaszPoszytek
      @TomaszPoszytek  Před 6 měsíci

      If the action is triggered from Actionable Message then a flow (if it triggers a flow) will start.

  • @bradhorton89
    @bradhorton89 Před 2 lety

    Hi Tomasz. I'm struggling to implement this. When I send an actionable message to multiple recipients each user is able to click the button even when someone else already has clicked it.
    I'm sending a response to update the card body which works for the user who clicked the button, just not everyone.
    I was wondering what you have in the response body for response 3 if your flow where it is an autoInvoke request?
    Thanks in advance.

    • @TomaszPoszytek
      @TomaszPoszytek  Před 2 lety +1

      Hi, as you noticed in the video, I am using cloud flows to handle the "auto invoke" activity. The flow checks if the action that AC should perform is already done, and if yes - it sends as a response code of a new Actionable Message, however with all fields and submit buttons removed. And that works for any user.

  • @VirajChokhany
    @VirajChokhany Před rokem

    Hello Tomasz,
    I have a scenario where an approval email is sent to multiple approvers. I want the first approver to make a decision and then the subsequent approvers should see an updated card. With CARD-UPDATE-IN-BODY , the card only refreshes for the user who performs the action and not all recipients of the mail. Using auto invoke is updating the email for the first approver as well without them performing an action.
    Any suggestions how to handle this ?

    • @TomaszPoszytek
      @TomaszPoszytek  Před rokem

      Yes, autoInvoke is the solution. It works everytime a card is opened.

  • @subhashchandrasamanchi2896
    @subhashchandrasamanchi2896 Před 11 měsíci

    Hey Tomasz,
    I have a issue using Action.Http for the button to call a logic app trigger. When I use Action.http, the button itself is not appearing in the outlook email. Can you suggest any better approach on this, please? Thanks

    • @TomaszPoszytek
      @TomaszPoszytek  Před 11 měsíci

      I would check the JSON of the card. Maybe it is having errors? Hard to say.

  • @hiren280687
    @hiren280687 Před rokem

    Hi Tomasz,
    I have used "Action.Http" with registered provider, it will call power automate webhook and respond card back, which then updates outlook email to show feedback (200). webhook takes less then second.
    It all works fine in outlook online. but it doesn't work in outlook desktop for Windows, I am using latest 365 outlook and Windows 11. It works fine until showing initial card but when showing feedback it errors says "something went wrong. please try again later". however when I reopen that email it has feedback card already there now. but at the time of submit and invoking Http request, it doesn't show up.
    looks strange issue to me. any ideas would be welcome.

    • @TomaszPoszytek
      @TomaszPoszytek  Před rokem

      Seems strange indeed. I would blame the client, although I don't really know the core reason. Maybe installed plugins? Or some network problem?

  • @peterpetrou1904
    @peterpetrou1904 Před rokem

    Hello Tomasz, thank you for a very interesting video. I have updated my actionable message with the AutoInvokeAction section as you described, but when I open the email as test user 1 straight away, the response message is returned. I don't even get time to fill in the actionable message and click on Submit before the return message is returned. One user would be able to fill in the form and submit it; any other corresponding users would see this completed message when they access the actionable message. Can you please provide some guidance? Thank you

    • @TomaszPoszytek
      @TomaszPoszytek  Před rokem

      Maybe the process you're calling with autoInvoke does not check if other user has completed action in card and always, when called, is returning new Adaptive Card. If yes, this is the reason your card is replaced immediately after being opened.

    • @zachariahbauer6576
      @zachariahbauer6576 Před rokem

      are you describing an infinite loop?

  • @yashwantsinghwaskel2475
    @yashwantsinghwaskel2475 Před 4 měsíci

    Hi Tomasz,
    I am facing a problem with my adaptive card. I am getting 'Something went wrong. Please try again' error on first click. On again, clicking it immediately gets successful. This leads to triggering of my flow twice. How to fix this timeout error?

    • @TomaszPoszytek
      @TomaszPoszytek  Před 4 měsíci

      If this is a timeout error think how you can assure the response from flow comes faster.

  • @RealCeilings-qk1im
    @RealCeilings-qk1im Před 2 měsíci

    Hi Tomasz,
    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

    • @TomaszPoszytek
      @TomaszPoszytek  Před 2 měsíci

      Check the payload if it’s a valid json. Maybe it contains unescaped characters.

  • @krisa3398
    @krisa3398 Před 2 lety

    Hi Tomasz
    I added the autoinvoke method to my JSON but when I try to capture the output to be autoinvoke my http listener is not picking up the outcome as autoinvoke.
    Please help.
    Thank you.

    • @TomaszPoszytek
      @TomaszPoszytek  Před 2 lety

      Is your listener receiving requests once a message is opened?

    • @krisa3398
      @krisa3398 Před 2 lety

      @@TomaszPoszytek I don't think the http listener triggers when the message is opened. It only triggers once the buttons in the adaptive card email as pushed.

    • @TomaszPoszytek
      @TomaszPoszytek  Před 2 lety

      @@krisa3398 the only thing that comes to my mind is that there's something wrong in autoInvoke configuration, that prevents it to be fired. Maybe the request body which is being sent is not parsed as a valid JSON?