Good afternoon Brandon,
i was wondering if you would mind expanding on your answer here. what do you mean by 'publishing to portal' versus 'publishing to server'?
i am running into a similar problem and i thought it was merely a matter of publishing the service, but it isn't working for me.
sd = xmap.getWebLayerSharingDraft("FEDERATED_SERVER", "MAP_IMAGE", "TESTING POPUPS")
(thinking the above was where you were publishing to server, i also tried
sd = xmap.getWebLayerSharingDraft("HOSTING_SERVER", "FEATURE", "TESTING POPUPS")
)
then
sd.exportToSDDraft("C:/admin/popupdraft.sddraft")
then
arcpy.StageService_server(in_service_definition_draft=r"C:\admin\popupdraft.sddraft", out_service_definition=r"C:\admin\popupdraft.sd")
and finally
arcpy.UploadServiceDefinition_server(in_sd_file=r"C:\admin\popupdraft.sd", in_server="https://<hostname>/server", in_folder_type="EXISTING", in_folder="Test")
in none of my attempts so far have i been able to see the popupInfos represented in the default webmap of portal.
thank you for your time.