<?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: How to list which feature layers are being used by which web maps and apps? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/1269981#M8523</link>
    <description>&lt;P&gt;I got the same error,&lt;/P&gt;&lt;PRE&gt;SyntaxError: invalid non-printable character U+200D&lt;/PRE&gt;&lt;P&gt;and found this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.decodingweb.dev/solved-syntaxerror-invalid-non-printable-character-in-python" target="_blank" rel="noopener"&gt;https://www.decodingweb.dev/solved-syntaxerror-invalid-non-printable-character-in-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed the non-printable characters using Notepad++ with this method from StackOverflow (&lt;A href="https://stackoverflow.com/questions/20889996/how-do-i-remove-all-non-ascii-characters-with-regex-and-notepad" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/20889996/how-do-i-remove-all-non-ascii-characters-with-regex-and-notepad&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;'In Notepad++, if you go to menu&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Search&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;→&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Find characters in range&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;→&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Non-ASCII Characters (128-255)&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;you can then step through the document to each non-ASCII character.&lt;/P&gt;&lt;P&gt;Be sure to tick off "&lt;STRONG&gt;Wrap around&lt;/STRONG&gt;" if you want to loop in the document for all non-ASCII characters.'&lt;/P&gt;&lt;P&gt;After that, it worked like a charm!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 18:14:39 GMT</pubDate>
    <dc:creator>ZakBaron</dc:creator>
    <dc:date>2023-03-21T18:14:39Z</dc:date>
    <item>
      <title>How to list which feature layers are being used by which web maps and apps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/870380#M4616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody got any tips or hints on how this can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been able export lists of items by user and user folder using the following:&lt;BR /&gt;pd.DataFrame(list_items).transpose().to_excel(str(user.username)+'.xlsx')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it would be more useful to see which web maps and web apps throughout my organization are using which feature layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 18:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/870380#M4616</guid>
      <dc:creator>ConorMacNaughton</dc:creator>
      <dc:date>2020-10-30T18:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to list which feature layers are being used by which web maps and apps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/870381#M4617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm still learning this one myself, quite painfully in fact...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/accessing-and-creating-content/" title="https://developers.arcgis.com/python/guide/accessing-and-creating-content/" rel="nofollow noopener noreferrer" target="_blank"&gt;Accessing and creating content | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/working-with-web-maps-and-web-scenes/" title="https://developers.arcgis.com/python/guide/working-with-web-maps-and-web-scenes/" rel="nofollow noopener noreferrer" target="_blank"&gt;Working with web maps and web scenes | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here's what I could glean from the documentation (such as it is..)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapping &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; WebMap

gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'https://pythonapi.playground.esri.com/portal'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
username&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'arcgis_python'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
password&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'amazing_arcgis_123'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

search_my_contents &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"owner:[owner name]"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
item_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Web Map"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; max_items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1000&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#create web map objects from search results and print the web map title and layer name&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; webmap_item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; search_my_contents&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    webmap_obj &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; WebMap&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;webmap_item&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; layer &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; webmap_obj&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;webmap_item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; layer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:51:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/870381#M4617</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-12-12T10:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to list which feature layers are being used by which web maps and apps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/870382#M4618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! This worked for me after the following change to line 14:&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;for&lt;/SPAN&gt; layer &lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit;"&gt;in&lt;/SPAN&gt; webmap_obj.layers&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;:&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 21:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/870382#M4618</guid>
      <dc:creator>ConorMacNaughton</dc:creator>
      <dc:date>2020-11-02T21:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to list which feature layers are being used by which web maps and apps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/1170798#M7367</link>
      <description>&lt;P&gt;Hi David,&amp;nbsp;&lt;BR /&gt;Have you figured out how to access the properties of a sublayer of a service?&amp;nbsp; For instance, I'm iterating through a map that has the entire service. When my script hits this layer, it does not iterate through the sublayer of the services. It simply prints the name of the main service.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JosephRoberts2_0-1651692536548.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/40601i452B0EE8C0A9AAE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JosephRoberts2_0-1651692536548.png" alt="JosephRoberts2_0-1651692536548.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Any insight would be greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 19:29:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/1170798#M7367</guid>
      <dc:creator>JosephRoberts2</dc:creator>
      <dc:date>2022-05-04T19:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to list which feature layers are being used by which web maps and apps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/1237861#M8104</link>
      <description>&lt;P&gt;Hello I changed&amp;nbsp;line 14 but I am getting this error&lt;/P&gt;&lt;LI-CODE lang="c"&gt;  Input In [1]
    print(webmap_item.title, layer.title)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
                                         ^
SyntaxError: invalid non-printable character U+200D&lt;/LI-CODE&gt;&lt;P&gt;I am running this code in AGOL notebook.&lt;BR /&gt;Basically, I want my code scan web maps in my portal and list all layers and there map services url&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 16:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/1237861#M8104</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2022-12-05T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to list which feature layers are being used by which web maps and apps?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/1269981#M8523</link>
      <description>&lt;P&gt;I got the same error,&lt;/P&gt;&lt;PRE&gt;SyntaxError: invalid non-printable character U+200D&lt;/PRE&gt;&lt;P&gt;and found this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.decodingweb.dev/solved-syntaxerror-invalid-non-printable-character-in-python" target="_blank" rel="noopener"&gt;https://www.decodingweb.dev/solved-syntaxerror-invalid-non-printable-character-in-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I removed the non-printable characters using Notepad++ with this method from StackOverflow (&lt;A href="https://stackoverflow.com/questions/20889996/how-do-i-remove-all-non-ascii-characters-with-regex-and-notepad" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/20889996/how-do-i-remove-all-non-ascii-characters-with-regex-and-notepad&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;'In Notepad++, if you go to menu&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Search&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;→&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Find characters in range&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;→&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;Non-ASCII Characters (128-255)&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;you can then step through the document to each non-ASCII character.&lt;/P&gt;&lt;P&gt;Be sure to tick off "&lt;STRONG&gt;Wrap around&lt;/STRONG&gt;" if you want to loop in the document for all non-ASCII characters.'&lt;/P&gt;&lt;P&gt;After that, it worked like a charm!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 18:14:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-list-which-feature-layers-are-being-used-by/m-p/1269981#M8523</guid>
      <dc:creator>ZakBaron</dc:creator>
      <dc:date>2023-03-21T18:14:39Z</dc:date>
    </item>
  </channel>
</rss>

