<?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: Enumerating Subnetworks via API in Electric Questions</title>
    <link>https://community.esri.com/t5/electric-questions/enumerating-subnetworks-via-api/m-p/1633503#M1060</link>
    <description>&lt;P&gt;Answering my own question:&lt;/P&gt;&lt;P&gt;You have to look at the FeatureServer, not the UtilityNetwork to get this.&lt;/P&gt;&lt;P&gt;There exists a layer called "Subnet Line" which contains the tier/subnetworks that I was looking for.&lt;/P&gt;&lt;P&gt;Only downside is that that tiers are returned with their coded values, and the exportSubnet expects the non-coded value so you will have to do a translation.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jul 2025 15:05:41 GMT</pubDate>
    <dc:creator>BrandenRager</dc:creator>
    <dc:date>2025-07-16T15:05:41Z</dc:date>
    <item>
      <title>Enumerating Subnetworks via API</title>
      <link>https://community.esri.com/t5/electric-questions/enumerating-subnetworks-via-api/m-p/1620935#M1051</link>
      <description>&lt;P&gt;I am trying to enumerate all subnetworks so I can programmatically call exportSubnetwork via the REST API.&lt;/P&gt;&lt;P&gt;I cannot find anything in the documentation that shows there is a means to do this via the REST API.&lt;/P&gt;&lt;P&gt;Is my only choice here to use arcpy or do a DB dip to look at the subnetworks table?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 19:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/electric-questions/enumerating-subnetworks-via-api/m-p/1620935#M1051</guid>
      <dc:creator>BrandenRager</dc:creator>
      <dc:date>2025-06-04T19:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Enumerating Subnetworks via API</title>
      <link>https://community.esri.com/t5/electric-questions/enumerating-subnetworks-via-api/m-p/1633503#M1060</link>
      <description>&lt;P&gt;Answering my own question:&lt;/P&gt;&lt;P&gt;You have to look at the FeatureServer, not the UtilityNetwork to get this.&lt;/P&gt;&lt;P&gt;There exists a layer called "Subnet Line" which contains the tier/subnetworks that I was looking for.&lt;/P&gt;&lt;P&gt;Only downside is that that tiers are returned with their coded values, and the exportSubnet expects the non-coded value so you will have to do a translation.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jul 2025 15:05:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/electric-questions/enumerating-subnetworks-via-api/m-p/1633503#M1060</guid>
      <dc:creator>BrandenRager</dc:creator>
      <dc:date>2025-07-16T15:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Enumerating Subnetworks via API</title>
      <link>https://community.esri.com/t5/electric-questions/enumerating-subnetworks-via-api/m-p/1634796#M1064</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/157865"&gt;@BrandenRager&lt;/a&gt;&amp;nbsp;- Awesome job!&amp;nbsp;&lt;BR /&gt;Subnet Line is one way of getting all subnetworks but I believe a better way is to use the subnetworks table for this. This is layer id 500002&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gis_KIWI4_0-1753134736586.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136875i6044E94C12934F70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gis_KIWI4_0-1753134736586.png" alt="gis_KIWI4_0-1753134736586.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;https://{Your Site}/server/rest/services/UN_Service/Prod_UN_Service_2/FeatureServer/500002/query?where=1%3D1&amp;amp;objectIds=&amp;amp;time=&amp;amp;geometry=&amp;amp;geometryType=esriGeometryEnvelope&amp;amp;inSR=&amp;amp;defaultSR=&amp;amp;spatialRel=esriSpatialRelIntersects&amp;amp;relationParam=&amp;amp;outFields=*&amp;amp;returnGeometry=true&amp;amp;maxAllowableOffset=&amp;amp;geometryPrecision=&amp;amp;outSR=&amp;amp;havingClause=&amp;amp;gdbVersion=&amp;amp;historicMoment=&amp;amp;returnDistinctValues=false&amp;amp;returnIdsOnly=false&amp;amp;returnCountOnly=false&amp;amp;orderByFields=&amp;amp;groupByFieldsForStatistics=&amp;amp;outStatistics=&amp;amp;returnZ=false&amp;amp;returnM=false&amp;amp;multipatchOption=xyFootprint&amp;amp;resultOffset=&amp;amp;resultRecordCount=&amp;amp;returnTrueCurves=false&amp;amp;returnCentroid=false&amp;amp;timeReferenceUnknownClient=false&amp;amp;maxRecordCountFactor=&amp;amp;sqlFormat=none&amp;amp;featureEncoding=esriDefault&amp;amp;datumTransformation=&amp;amp;cacheHint=false&amp;amp;f=html&lt;/LI-CODE&gt;&lt;P&gt;Response&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gis_KIWI4_2-1753135556611.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136878i44F9E343B1403F15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gis_KIWI4_2-1753135556611.png" alt="gis_KIWI4_2-1753135556611.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Two distinct advantages -&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) This will show you the Tier Name i.e the non-coded value&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gis_KIWI4_1-1753134823178.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/136876i217D2EAD2B221CC6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gis_KIWI4_1-1753134823178.png" alt="gis_KIWI4_1-1753134823178.png" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) This will also show subnetworks where there may not be a subnet line.&amp;nbsp;&lt;BR /&gt;For example - A Distribution Transformer (LV subnetwork controller) without any LV Lines connected to it but has customers connected via associations. The "subnetline GlobalID" field will be blank for such instances.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Bonus advantages -&lt;/P&gt;&lt;P&gt;It will also show deleted subnetworks which you might want to clear out from the table periodically.&lt;BR /&gt;&lt;BR /&gt;Also shows the last acknowledged date and last updated date which might help drive logic of when to export the subnetworks.&lt;BR /&gt;&lt;BR /&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 22:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/electric-questions/enumerating-subnetworks-via-api/m-p/1634796#M1064</guid>
      <dc:creator>gis_KIWI4</dc:creator>
      <dc:date>2025-07-21T22:06:15Z</dc:date>
    </item>
  </channel>
</rss>

