<?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: Webhooks - Trying to understand ServerGen in the changeURL in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110606#M42724</link>
    <description>&lt;P&gt;Usually the &lt;EM&gt;layerServerGen&lt;/EM&gt; number sent to the /ExtractChanges endpoint is an epoch timestamp (in seconds) which retrieves changes from that particular datetime so perhaps it is the timestamp in minutes?&lt;/P&gt;&lt;P&gt;It's not documented in the &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/extract-changes-feature-service-.htm" target="_self"&gt;ExtractChanges API&lt;/A&gt;&amp;nbsp;but I suspect that the &lt;EM&gt;servergens&amp;nbsp;&lt;/EM&gt;request parameter is an array of timestamps in the order of the feature service's layers - a hidden method on the REST API. In your case, there are two layers in your feature service?&lt;/P&gt;</description>
    <pubDate>Sun, 24 Oct 2021 23:08:36 GMT</pubDate>
    <dc:creator>LongDinh</dc:creator>
    <dc:date>2021-10-24T23:08:36Z</dc:date>
    <item>
      <title>Webhooks - Trying to understand ServerGen in the changeURL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110504#M42720</link>
      <description>&lt;P&gt;I'm trying to set up and test webhooks in AGOL and I'm not fully understanding what the ServerGen numbers returned in the change URL actually mean&lt;/P&gt;&lt;P&gt;For example, I've a webhook to monitor changes to a feature layer. The changeURL in the response payload is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://services6.arcgis.com/FFFFFFFFFFFFFFFFF/arcgis/rest/services/myService/FeatureServer/extractChanges?serverGens=[248694,248697]&amp;amp;async=true&amp;amp;returnInserts=false&amp;amp;returnDeletes=false&amp;amp;returnAttachments=false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;According to the documentation, the ServerGen&lt;SPAN&gt;&amp;nbsp;is the current server generation number of the changes. Every changed feature has a version or a generation number that is changed every time the feature is updated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When I make one change to a single feature on my layer why is as array of serverGens included in the changeURL, [248649,248697] in the above URL for example? Should there not just be one ServerGen number associated with that change?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 12:33:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110504#M42720</guid>
      <dc:creator>lightpro</dc:creator>
      <dc:date>2021-10-23T12:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks - Trying to understand ServerGen in the changeURL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110514#M42721</link>
      <description>&lt;P&gt;Are you getting unexpected or no results with your current webhook configuration?&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 15:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110514#M42721</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-10-23T15:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks - Trying to understand ServerGen in the changeURL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110515#M42722</link>
      <description>&lt;P&gt;I've no issue with the webhook. I'm trying to understand what's happening better, specifically the&amp;nbsp;&lt;SPAN&gt;ServerGen&amp;nbsp; numbers that are returned in the changeURL. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It doesn't make sense to me why one edit would produce an array of 2 numbers in the changeURL?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Oct 2021 15:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110515#M42722</guid>
      <dc:creator>lightpro</dc:creator>
      <dc:date>2021-10-23T15:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks - Trying to understand ServerGen in the changeURL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110606#M42724</link>
      <description>&lt;P&gt;Usually the &lt;EM&gt;layerServerGen&lt;/EM&gt; number sent to the /ExtractChanges endpoint is an epoch timestamp (in seconds) which retrieves changes from that particular datetime so perhaps it is the timestamp in minutes?&lt;/P&gt;&lt;P&gt;It's not documented in the &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/extract-changes-feature-service-.htm" target="_self"&gt;ExtractChanges API&lt;/A&gt;&amp;nbsp;but I suspect that the &lt;EM&gt;servergens&amp;nbsp;&lt;/EM&gt;request parameter is an array of timestamps in the order of the feature service's layers - a hidden method on the REST API. In your case, there are two layers in your feature service?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Oct 2021 23:08:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110606#M42724</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-10-24T23:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks - Trying to understand ServerGen in the changeURL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110720#M42727</link>
      <description>&lt;P&gt;Ok, the epoch timestamp makes sense! I also originally suspected that the array was somehow related to the no. of layers however my feature service has 9 layers so I don't think it's that!&lt;/P&gt;&lt;P&gt;Another odd thing I found was that when doing an extract changes query, often the json returned has a different servergen number than was was requested? Much higher than the requested number although the edits seem to be correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 08:26:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1110720#M42727</guid>
      <dc:creator>lightpro</dc:creator>
      <dc:date>2021-10-25T08:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Webhooks - Trying to understand ServerGen in the changeURL</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1111051#M42741</link>
      <description>&lt;P&gt;I suspect (and this is purely speculation from playing with the API) that the returned value is the&amp;nbsp;&lt;EM&gt;toDate;&lt;/EM&gt;&amp;nbsp;the returned value is the next &lt;EM&gt;serverGen&lt;/EM&gt; you should send to get the next set of latest changes. Since&amp;nbsp;&lt;EM&gt;/extractChanges&lt;/EM&gt;&lt;SPAN&gt; is a service level API, it takes time to get each set of changes from each layer for in the database's changes table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On that same note, perhaps the&amp;nbsp;&lt;EM&gt;serverGens&lt;/EM&gt; array is a pair of start/end epoch timestamps denoting the &lt;EM&gt;fromDate/toDate&lt;/EM&gt; which to extract changes?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 22:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/webhooks-trying-to-understand-servergen-in-the/m-p/1111051#M42741</guid>
      <dc:creator>LongDinh</dc:creator>
      <dc:date>2021-10-25T22:37:34Z</dc:date>
    </item>
  </channel>
</rss>

