Setting a Portal Connection in Modelbuilder in ArcGIS Pro

681
3
Jump to solution
02-10-2022 01:40 PM
ISP_graynic
Occasional Contributor II

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!

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JonahLay
Esri Contributor

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

View solution in original post

0 Kudos
3 Replies
ceylansorensen
New Contributor

following

0 Kudos
JonahLay
Esri Contributor

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

0 Kudos
ISP_graynic
Occasional Contributor II

That should do the trick. Thank you very much!

0 Kudos