I am familiar with using python to get and/or set a (single) definition query for a map layer.
However, in Pro you can specify multiple different definition queries for a single layer (although only one, or none, can be active at any given time). When I use the definitionQuery property of the layer object, I can get, or set, the currently active query.
But I would like to be able to create lots of different definition Queries for a given layer using python (and then get / set them using python as well). Is there a way to do this that I'm missing?
We are getting around this at the moment by using python to create query expression (EXP) files and then importing them all in one go using the GUI.