0

Does anyone knows why when I use azure logic app in conjunction with an http API call I get the answer without a body only with the OUTPUTS option.

Download (Alt/Option + click)..

from Logic App : (no data)

enter image description here

from postman (work!)

enter image description here

I am trying to work with defender for cloud app API.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
  • The body is still there, you just can’t see it directly in the response pane. This can (typically) happen when the response isn’t strongly typed or the response is too large. Your situation looks a little different though. Not 100% sure. You can still use the body expression though, it will still work. – Skin Jul 15 '23 at 03:35
  • Thanks you Brian.... do you know how I can do what you suggest? – eduardo munizaga Jul 16 '23 at 18:27
  • Use the `body` expression, e.g. `body('HTTP')` ... https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#body – Skin Jul 17 '23 at 05:58

1 Answers1

0

Azure Logic App - HTTP Post API responds without body

I do agree with @Skin that this situation occurs when the response is Strongly Typed or if the response is too large that the Logic apps cannot show us in UI(Portal), but you can still use the properties of JSON as a body like below as body('HTTP'):

enter image description here

enter image description here

This type of situation occurs when we do not use correct filters on body. And I can also observe that there is a / missing at end of the URL in Logic app as compared to Postman.

RithwikBojja
  • 5,069
  • 2
  • 3
  • 7