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.