cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (19,787)