Invalid API Response: - Got a result missing the "id" property
Hello!
I am having trouble with getting data from a GET call for an array related to lists in an email platform. I am not sure if the array if formatted properly causing the issue.
Here is the error:
Invalid API Response: - Got a result missing the "id" property ({"ListID":19962972,"Name":"Hank Only Test List","Description":"Hank","ActiveMembers":5,"IsActive":true,"Links":k]}) What happened (You are seeing this because you are an admin): Executing triggers.retrieve_lists.operation.perform with bundle Invalid API Response: - Got a result missing the "id" property ({"ListID":19962972,"Name":"Hank Only Test List","Description":"Hank","ActiveMembers":5,"IsActive":true,"Links":k]}) Console logs:
@ikbelkirasan that seems to work even though there are some errors about missing }’s ect. Do I need to resolve them?
@hank3rd - The code is correct and doesn’t have errors but that editor doesn’t support recent JavaScript syntax (yet) which is supported by Zapier Platform. You can use the code snippet below instead to eliminate those errors and warnings:
I think that I will keep it as is for now. Thank you for your help.
I am now trying to use that in an Action to add subscribers to a list and I am getting a error about Email Address not being valid. I think that it might be similar and need to add more code.
// You can do any parsing you need for results here before returning them
return results; });
@ikbelkirasan I think that I was able to correct the input and call to pass some data. I am good for now, but will open a new thread if another issue comes up.
In a previous app I built years ago, nested call data was not necessary, so this is a little bit of a struggle for me!
@ikbelkirasan I was hoping that you might be able to help me format another item. I am trying to pull custom fields to be able to offer up as a line item in the Zap. The struggle is that it is not a simple api string. I think that I need to use a call to “Database” items.
Here is the info from the API documentation:
Sample: GET https://edapi.campaigner.com/v1/Database HTTP/1.1 ApiKey: 67c27802(******4196-b44c-460245d4978e
Here is what I have that is not working. I think that I need the Database columns where the IsCustom is true.
// Configure a request to an endpoint of your api that // returns custom field meta data for the authenticated // user. Don't forget to congigure authentication!