<?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 Referencing Features, and Trace, in ArcPy for use in Web AppBuilder in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/referencing-features-and-trace-in-arcpy-for-use-in/m-p/728209#M19184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All- n00b here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that works in ArcMap. &amp;nbsp;It traces a geometric network, references feature classes (flags/barriers), tables for calculations, etc. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering how to reference these things (feature classes, tables, etc) in the python script so that I can use in AGOL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some code snippets. &amp;nbsp;As you can see I'm referencing data on SDE. &amp;nbsp;My guess is I need to reference the REST URL? &amp;nbsp;i.e. server/name/rest/services/webapp/geometricnetwork/MapServer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;OL&gt;&lt;LI&gt;ElecGeomNetwork = "C:\\blahblahblah\\asdf.sde\\asdf.GDBO.ElectricDataset\\asdf.GDBO.ElectricGeom_Net"&lt;/LI&gt;&lt;LI&gt;ElecGeomNetwork__2_ = "ElecGeomNetwork"&lt;/LI&gt;&lt;LI&gt;ServicePoint = "ServiceLocation"&lt;/LI&gt;&lt;LI&gt;Table = "asdf.GDBO.TableTest"&lt;/LI&gt;&lt;LI&gt;Transformer = "Transformer Bank"&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;arcpy.TraceGeometricNetwork_management(ElecGeomNetwork, ElecGeomNetwork__2_, Transformer, "FIND_CONNECTED", "", "", "", "", "asdf.GDBO.PrimaryOHLineSection;asdf.GDBO.PrimaryUGLineSection", "NO_TRACE_ENDS", "NO_TRACE_INDETERMINATE_FLOW", "", "", "AS_IS", "", "", "", "AS_IS")&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Dec 2016 00:18:36 GMT</pubDate>
    <dc:creator>EddyClark</dc:creator>
    <dc:date>2016-12-21T00:18:36Z</dc:date>
    <item>
      <title>Referencing Features, and Trace, in ArcPy for use in Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/referencing-features-and-trace-in-arcpy-for-use-in/m-p/728209#M19184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All- n00b here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a python script that works in ArcMap. &amp;nbsp;It traces a geometric network, references feature classes (flags/barriers), tables for calculations, etc. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering how to reference these things (feature classes, tables, etc) in the python script so that I can use in AGOL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some code snippets. &amp;nbsp;As you can see I'm referencing data on SDE. &amp;nbsp;My guess is I need to reference the REST URL? &amp;nbsp;i.e. server/name/rest/services/webapp/geometricnetwork/MapServer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;OL&gt;&lt;LI&gt;ElecGeomNetwork = "C:\\blahblahblah\\asdf.sde\\asdf.GDBO.ElectricDataset\\asdf.GDBO.ElectricGeom_Net"&lt;/LI&gt;&lt;LI&gt;ElecGeomNetwork__2_ = "ElecGeomNetwork"&lt;/LI&gt;&lt;LI&gt;ServicePoint = "ServiceLocation"&lt;/LI&gt;&lt;LI&gt;Table = "asdf.GDBO.TableTest"&lt;/LI&gt;&lt;LI&gt;Transformer = "Transformer Bank"&lt;/LI&gt;&lt;LI&gt;&lt;/LI&gt;&lt;LI&gt;arcpy.TraceGeometricNetwork_management(ElecGeomNetwork, ElecGeomNetwork__2_, Transformer, "FIND_CONNECTED", "", "", "", "", "asdf.GDBO.PrimaryOHLineSection;asdf.GDBO.PrimaryUGLineSection", "NO_TRACE_ENDS", "NO_TRACE_INDETERMINATE_FLOW", "", "", "AS_IS", "", "", "", "AS_IS")&lt;/LI&gt;&lt;/OL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 00:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/referencing-features-and-trace-in-arcpy-for-use-in/m-p/728209#M19184</guid>
      <dc:creator>EddyClark</dc:creator>
      <dc:date>2016-12-21T00:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Features, and Trace, in ArcPy for use in Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/referencing-features-and-trace-in-arcpy-for-use-in/m-p/728210#M19185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You would run the model and then from the results tab in ArcMap publish a GPService from that then you would have a rest url to the GP Service that you could use in the GP Widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 00:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/referencing-features-and-trace-in-arcpy-for-use-in/m-p/728210#M19185</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-12-21T00:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Features, and Trace, in ArcPy for use in Web AppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/referencing-features-and-trace-in-arcpy-for-use-in/m-p/728211#M19186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to add onto Robert's reply, please review this help doc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://server.arcgis.com/en/server/latest/publish-services/windows/a-quick-tour-of-authoring-geoprocessing-services.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/a-quick-tour-of-authoring-geoprocessing-services.htm"&gt;A quick tour of authoring and sharing geoprocessing services—Documentation | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2016 07:32:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/referencing-features-and-trace-in-arcpy-for-use-in/m-p/728211#M19186</guid>
      <dc:creator>DerekLaw</dc:creator>
      <dc:date>2016-12-21T07:32:24Z</dc:date>
    </item>
  </channel>
</rss>

