<?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 Query for item_type with OR operator in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/query-for-item-type-with-or-operator/m-p/463909#M23402</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm barely using the ArcGIS API for Python to find AGOL/Portal items with specific attributes.&amp;nbsp; I can't see how to use the gis.get.content function with an OR operator.&amp;nbsp; Like, I want to fetch Portal items that are 'Feature Service OR Map Service'.&amp;nbsp; Can you point the way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jun 2019 18:04:17 GMT</pubDate>
    <dc:creator>Don_Barker</dc:creator>
    <dc:date>2019-06-13T18:04:17Z</dc:date>
    <item>
      <title>Query for item_type with OR operator</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/query-for-item-type-with-or-operator/m-p/463909#M23402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm barely using the ArcGIS API for Python to find AGOL/Portal items with specific attributes.&amp;nbsp; I can't see how to use the gis.get.content function with an OR operator.&amp;nbsp; Like, I want to fetch Portal items that are 'Feature Service OR Map Service'.&amp;nbsp; Can you point the way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jun 2019 18:04:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/query-for-item-type-with-or-operator/m-p/463909#M23402</guid>
      <dc:creator>Don_Barker</dc:creator>
      <dc:date>2019-06-13T18:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Query for item_type with OR operator</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/query-for-item-type-with-or-operator/m-p/463910#M23403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Don,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you could do an OR operator, but you could iterate through a list of item types.&amp;nbsp; Ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;item_types &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Feature Layer'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Map Image Layer'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; item_types&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    layer_result &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; target&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;&lt;SPAN class="string token"&gt;'title:LightningStrikes'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; item_type&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;item&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;layer_result&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:36:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/query-for-item-type-with-or-operator/m-p/463910#M23403</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-11T20:36:21Z</dc:date>
    </item>
  </channel>
</rss>

