External Collecting Response Correct but says ERROR

When attempting to use an API and a second results key, the test result response shows that its working correctly but it still says theres an error occuring.

t

RESPONSE:

{
“code”: 200,
“result”: [
{
“name”: “Andorra”,
“code”: “AD”,
“states”: null
},
{
“name”: “United Arab Emirates”,
“code”: “AE”,
“states”: null
},
{
“name”: “Afghanistan”,
“code”: “AF”,
“states”: null
},
{
“name”: “Antigua and Barbuda”,
“code”: “AG”,
“states”: null
},
{
“name”: “Anguilla”,
“code”: “AI”,
“states”: null
},
{
“name”: “Albania”,
“code”: “AL”,
“states”: null
},
{
“name”: “Armenia”,
“code”: “AM”,
“states”: null
},
{
“name”: “Netherlands Antilles”,
“code”: “AN”,
“states”: null
},
{
“name”: “Angola”,
“code”: “AO”,
“states”: null
},
{
“name”: “Antarctica”,
“code”: “AQ”,
“states”: null
},
{
“name”: “Argentina”,
“code”: “AR”,
“states”: null
},
{
“name”: “American Samoa”,
“code”: “AS”,
“states”: null
},
{
“name”: “Austria”,
“code”: “AT”,
“states”: null
},
{
“name”: “Australia”,
“code”: “AU”,
“states”: [
{
“code”: “ACT”,
“name”: “Australian Capital Territory”
},
{
“code”: “NSW”,
“name”: “New South Wales”
},
{
“code”: “NT”,
“name”: “Northern Territory”
},
{
“code”: “QLD”,
“name”: “Queensland”
},
{

Hi @shirtify

I believe you don’t need to specify the second key use the first key only where you have to put result

Thanks

I thought so to but I can only access the country code and country name. A state name column was also auto created but it caused some where glitch where it was just [object, object] repeating over and over and there was no state code column

Man, I have been playing around with printful’s API for awhile too. Quite a time-consuming task. :sweat_smile:

I am close to that step here soon where I’m adding the countries and states for tax calculations.

There are similar areas where you need to grab a value of an array within the array and Adalo’s api is not capable of grabbing a child array’s data, it only grabs the first set of data in the child array.

You’ll need to use Integromat to make it happen.

For example: When creating the API call that adds the products to Adalo from Printful, we cannot grab all of the product’s individual variation numbers. So when a product is created in Printful, we send the data into Integramat which we can use the iterator flow control module to read and create the variations.