Announcement

Collapse
No announcement yet.

Store Http response status in custom metadata

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Store Http response status in custom metadata

    Hi,

    I am trying to store Http response status in custom metadata without luck. Here's my configuration (see screenshot attached). If I put default value, it always stores as default value. Which means the custom metadata was defined correctly. Thank you.
    Attached Files

  • #2
    I am not sure I understand your question.

    If your question is "I have an HTTP Sender and I am calling an endpoint and I would like the response status stored to then be available for metadata inclusion" then:

    1) Your response transformer won't fire every time unless it is set its data type to RAW.
    2) The response (like "HTTP/1.1 200 OK") is reference-able with
    Code:
    $('responseStatusLine')
    e.g. (transformer type "javascript" for this)

    Code:
    $c('thisVariableHasTheStatusCode',$('responseStatusLine'))
    Then you can add "thisVariableHasTheStatusCode" to metadata.
    Mirth 3.8.0 / PostgreSQL 11 / Ubuntu 18.04
    Diridium Technologies, Inc.
    https://diridium.com

    Comment


    • #3
      getting $('responseStatusLine') in Javascript helps! Thank you!
      I was trying to do in the mapper....

      Comment

      Working...
      X