What is the equivalent of
aprx = arcpy.mp.ArcGISProject("CURRENT")
in ArcGIS Online? I am creating a tool within an app. I would like to refer back to the map and what is selected. How do I refer to the current screen in the app?
Are you using Web AppBuilder or writing a custom app with the ArcGIS API for JavaScript?
I am uploading the tool from ArcPro into an app created with Web AppBuilder.
I have the same question...working on a python geoprocessing tool and need to look at what layers are loaded in the current web map.
I think our questions may be a little different. You may find the "listLayers" section of this site useful: https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/map-class.htm