<?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: generating a ticket number in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620823#M62879</link>
    <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;. After having spent almost 3 days trying to calculate a ticket number using the method in the link, your suggestions are godsend.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went with this format&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsinha_0-1749049610656.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133782i92CBA73125491A19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dsinha_0-1749049610656.png" alt="dsinha_0-1749049610656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 15:07:09 GMT</pubDate>
    <dc:creator>dsinha</dc:creator>
    <dc:date>2025-06-04T15:07:09Z</dc:date>
    <item>
      <title>generating a ticket number</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620621#M62871</link>
      <description>&lt;P&gt;I used Survey123 Connect to prepare a form for residents to submit their complaints. For tracking purposes (both internal and for the public) I would like to automatically generate a number. Nothing complicated, - just the year followed by the next number in the sequence (e.g. 2025-1).&lt;/P&gt;&lt;P&gt;I am using the pulldata query described &lt;A href="https://support.esri.com/en-us/knowledge-base/pre-populate-auto-increment-000033518" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;I have confirmed that the feature layer is editable and supports query.&amp;nbsp;I just cannot get it to work!&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 21:31:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620621#M62871</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2025-06-03T21:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: generating a ticket number</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620796#M62876</link>
      <description>&lt;P&gt;Not sure what you are doing wrong, but can I suggest an alternative?&amp;nbsp; There are issues with using that method for making a unique ID, namely if 2 people are submitting at the same time, it is possible they generate the same ID.&amp;nbsp; The preferred method is to incorporate the now() function and concat what ever pre- or post-fix you want,&amp;nbsp; it is not necessarily pretty but it avoids the issue of multiple "unique ids".&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealKittelson_0-1749045513346.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133777i52D45A6D3300BEEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_0-1749045513346.png" alt="NealKittelson_0-1749045513346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:59:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620796#M62876</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-06-04T13:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: generating a ticket number</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620800#M62877</link>
      <description>&lt;P&gt;To add, you could make it a little prettier by formatting the date:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NealKittelson_0-1749046073183.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133778i7CD181C8ACD18998/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NealKittelson_0-1749046073183.png" alt="NealKittelson_0-1749046073183.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:08:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620800#M62877</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-06-04T14:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: generating a ticket number</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620823#M62879</link>
      <description>&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/763693"&gt;@Neal_t_k&lt;/a&gt;. After having spent almost 3 days trying to calculate a ticket number using the method in the link, your suggestions are godsend.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I went with this format&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dsinha_0-1749049610656.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/133782i92CBA73125491A19/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dsinha_0-1749049610656.png" alt="dsinha_0-1749049610656.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:07:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1620823#M62879</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2025-06-04T15:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: generating a ticket number</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1632218#M63306</link>
      <description>&lt;P&gt;I am so glad I came across this workflow because I have been trying to figure out this same problem the past few days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, have you had any issue with the "Ticket Number" changing and/or updating when the form is reopened or edited in the app and the web? Looks as though the ticket number updates to the most current date/time when opened/edited in both the app and through the Survey123 webpage. Hopefully there is a solution for the ticket number not to update when the form is edited.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 21:09:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1632218#M63306</guid>
      <dc:creator>JordanHyche_MCI</dc:creator>
      <dc:date>2025-07-10T21:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: generating a ticket number</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1632219#M63307</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;I am so glad I came across this workflow because I have been trying to figure out this same problem the past few days.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, have you had any issue with the "Ticket Number" changing and/or updating when the form is reopened or edited in the app and the web? Looks as though the ticket number updates to the most current date/time when opened/edited in both the app and through the Survey123 webpage. Hopefully there is a solution for the ticket number not to update when the form is edited.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 10 Jul 2025 21:11:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1632219#M63307</guid>
      <dc:creator>JordanHyche_MCI</dc:creator>
      <dc:date>2025-07-10T21:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: generating a ticket number</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1632235#M63309</link>
      <description>&lt;P&gt;In that case instead of now() you could use a required user input date and pull that field into the calculation.&amp;nbsp; That still would change upon user change but it won't change automatically upon reopen.&amp;nbsp; You could also play with the calculation modes and see if any of those work to remedy that situation.&lt;/P&gt;&lt;P&gt;I wonder if you could also play with the "start" question type,&amp;nbsp; I don't know if that recalculates on reopen or if it remains the original start date and time, but it could be worth a shot.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/where-do-quot-start-quot-and-quot-end-quot-date/td-p/786531" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/where-do-quot-start-quot-and-quot-end-quot-date/td-p/786531&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-calculation-modes/ba-p/1206967" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-calculation-modes/ba-p/1206967&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the other option is uuid(),&amp;nbsp; Those are kind of not pretty, though.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-survey123-questions/survey123-unique-id/td-p/815617" target="_blank"&gt;https://community.esri.com/t5/arcgis-survey123-questions/survey123-unique-id/td-p/815617&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jul 2025 22:36:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1632235#M63309</guid>
      <dc:creator>Neal_t_k</dc:creator>
      <dc:date>2025-07-10T22:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: generating a ticket number</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1632384#M63317</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/918055"&gt;@JordanHyche_MCI&lt;/a&gt;&amp;nbsp;I used this in the calculation field for &lt;EM&gt;datetime&lt;/EM&gt; so that it does not change to the&amp;nbsp;&lt;SPAN&gt;most current date/time when opened/edited&lt;/SPAN&gt;:&amp;nbsp;&lt;STRONG&gt;once(now())&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 13:05:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/generating-a-ticket-number/m-p/1632384#M63317</guid>
      <dc:creator>dsinha</dc:creator>
      <dc:date>2025-07-11T13:05:10Z</dc:date>
    </item>
  </channel>
</rss>

