Dynamic list in payload of API call?

When defining calls in the plugin API tab (or the API Connector), is there a way to pass a dynamic list as a parameter in a POST request? It appears not, but I want to make sure I’m not overlooking something. A static list is straightforward, but it seems a dynamic list is just not possible.

I realize I can implement a SSA to do this (in fact, I’ve already done it), but I’d prefer to use the built-in API capabilities if possible.

Thanks for any info or insights.


How is the list suppose to look like? 8s it a simple array or an array of objects?

Thanks for the reply, @AliFarahat.

It’s not a simple array. There’s some object nesting involved, but that’s not really the issue, as I can “hardcode” the list as a specific number of items, and it works fine.

I was hoping that I was overlooking some way to dynamically generate the request body itself (or at least entire parameters) and not just the value of specific parameters.

I guess it really comes down to the ability to dynamically generate parameter names as well as values, and that doesn’t seem possible…unless you know of a trick? :crossed_fingers:

EDIT: I neglected to mention that the body is form-encoded - not JSON.

Holy mother bear! It seems you CAN in fact make the param names dynamic!! I had never actually tried it and was assuming it wouldn’t work! I need to actually test a call, though, to try it out. This is encouraging! I’ll report back! :crossed_fingers: :smiley:

EDIT: Actually, what I really need is to dynamically generate the entire list of name/value pairs, but this just might work. More to come after some testing…

1 Like

Indeed I was!

And I got it!

Here’s my follow-up.