<?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 do I query all features that do not have a attachment on ArcOnline? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405270#M20361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/378138"&gt;Patrick Grogan-Myers&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a definition expression that queries all the object id's with Query Attachments can return all the features that have attachments:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm"&gt;Query Attachments (Feature Service/Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;. Once you have those object id's you could feasibly list them and then query the layer for object id's not equal to those in the list. I have not tried this second part myself so I'm not 100% sure if it would work or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is to use Arcade to filter the features without attachments in a Web Map. This is explained on &lt;A _jive_internal="true" href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2019/03/22/show-attachments-in-pop-ups-with-arcade-expressions"&gt;this GeoNet blog&lt;/A&gt;. See Part 1: Calculate the attachment ID - except the filter in step 4 would be&amp;nbsp;CountAttachments&amp;nbsp;equals 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking Arcade might be the better option here as it will allow you to see the location of houses without pictures right off the bat. Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2019 18:12:20 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-10-02T18:12:20Z</dc:date>
    <item>
      <title>How do I query all features that do not have a attachment on ArcOnline?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405268#M20359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently working on a housing survey for the city. I want to pull all features that do not have an attachment to make sure that we get a picture of each house in the city. Is this possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 15:20:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405268#M20359</guid>
      <dc:creator>PatrickGrogan-Myers</dc:creator>
      <dc:date>2019-10-02T15:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query all features that do not have a attachment on ArcOnline?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405269#M20360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd say it's possible with some python for the arcgis api.&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/using-attachments-with-feature-layers/"&gt;https://developers.arcgis.com/python/guide/using-attachments-with-feature-layers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rough sketch of how to:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Loop through all records in your hosted feature layer&lt;/LI&gt;&lt;LI&gt;Query each record to see if it has an attachment&lt;/LI&gt;&lt;LI&gt;Build an array logging all records which have zero attachments&lt;/LI&gt;&lt;LI&gt;Put that array into a target table of your choice so you can use in your workflow&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 18:06:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405269#M20360</guid>
      <dc:creator>alex_friant</dc:creator>
      <dc:date>2019-10-02T18:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query all features that do not have a attachment on ArcOnline?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405270#M20361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/378138"&gt;Patrick Grogan-Myers&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using a definition expression that queries all the object id's with Query Attachments can return all the features that have attachments:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm" title="https://developers.arcgis.com/rest/services-reference/query-attachments-feature-service-layer-.htm"&gt;Query Attachments (Feature Service/Layer)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;. Once you have those object id's you could feasibly list them and then query the layer for object id's not equal to those in the list. I have not tried this second part myself so I'm not 100% sure if it would work or not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is to use Arcade to filter the features without attachments in a Web Map. This is explained on &lt;A _jive_internal="true" href="https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2019/03/22/show-attachments-in-pop-ups-with-arcade-expressions"&gt;this GeoNet blog&lt;/A&gt;. See Part 1: Calculate the attachment ID - except the filter in step 4 would be&amp;nbsp;CountAttachments&amp;nbsp;equals 0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking Arcade might be the better option here as it will allow you to see the location of houses without pictures right off the bat. Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 18:12:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405270#M20361</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-10-02T18:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I query all features that do not have a attachment on ArcOnline?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405271#M20362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this article out I found it very helpful for doing&amp;nbsp;a very&amp;nbsp;similar task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;A class="link-titled" href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/visualize-your-attachments-in-arcgis-online-with-arcade/" title="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/visualize-your-attachments-in-arcgis-online-with-arcade/"&gt;Visualize your attachments in ArcGIS Online with Arcade&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 18:18:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-query-all-features-that-do-not-have-a/m-p/405271#M20362</guid>
      <dc:creator>ChristopherMcClain</dc:creator>
      <dc:date>2019-10-02T18:18:11Z</dc:date>
    </item>
  </channel>
</rss>

