Is there a way to get at linked/associated entity fields (like bubble querying in the SG api)?
For instance, if I want the
sg_status_list of an entity linked from a field in my search, do I have to make two queries (first for the linked entity, then for the fields on that entity) or is there an equivalent query to get the associated entity fields to be specified?
If I’m understanding it right you may want to do this via a deep field link?
This ony works on Single Entity fields, but essentially like this:
Find the episode name for my shot
filters = [["id", "is", SHOT_ID]]
fields = ["sg_sequence.Sequence.sg_episode.Episode.code"]
sg_shot = sg.find("Shot", filters, fields)
episode_name = sg_shot.get("sg_sequence.Sequence.sg_episode.Episode.code")
That’s exactly what I’m hoping for, but in the REST api; I only seem to be able to do it in the Python API. @Ricardo_Musch, is that the Python api or a wrapper around the REST api?
My code is for the python api.
Altough not sure if the python api wraps around the/a REST api…
…it does not; was hoping you had something custom…
I’ve open Case number 20897217 in hopes that I can get some help figuring this out; as it is really expensive to have to do so many extra queries.