kevin4
December 24, 2020, 9:39pm
1
I’m trying to define an API Connector call for a call that requires an array of email addresses as input.
I don’t understand the syntax. I’ve seen from other forum threads that I do this using the Body (JSON object) section of the API Call definition rather than by adding a parameter, as parameters can not be arrays.
However, my trial and error for various syntax is not finding syntax that works.
Here is my current static definition. I’ll paramaterize it after I get it working with static values, which is my current hurdle.
And this is what Initialize call returns:
If you know the syntax to make this work, or another way of making this work, please share.
Add a header Content-Type with the value application/json
2 Likes
kevin4
December 25, 2020, 5:51am
4
Can you please be a little more specific about the syntax.
I tried this, and it generates a different error message:
Your Header is correct your Syntax is correct. Try deleting that api call and build a new one exactly the same and try to initialize it.
I have received this error in the past and by deleting the api call all together and recreating it fixed the issue for me.
kevin4
December 25, 2020, 5:55am
6
That did the trick! Thank you very much.
kevin4
December 25, 2020, 5:58am
7
Next… How do I transition from the static array of email addresses I entered to the use of dynamic values.
I’m concerned that when I edit the Body to use the <> syntax to switch to dynamic values, the API call will need to be reinitialized, but won’t.
kevin4
December 25, 2020, 3:10pm
8
FYI. I figured this out. It wasn’t as weird as I thought it might be.
1 Like
kevin4
December 25, 2020, 8:59pm
9
For anyone who stumbles across this thread, the next problem I encountered in getting this API Call to work is documented in a different forum thread:
This is going to be kind of a long one, so please bear with me.
I’ve defined an API call using the API Connector. When I initialize it, I see that data is returned. However, when I use it as a workflow action, it seems that no data is returned.
I am not seeing what I’m doing wrong.
The API Call definition is below:
[image]
The “Reinitialize call” returns data:
[image]
Notice in the above screen shot that the returned data uses the email address being verified as part of the field …