<?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: Automate Work Order Numbers in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/automate-work-order-numbers/m-p/1525127#M58617</link>
    <description>&lt;P&gt;I figured it out! You have to create a new survey based on the original one, delete everything that aren't the work order number (&lt;SPAN&gt;bind::esri:fieldType&amp;nbsp;esriFieldTypeString)&lt;/SPAN&gt; and objectid fields,(&lt;SPAN&gt;bind::esri:fieldType null)&lt;/SPAN&gt; , and input this calculation into work order&lt;/P&gt;&lt;P&gt;if(string-length(${objectid})=1,concat(format-date(now(), '%Y'),"-000",${objectid}),if(string-length(${objectid})=2,concat(format-date(now(), '%Y'),"-00",${objectid}),if(string-length(${objectid})=3,concat(format-date(now(), '%Y'),"-0",${objectid}),${objectid})))&lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2024 14:59:14 GMT</pubDate>
    <dc:creator>ThomasGoodridge</dc:creator>
    <dc:date>2024-08-21T14:59:14Z</dc:date>
    <item>
      <title>Automate Work Order Numbers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/automate-work-order-numbers/m-p/1494316#M57433</link>
      <description>&lt;P&gt;I'm trying to auto generate work order numbers. The work order id should be the current year dash submission number padded with zeros. So the submissions should look like 2024-0001. The closest I got was concat(format-date(now(), '%Y'),'-',count(${location})), which doesn't actually count survey submissions.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 12:21:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/automate-work-order-numbers/m-p/1494316#M57433</guid>
      <dc:creator>ThomasGoodridge</dc:creator>
      <dc:date>2024-06-18T12:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Work Order Numbers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/automate-work-order-numbers/m-p/1494496#M57437</link>
      <description>&lt;P&gt;There is a blog post that covers this:&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/creating-ticket-numbers-in-survey123-for-arcgis/ba-p/898870" target="_self"&gt; Creating 'Ticket Numbers' in Survey123 for ArcGIS &lt;/A&gt;&lt;/P&gt;&lt;P&gt;you probably are looking for ObjectID, which you don't get until &lt;EM&gt;after&lt;/EM&gt; you submit. Have a look at the blog.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 17:11:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/automate-work-order-numbers/m-p/1494496#M57437</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-06-18T17:11:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automate Work Order Numbers</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/automate-work-order-numbers/m-p/1525127#M58617</link>
      <description>&lt;P&gt;I figured it out! You have to create a new survey based on the original one, delete everything that aren't the work order number (&lt;SPAN&gt;bind::esri:fieldType&amp;nbsp;esriFieldTypeString)&lt;/SPAN&gt; and objectid fields,(&lt;SPAN&gt;bind::esri:fieldType null)&lt;/SPAN&gt; , and input this calculation into work order&lt;/P&gt;&lt;P&gt;if(string-length(${objectid})=1,concat(format-date(now(), '%Y'),"-000",${objectid}),if(string-length(${objectid})=2,concat(format-date(now(), '%Y'),"-00",${objectid}),if(string-length(${objectid})=3,concat(format-date(now(), '%Y'),"-0",${objectid}),${objectid})))&lt;/P&gt;</description>
      <pubDate>Wed, 21 Aug 2024 14:59:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/automate-work-order-numbers/m-p/1525127#M58617</guid>
      <dc:creator>ThomasGoodridge</dc:creator>
      <dc:date>2024-08-21T14:59:14Z</dc:date>
    </item>
  </channel>
</rss>

