You can retrieve the configuration of a query field via the API using
sg.schema_field_read and then pass that config into an
In your case, you’d do:
my_field_config = sg.schema_field_read('Shot', 'sg_latest_version_for_delivery')['sg_latest_version_for_delivery']
Then the configuration of the query field, including the filters and the intended format of the result, will be available as a
You’d then need to pop keys out of that result and stuff them into an
This general approach avoids having to duplicate your query config in your client code, allowing you to reconfigure the query field in the UI and have your code continue to work with it without having to refactor.