title: Get PHP response into Zapier webhook
body: <p>I am connecting PipeDrive with Post Affiliate Pro (with it's API) and am using Zapier webhooks (POST). Therefore I use PHP scripts on my server in which I talk to Post Affiliate Pro. So I have variables in my PHP script which I need to return in order to use them in another webhook/or general action step. In Zapier the only variable I get when testing the step is a String with my response message (and whatever variable I put in there). But I need to get all variables on their own (I guess all in a JSON).</p>
  
  <p>So my question is: How can I return variables in an HTTP POST request to make them available (in the dropdown list?) in Zapier to use them in the next webhook?</p>
  
  <p>At the moment I have something like this:</p>
  
  <pre><code>if ($result-&gt;isError()) {
   echo 'Error: '.$result-&gt;getErrorMessage();
  } else {
   //echo 'Ok: '.$result-&gt;getInfoMessage();
   echo json_encode($orderID);
  </code></pre>
  
  <p>I am using 'echo' but I've also tried to use 'return' which didn't lead to any results. I've also tried to use json_encode to return a JSON but without luck. Or do I even need to use another Zapier step? Or am I not able to return values with a POST webhook at all? Do I need to use a "Catch Hook" webhook? I am completely new to Zapier and PHP.</p>
  
  <p><a href="https://i.stack.imgur.com/i89DR.png" rel="nofollow noreferrer">Image shows just two Strings ('Text' &amp; 'Text Transaktion') available in Zapier but no other variables</a></p>
  
  <p>Thanks for your help!</p>