<?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: Using Calculated Expression on Attachments in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348780#M55848</link>
    <description>&lt;P&gt;This will differ if you are using a hosted feature, and will probably be easier, but to accomplish this in an enterprise deployment we used an attribute rule on both the related attachment table and also on the feature. This means that the "No Photo" will only show up after the edit has been committed, so after submitting if using FieldMaps. See the attachments for the actual code.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Nov 2023 17:37:34 GMT</pubDate>
    <dc:creator>BlairMcclenathan</dc:creator>
    <dc:date>2023-11-13T17:37:34Z</dc:date>
    <item>
      <title>Using Calculated Expression on Attachments</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348753#M55843</link>
      <description>&lt;P&gt;I have attachments enabled on a feature service. I am curious how I could set up a calculated expression so that if attachments exist on my point it auto-populates my PHOTO_TAKEN field to "Yes". If no attachments exist, the PHOTO_TAKEN field is auto-populated to "No".&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 17:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348753#M55843</guid>
      <dc:creator>LauraGiboo</dc:creator>
      <dc:date>2023-11-13T17:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calculated Expression on Attachments</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348780#M55848</link>
      <description>&lt;P&gt;This will differ if you are using a hosted feature, and will probably be easier, but to accomplish this in an enterprise deployment we used an attribute rule on both the related attachment table and also on the feature. This means that the "No Photo" will only show up after the edit has been committed, so after submitting if using FieldMaps. See the attachments for the actual code.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 17:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348780#M55848</guid>
      <dc:creator>BlairMcclenathan</dc:creator>
      <dc:date>2023-11-13T17:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calculated Expression on Attachments</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348803#M55850</link>
      <description>&lt;P&gt;I am using a hosted feature. I published to ArcGIS Online.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 17:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348803#M55850</guid>
      <dc:creator>LauraGiboo</dc:creator>
      <dc:date>2023-11-13T17:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Calculated Expression on Attachments</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348879#M55855</link>
      <description>&lt;P&gt;I haven't tried this since we don't often use hosted feature classes, but my first angle of attack would be using the attachments() function and use a count.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/featureset_functions/#attachments" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/featureset_functions/#attachments&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2023 20:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/using-calculated-expression-on-attachments/m-p/1348879#M55855</guid>
      <dc:creator>BlairMcclenathan</dc:creator>
      <dc:date>2023-11-13T20:13:28Z</dc:date>
    </item>
  </channel>
</rss>

