<?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: Find Map Services Last Published Date? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321466#M24994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about looking at the modified property of the item in ArcGIS Online?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;org&amp;gt;.maps.arcgis.com/sharing/rest/content/items/&amp;lt;item&amp;gt;?f=json&amp;amp;token=&amp;lt;token&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The modified property will be in epoch time:&lt;/P&gt;&lt;P&gt;{...&lt;/P&gt;&lt;P&gt;modified=1497377330000,&lt;/P&gt;&lt;P&gt;...}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at the &lt;A href="https://stackoverflow.com/questions/375154/how-do-i-get-the-time-a-file-was-last-modified-in-python"&gt;last modified&lt;/A&gt; time stamp of the mxd&amp;nbsp;and compare it to the modified property of the service. &amp;nbsp;If the mxd was modified significantly later, as it's unlikely they'll perfectly match up, then you can overwrite it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Aug 2017 21:17:18 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2017-08-31T21:17:18Z</dc:date>
    <item>
      <title>Find Map Services Last Published Date?</title>
      <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321462#M24990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just wondering if anyone knows if it is possible to find the date a Map Service was last published to our GIS Server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently automate the publishing of a MXD document to the Online Map Server, but I want to skip the update if the document (layer symbology, layer visibility etc.) has not been modified since it was last published.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have worked out how to detect file modification date no worries, but its the online map service I am unable to work out how to detect last published date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 01:54:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321462#M24990</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2017-08-23T01:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find Map Services Last Published Date?</title>
      <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321463#M24991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I understood, is your data changing (records are getting added or deleted) or your layers getting updated (new layers get added or existing layers get removed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or are you adding new fields in the feature class used as layers in the MXD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 13:28:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321463#M24991</guid>
      <dc:creator>shan_sarkar</dc:creator>
      <dc:date>2017-08-23T13:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Find Map Services Last Published Date?</title>
      <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321464#M24992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I should have made that clearer (I will edit original post), but I am meaning I am changing symbology etc, then re-publishing my map service. I want to find the last time the map service (sitting on the map server) was published.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 00:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321464#M24992</guid>
      <dc:creator>BenVan_Kesteren1</dc:creator>
      <dc:date>2017-08-24T00:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Find Map Services Last Published Date?</title>
      <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321465#M24993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ben... you have this in the Python place... what do they use over in &lt;A href="http://server.arcgis.com/en/server/latest/get-started/windows/what-is-arcgis-enterprise-.htm"&gt;Server world&lt;/A&gt; since there is nothing in the &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/main/arcgis-pro-arcpy-reference.htm"&gt;arcpy tree&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 02:25:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321465#M24993</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-24T02:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find Map Services Last Published Date?</title>
      <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321466#M24994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about looking at the modified property of the item in ArcGIS Online?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F" rel="nofollow" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;org&amp;gt;.maps.arcgis.com/sharing/rest/content/items/&amp;lt;item&amp;gt;?f=json&amp;amp;token=&amp;lt;token&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The modified property will be in epoch time:&lt;/P&gt;&lt;P&gt;{...&lt;/P&gt;&lt;P&gt;modified=1497377330000,&lt;/P&gt;&lt;P&gt;...}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can look at the &lt;A href="https://stackoverflow.com/questions/375154/how-do-i-get-the-time-a-file-was-last-modified-in-python"&gt;last modified&lt;/A&gt; time stamp of the mxd&amp;nbsp;and compare it to the modified property of the service. &amp;nbsp;If the mxd was modified significantly later, as it's unlikely they'll perfectly match up, then you can overwrite it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 21:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321466#M24994</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2017-08-31T21:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find Map Services Last Published Date?</title>
      <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321467#M24995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I've found the last published date/time is not available from any of the APIs (service REST endpoint nor the admin API nor the Updated date in AGOL, for a layer item that references an on-prem AGS service).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can tell the only way to resolve the last-published date/time for an AGS service is to&amp;nbsp;&lt;/P&gt;&lt;P&gt;browse the AGS server directory and get the timestamp on the \\AGS_SERVER_NAME\DRIVE$\arcgisserver\directories\arcgissystem\arcgisinput\FOLDER_NAME\SERVICE_NAME.MapServer folder, and/or on the MXD in the underlying folder at ...\extracted\v101\MXD_NAME.mxd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not ideal. Would be great if it was logged somewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 00:08:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321467#M24995</guid>
      <dc:creator>deactivated-user-ChrisBeaudett</dc:creator>
      <dc:date>2018-09-12T00:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find Map Services Last Published Date?</title>
      <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321468#M24996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The life cycle information can be used for that, (added at 10.5):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://dev0004683.esri.com/server/admin/services/Hosted/test.FeatureServer/lifecycleinfos?f=pjson" title="https://dev0004683.esri.com/server/admin/services/Hosted/test.FeatureServer/lifecycleinfos?f=pjson" rel="nofollow noopener noreferrer" target="_blank"&gt;https://machine.domain.com:6443/arcgis/admin/services/MyService.MapServer/lifecycleinfos?f=pjson&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return information in Epoch time about when the service was created and last modified:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="string token"&gt;"lifecycleinfos"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"user"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"timestamp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1536190667304&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"type"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"created"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"user"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"timestamp"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1536190667380&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"type"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"started"&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="string token"&gt;"lastmodified"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;1536190667380&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/321468#M24996</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2021-12-11T15:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find Map Services Last Published Date?</title>
      <link>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/1569047#M73351</link>
      <description>&lt;P&gt;Came here to find this answer, and Jonathan's is very good, and more pertinent to Python than what I'm about to add. But since some folks might come to this thread from a wider concern than just Python, I thought I'd add: if you log in to your REST admin pages (typically at &lt;A href="https://{servername-URL}/arcgis/admin" target="_blank"&gt;https://{servername-URL}/arcgis/admin&lt;/A&gt;), then browse to the specific service lifecycle page, you get this information translated into human-readable time (ie not Epoch time). So, for me, this was easily readable at https://{server-url}/arcgis/admin/services/{foldername}/{servicename}.MapServer/lifecycleinfos&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2024 20:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/find-map-services-last-published-date/m-p/1569047#M73351</guid>
      <dc:creator>MikeDolbow</dc:creator>
      <dc:date>2024-12-16T20:21:14Z</dc:date>
    </item>
  </channel>
</rss>

