I have a script built using ModelBuilder in ArcGIS Pro. I am trying to run it as a scheduled task in Pro, however I need to make sure the correct Portal connection is set as I have several different Portals that I am connected to in Pro. Is there a way to set which Portal the script connects to when it is running via Windows Task Scheduler? Basically the script does some data analysis and then publishes the result but I want to make sure it publishes to the correct Portal and not just the last one that I was signed in on. Any help is greatly appreciated!
Solved! Go to Solution.
Hello,
Have you looked into the SignInToPortal ArcPy function? It should help you get started: https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/signintoportal.htm
Best,
Jonah
following
Hello,
Have you looked into the SignInToPortal ArcPy function? It should help you get started: https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/signintoportal.htm
Best,
Jonah
That should do the trick. Thank you very much!