Virtual DocType: Passing filters to controller?

I am building a virtual doctype based on a third-party API. How do I pass the filters from the Frappe front-end to the controller so that when a filter is applied on the front-end, the API call can be updated with the new qurery paramters?

Hi:

Nothing to do on frontend side …

get_list automatically receives args from frontend (filters, fields, etc …) . filters is a list of lists containing conditions. Use print(filters) on on your get_list method to see it, or inspect the call from browser console.

You will need to iterate over filters and adapt it to your API endpoint call filters system.

Hope this helps.