I have a webhook that is triggering a CloudCode task when a form is submitted. That form object will be sent to the CloudCode task, where I am compiling all of the object’s fields, belongs-to and has-many relationships into one custom JS object before POSTing it to an external system. For the has-many relationships, I am calling object..toArray() and noticing that, for each object in the array of objects, the ID is missing. Is this the expected behavior of toArray(), or is this a bug?
The array of objects looks like the following:
Should the ID for each object be included along with the fields?