Hi all,
I am trying to get all statuses used on my side so I can use their name (i.e.human readable label") to repolace the status code I get via my usual queries.
E.g. “act” > “actve”, “cfrm” > “confirmed” etc.
When I go to my admin menu’s “Status List” page I see all of those, whoever, the api only seems to allow for querying one entity at a time, e.g.:
SG.schema_field_read(“Task”,“sg_status_list”)
or
SG.schema_field_read(“Shot”,“sg_status_list”)
etc.
How can I get all statuses as shown on the Status List page in one quick swoop?
Or is it possible to get the human readable value directly in a shot or task query?
Edit:
Currently I am using two calls like this:
task_status_list = self.CONNECT.schema_field_read("Task","sg_status_list")["sg_status_list"]["properties"]["display_values"]["value"]
shot_status_list = self.CONNECT.schema_field_read("Shot","sg_status_list")["sg_status_list"]["properties"]["display_values"]["value"]
status_list = {**task_status_list, **shot_status_list}
Cheers,
frank