I am trying to create a post request that returns an array of gross pay items. I thought I did it correctly and it said that my request was successful, but seconds later I got this big red alert that said “Cannot convert undefined or null value to object (throttled).”
I have attached the return code I am using and the model of the data it should be returning. I also attached a photo of the error message. Does anyone have any idea what is going on here?
Here is the Model of the data that should be returned. I am trying to pull in only the grossPayItems Array.Here is the code I am using to pull in the grossPayItems. I have tried wrapping it in an array and not wrapping it in an array with the same results both times.Here is the error message it is giving.
Best answer by DanversBest answer by Danvers
Hi @jacob_nolley - were you able to get to the bottom of this one? If not please let me know and I can ask the Support Team to take a look for you.
@jacob_nolley - Try to `z.console.log(results)`. Is it an object or a null/empty response? You probably need to check if the response is an object before returning it. Otherwise just return an empty array if it’s a search action, or an empty object if it’s a create action.
@jacob_nolley - Can you post any console logs you got when you used `z.console.log` as I mentioned earlier? It’s important to see what the API response looks like exactly.