Forum Discussion

AndrewPatricio1's avatar
AndrewPatricio1
Qrew Member
12 months ago

webhook pipeline headers

I created a webhook pipeline endpoint (for use with paypal payflow link silent post to get me the results of a successful transaction).   I am trying to capture the headers of the incoming request but putting "{{a.headers}}" is not working, presumably because it's an actual array.  I want to loop through the headers, concat them into one string, and paste that into a text field when I call create record.    How do I do this?



------------------------------
Andrew Patricio
------------------------------

2 Replies

  • DougHenning1's avatar
    DougHenning1
    Community Manager

    You can combine the headers into a string with:  {{ a.headers | join(",") }}



    ------------------------------
    Doug Henning
    ------------------------------
    • AndrewPatricio1's avatar
      AndrewPatricio1
      Qrew Member

      Thanks!  That didn't quite work because it just gave me "none, none, none..." but it pointed me down the right track.  Here's what I ended up doing:
      {% for h in a.headers %}
               name: {{h.name}}, value {{h.value}} --
               {% endfor %}



      ------------------------------
      Andrew Patricio
      ------------------------------