I've written a python script (arcpy) that takes the text from an email containing a ticket number and lat/long coordinates. I've been able to extract the data containing the ticket number, lat/long coordinates that form a rectangle, and other data. This data is a list that updates a featureclass in a file gdb. I've also updated/changed the layout's name to reflect the ticket number. The feature class/layer is used in both the main map and a reference or inset map. The aprx has 2 maps, and one layout.
What I can't figure out is how to change the layer's definition query, so that I can zoom to or pan to the new feature. I think I need to use the Cartographic Information Model (cim), but I'm not sure how to change the layer's definition query.
I'm working in ArcGIS Pro 2.9