<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcPy feature selection from service housed in different organization in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-feature-selection-from-service-housed-in/m-p/1087739#M62021</link>
    <description>&lt;P&gt;Possibly&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/signintoportal.htm" target="_blank"&gt;SignInToPortal—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;which then sets it to the active portal (which allows the content to be used).&amp;nbsp; You may have to first use it to reference your named user license portal, then again to the other org's portal.&amp;nbsp; This is not from experience and just a shot in the dark.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Aug 2021 23:14:39 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-08-10T23:14:39Z</dc:date>
    <item>
      <title>ArcPy feature selection from service housed in different organization</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-feature-selection-from-service-housed-in/m-p/1087731#M62020</link>
      <description>&lt;P&gt;In my experience, ArcPy seems to perform better with selecting features from very large feature services, compared to making feature queries via the ArcGIS API. With that, I have&amp;nbsp;a script that performs a series of ArcPy feature selections using feature layer URLs and an area of interest feature class, like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;selection = arcpy.SelectLayerByLocation_management(fl_url, overlap_type="INTERSECT", select_features=aoi_fc)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem is, I want to perform these selections using services hosted in an ArcGIS Online Organization that differs from my Licensing Portal Organization. I have an ArcGIS Online account with the desired organization, so I'm able to establish a connection via the ArcGIS API, but ArcPy access seems to be tied to a user's ArcGIS Pro license, not the API connection. Is there a way I can use ArcPy to select features from a service not housed within my Licensing Portal's Organization?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 22:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-feature-selection-from-service-housed-in/m-p/1087731#M62020</guid>
      <dc:creator>GB_MattPanunto_GISS</dc:creator>
      <dc:date>2021-08-10T22:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy feature selection from service housed in different organization</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-feature-selection-from-service-housed-in/m-p/1087739#M62021</link>
      <description>&lt;P&gt;Possibly&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/functions/signintoportal.htm" target="_blank"&gt;SignInToPortal—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;which then sets it to the active portal (which allows the content to be used).&amp;nbsp; You may have to first use it to reference your named user license portal, then again to the other org's portal.&amp;nbsp; This is not from experience and just a shot in the dark.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Aug 2021 23:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-feature-selection-from-service-housed-in/m-p/1087739#M62021</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-08-10T23:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcPy feature selection from service housed in different organization</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-feature-selection-from-service-housed-in/m-p/1087779#M62022</link>
      <description>&lt;P&gt;Ahhh, that did it! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Aug 2021 02:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-feature-selection-from-service-housed-in/m-p/1087779#M62022</guid>
      <dc:creator>GB_MattPanunto_GISS</dc:creator>
      <dc:date>2021-08-11T02:13:36Z</dc:date>
    </item>
  </channel>
</rss>

