cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
benedict
Regular Visitor

HTTP Request - Body is Missing

I'm trying to create an item in a SharePoint list from an Actionable MessageCard in Teams.:

 

messagecard.png

 

 

 

 

 

 

 

 

 

I generate the MessageCard using this Flow:

 

flows.png

 

 

This is the body of the request:

 

{
  "originator""a22s3ab5-25be-4fd7-b8kd-2708hj6k9d3f",
  "summary""Test",
  "title""How are you feeling right now?",
  "text""We would like to hear from you",
  "themeColor""FFFD00",
  "sections": [
    {
      "potentialAction": [
        {
          "name""Good",
          "target""https://prod-04.southeastasia.logic.azure.com:443/workflows/f7efa86eb1b8414990ef42fcc38d812c/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=Yiqc3upzx7mi4j_tZHcraeuV2Sxw_WAzTRkIALdN0YQ",
          "headers": [
            {
              "name""Authorization",
              "value"""
            }
          ],
          "@type""HttpPOST"
        },
        {
          "name""Bad",
          "target""https://prod-02.southeastasia.logic.azure.com:443/workflows/17067a53ec2140f3a4b0835154ad2d48/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=fjHMx0gTbFLK6RX8IKUa9R0mPxhWLFHiOM22pGCAmQ",
          "headers": [
            {
              "name""Authorization",
              "value"""
            }
          ],
          "@type""HttpPOST"
        }
      ]
    }
  ],
  "@type""MessageCard",
  "@context""http://schema.org/extensions"
}

 

So when I click on the buttons I trigger a separate Flow, depending on which button I click.

 

HTTP - Request.png

CreateItem.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  

The problem is all the dynamic values that should come from the request body are null and the SharePoint list item is just a blank row.

 

When I look at the output of the "When an HTTP request is received" trigger, I get only the Headers.

 

 

Output.png

 

 

I tried using Postman to send the same request and I got this result.

 

postman.png

 

 

 

The generated SharePoint list item when using Postman then has at least the summary and title fields with values.

 

 

What I want to do is to get the "When an HTTP request is received" Flow to read the request body. How do I fix this? Thanks in advance. Smiley Happy

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @benedict,

 

It seems that you are using the trigger When a HTTP request is received in your flow.

 

Here is a doc on Request HTTP trigger, please check it for a reference:

https://docs.microsoft.com/en-us/azure/connectors/connectors-native-reqres

 

In addition, hope the following doc could be your help:

https://flow.microsoft.com/fr-fr/blog/call-flow-restapi/

 

 

Best regards,

Mabel Mao

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.

View solution in original post

2 REPLIES 2
v-yamao-msft
Community Support
Community Support

Hi @benedict,

 

It seems that you are using the trigger When a HTTP request is received in your flow.

 

Here is a doc on Request HTTP trigger, please check it for a reference:

https://docs.microsoft.com/en-us/azure/connectors/connectors-native-reqres

 

In addition, hope the following doc could be your help:

https://flow.microsoft.com/fr-fr/blog/call-flow-restapi/

 

 

Best regards,

Mabel Mao

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.
GabrielStJohn
Community Champion
Community Champion

Hello, @benedict!

Thank you for posting on the Flow Community Forum! Have you had an opportunity to apply @v-yamao-msft's recommendation to adapt your Flow? If yes, and you find that solution to be satisfactory, please go ahead and click “Accept as Solution” so that this thread will be marked for other users to easily identify!

Thank you for being an active member of the Flow Community!

-Gabriel
Flow Community Manager

- Gabriel
Community Manager
Power Automate | Power Virtual Agents
Super User Program Manager



Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (1,184)