So I want to automate creation of a MMPK from a webmap. I know that I could create a standalone python script on my local machine that runs the arcpy.managment .CreateMobileMapPackage and references a map in a .aprx project however I'd like to try do this via an AGOL Notebook that I can schedule.
I'm not able to get it to work however and maybe it's simply not possible?
As far as I understand it, AGOL advanced notebooks support arcpy, and the
arcpy.management.CreateMobileMapPackage(in_map, output_file)
tool appears to be supported however I basically don't know how to reference the map I want in AGOL or what to specify as in_map and output file. I keep getting the following error
ExecuteError: ERROR 000110: s does not exist
Failed to execute (CreateMobileMapPackage).
Does anyone know how to do this?