I am having issues using the arcpy.mapping.ConvertWebMapToMapDocument function in a GP service. It works great when wired into the Print widget in Web App Builder, which uses the Print Task. However, the same GP service returns an empty JSON string from the webmap if run in the GP widget.
Is there a way to capture the JSON of a webmap (within AGOL's web app builder) just using a GP widget, instead of a Print widget? I am not seeing any verification that this function is limited to the Print widget or the Print Task in the API. It is 'suggested' that one uses the Print Task, but doesn't say one must.