Unfortunately due to security requirements I need to use Generic APIs.
I cannot find a way to retrieve separate multiple records in a response payload.
My base object is of the type of records I want to retrieve.
I cannot get round these strange inline wrappers being added to everything and therefore I’m getting coma separated values in the output not individual records with properties as I would normally.
What’s the deal here ?
Thanks
Haydn
This format is definitely not going to work
How would you like the data returned? As an array? e.g
{
"data": [
{
"unique_id": 299161
},
{
"unique_id": 299271
},
{
"unique_id": 299347
},
{
"unique_id": 299383
}
]
}
Then you need to supply a response template. If you are wanting a list of “unique_id” properties from the base object then instead of dragging over “unique_id” scroll down the right hand pannel and click “+” in templates.
Add the following to the template:
{
"unique_id": <<unique_id>>
}
Dragging and dropping the “unique_id” property instead of “<<unique_id>>”.
Now save this template and drop it into the original response:
{
"data": [<<drop template here>>]
}
That should hopefully achieve what you want
1 Like
Neil,
Thanks for your response - guess ill continue to play around for a bit then with my syntax.
Pretty much after your first example.
Thanks
Haydn
Yes excellent - just hadn’t quite got my syntax correct.
Thanks again Neil.