Building a simple webhook relay

Hi,

I’m trying to create a simple HTTP GET relay, and I’m having a bit of a challenge.

Here is the flow I want:

I’m stuck at the second item. MyApp sends a variable number of parameters and I’m not exactly sure how to pull them all and send them to the remote server.

As an initial version, I’m testing with a fixed number of parameters and I set my querystring like this:

param1={{1.param1}}&param2={{1.param2}}&param3={{2.param3}}

  1. is my webhook
  2. is setvariable (which I can probably eliminate, I think and just hard-cod param3)

When I test, I get this error:

BundleValidationError

Validation failed for 1 parameter(s).

  • Array of objects expected in parameter ‘qs’.

Any idea what I’m not understanding?

Thanks,

L

P.S. As I send this, I will change the query string to not use a map but just add the key/value pairs (the default mode). I’m thinking that may be the problem.

Follow-up: I made it work by adding all the possible parameters in the query. It’s not the most efficient, I think, but it got me over the first hurdle. If there is a more generic approach, I’m still interested.

2 Likes