Acually, I found various posts to how to get the active map of the current ArcGIS Pro project. they all start with this:
aprx = arcpy.mp.ArcGISProject("CURRENT")
active_map = aprx.listMaps(aprx.activeMap.name)[0]I always get the exception "CURRENT". I already tried "current", then I get the exception "current". any idea whats wrong or how to make it right?