<?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: Searching for Web Maps in Portal and querying if saved in Classic or New Map Viewer in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/searching-for-web-maps-in-portal-and-querying-if/m-p/1409716#M9887</link>
    <description>&lt;P&gt;I think one way you might be able to do this is:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for webmap in webmaps_contents :
    data = webmap.get_data()
    authoring_app = d["authoringApp"]
    if authoring_app  == "ArcGISMapViewer"
        # Created with new MapViewer
        pass
    else:
       # Classic webmap (authoring_app is "WebMapViewer")
       pass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At least, based on my observations the Authoring App value is "ArcGISMapViewer" for the new MapViewer and "WebMapViewer" for the classic MapViewer.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Apr 2024 13:35:40 GMT</pubDate>
    <dc:creator>EarlMedina</dc:creator>
    <dc:date>2024-04-15T13:35:40Z</dc:date>
    <item>
      <title>Searching for Web Maps in Portal and querying if saved in Classic or New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/searching-for-web-maps-in-portal-and-querying-if/m-p/1409585#M9884</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;When searching for web map in the Portal, for example using python below:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;webmaps_contents = gis.content.search("*",item_type="Web Map", max_items=500)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Is it possible to filter for Web Maps saved in &lt;STRONG&gt;Classic&lt;/STRONG&gt; or the &lt;STRONG&gt;New&lt;/STRONG&gt; Map Viewer?&lt;/P&gt;&lt;P&gt;Or can this be done with with an if statement in a loop:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;for webmap_item in webmaps_contents:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;nbsp; if webmap_item. .....&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 03:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/searching-for-web-maps-in-portal-and-querying-if/m-p/1409585#M9884</guid>
      <dc:creator>Kalu_Ribush</dc:creator>
      <dc:date>2024-04-15T03:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for Web Maps in Portal and querying if saved in Classic or New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/searching-for-web-maps-in-portal-and-querying-if/m-p/1409716#M9887</link>
      <description>&lt;P&gt;I think one way you might be able to do this is:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for webmap in webmaps_contents :
    data = webmap.get_data()
    authoring_app = d["authoringApp"]
    if authoring_app  == "ArcGISMapViewer"
        # Created with new MapViewer
        pass
    else:
       # Classic webmap (authoring_app is "WebMapViewer")
       pass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At least, based on my observations the Authoring App value is "ArcGISMapViewer" for the new MapViewer and "WebMapViewer" for the classic MapViewer.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 13:35:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/searching-for-web-maps-in-portal-and-querying-if/m-p/1409716#M9887</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-04-15T13:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Searching for Web Maps in Portal and querying if saved in Classic or New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/searching-for-web-maps-in-portal-and-querying-if/m-p/1410003#M9890</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; Worked with a&amp;nbsp; couple of tweaks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;for webmap in webmaps_contents :
    data = webmap.get_data()
    authoring_app = data["authoringApp"]
    if authoring_app  == "ArcGISMapViewer":
        # Created with new MapViewer
        pass
    else:
       # Classic webmap (authoring_app is "WebMapViewer")
       pass&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 15 Apr 2024 23:32:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/searching-for-web-maps-in-portal-and-querying-if/m-p/1410003#M9890</guid>
      <dc:creator>Kalu_Ribush</dc:creator>
      <dc:date>2024-04-15T23:32:34Z</dc:date>
    </item>
  </channel>
</rss>

