cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mwinner
New Member

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
v-yamao-msft
Community Support
Community Support

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.

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

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,419)