0

In a if condition I tried to get a header value (secret key) I'am sending to the Logic App.

The following code is used to get the secret from the header (In this example i have parsed it before)

@body('Parse_Header_from_HTTP_Request')?['headers']?['Secret']

I have also tried the solution from this answered question: Azure Logic Apps : Get HTTP Request Header Key Value into Conditional Check

The variable is null if I check it on the Run History.

theface
  • 141
  • 14

1 Answers1

0

According to your description, I do not know how you parse your header before. Here I use Parse Json to achieve, you could refer to the screenshot as below:

enter image description here

After setting body('Parse_Json')?['name'] to get name value, the output is as below:

enter image description here

As you have said, you have parsed the header after http request. So, after parsing headers, the value is from parse_json, while you refer to the link you provided which value is from http request header.

Hope it helps you.

Joey Cai
  • 18,968
  • 1
  • 20
  • 30