cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mwinner
Level: Powered On

E-mail > Teams Post > Acknowledge > Flow > Push

To outline what is happening (or what I want to):

  1. E-mail is received in folder
  2. Flow posts message card to specific channel in Teams
  3. Card has an action button that is used to alert management it was picked up
  4. Acknolwedgement is sent back to flow
  5. Communication sent back in some platform, e.g., text, e-mail or push.

 

I've got the 1, 2, and 5 setup, but struggling on 3. I tried doing an HTTP Post back to Flow's URL, but I get an "HTTP Unauthorized" error. How can I overcome this, and is it possible to simply have an action button that captures the user's name that clicks it to be sent off with the HTTP Post?

 

Here's my JSON so far with some elements stripped out:

 

{
"@type": "ActionCard",
"@context": "http://schema.org/extensions",
"themeColor": "0076D7",
"summary": "New Critical Case Submitted to Group",
"sections": [
{
"activityTitle": "New Critical Case Submitted to Group",
"activitySubtitle": "Please reply to @Support (O365 Group) when you've assigned yourself the case",
"activityImage": "IMAGE",
"facts": [
{
"name": "Subject:",
"value": "Test"
},
{
"name": "Details: ",
"value": "Test2"
}
],
"markdown": true
}
],
"potentialAction": [
{
"@type": "ActionCard",
"name": "I got it",
"inputs": [
{
"@type": "TextInput",
"id": "assigneeName",
"title": "Enter Your Name"
}
],
"actions": [
{
"@type": "HttpPOST",
"name": "OK",
"target": "FLOWURL"
}
]
}
]
}

3 REPLIES 3
Community Support Team
Community Support Team

Re: E-mail > Teams Post > Acknowledge > Flow > Push

Hi @mwinner,

 

The HTTP unauthorized client error status response code indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.

Please make sure your JSON contains required elements.

Besides, please check the following blog on how to fix unauthorized error at here:

https://airbrake.io/blog/http-errors/401-unauthorized-error

 

Best regards,

Mabel

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mwinner
Level: Powered On

Re: E-mail > Teams Post > Acknowledge > Flow > Push

I can make the same call with Postman without issue, but Teams fails. What exactly am I missing in my JSON?

mwinner
Level: Powered On

Re: E-mail > Teams Post > Acknowledge > Flow > Push

@v-yamao-msft Any input on my previous ask?

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 69 members 3,645 guests
Please welcome our newest community members: