<?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 delete records older than 1 month in ArcGIS Workforce Questions</title>
    <link>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1246470#M2568</link>
    <description>&lt;P&gt;Is there a quick way to select all records that are older than 30 days? I'm hoping to use model builder to select all&amp;nbsp;&lt;EM&gt;Completed&lt;/EM&gt; records that are older than a month and delete them from my dataset. I prefer to use model builder so that I can set it and forget it! Any ideas would be appreciated.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Jan 2023 15:53:48 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2023-01-09T15:53:48Z</dc:date>
    <item>
      <title>delete records older than 1 month</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1246470#M2568</link>
      <description>&lt;P&gt;Is there a quick way to select all records that are older than 30 days? I'm hoping to use model builder to select all&amp;nbsp;&lt;EM&gt;Completed&lt;/EM&gt; records that are older than a month and delete them from my dataset. I prefer to use model builder so that I can set it and forget it! Any ideas would be appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 15:53:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1246470#M2568</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-09T15:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: delete records older than 1 month</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1246527#M2569</link>
      <description>&lt;P&gt;First off, do you have a Date field in your data that would allow a query to select all records where that date is at least 30 days from current date?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 17:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1246527#M2569</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2023-01-09T17:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: delete records older than 1 month</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1246557#M2570</link>
      <description>&lt;P&gt;No I do not have a field like that. I used an Arcade expression to calculate the Assignment due dates (a pothole is identified in the field and the date it needs to be filled by is based on the road classification) and was hoping that I would be able to use another Arcade Expression/SQL statement to select points with a&amp;nbsp;&lt;EM&gt;Completed&lt;/EM&gt; date that is at least 30 days from today's date.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jan 2023 18:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1246557#M2570</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2023-01-09T18:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: delete records older than 1 month</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1258458#M2596</link>
      <description>&lt;P&gt;I was just coming looking to resolve the same problem, though I was hoping for a Python solution in ArcGIS Online Notebooks instead of ModelBuilder.&lt;/P&gt;&lt;P&gt;From Michael's question though, if you're using Workforce then when a user completes the assignment there is a field in the Assignments layer already that would capture the completed date and time "completeddate"! Then you could find a way to compare today's date to that date field.&lt;/P&gt;&lt;P&gt;Schema for Workforce can be found here:&amp;nbsp;&lt;A href="https://doc.arcgis.com/en/workforce/android-phone/help/workforce-schema.htm" target="_blank"&gt;https://doc.arcgis.com/en/workforce/android-phone/help/workforce-schema.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2023 14:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/delete-records-older-than-1-month/m-p/1258458#M2596</guid>
      <dc:creator>RobertAnderson3</dc:creator>
      <dc:date>2023-02-15T14:06:06Z</dc:date>
    </item>
  </channel>
</rss>

