API: Return Related Records Data on Relationship Attribute
Currently, when you query the API on a record with relationship attributes, the API only returns the record_id for the relationship attribute. You then have to query the API again on that id to get the information on the related record. This is wasteful and slow, particularly if you have alot of connected data with relationships and are looping thru alot of data. What other API’s, I’ve worked with have done, is allow you to pass the related fields into the API query, so you can return those field values also with a relationship, and not just the ID. So for example, if I have an order that is related to a person, I should be able to pass a query to the API, which says, get me the order with related person id, along with their email address and full name. Right now, all you get is the id of the person, and then you need to query again to get the specific information on the person.