I am building a workflow that retrieves a list of IDs (strings) from a database and then queries those IDs via an API call. That seems straight forward enough and I have confirmed that my API call via the Download tool is connecting and authenticating as desired. The part I am stuck on is that the method for the API call is POST with the parameters in the message body which takes the form of arrays.
{
"datasets": [ "public-global-fishing-events:latest", "public-global-encounter-events:latest" ],
"startDate": "2017-01-01",
"endDate": "2017-01-31",
"vessels": [ "XXXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ]
} The first three items are static data that I would like to enter as constants (but don't know how to tell Alteryx to encode datasets as an array.
The fourth is a single value but still needs to be encoded as an array.
I have found other posts related to this that recommend using the JSON Create tool (which I downloaded and have available) but I don't know if it is actually pertinent to what I am trying to accomplish here.
Apologies for any vagueness, I am still quite new to the Alteryx community and tool.