Apply Edits in Feature service

1464
1
01-10-2017 11:21 PM
Jean-YvesCAPRON
New Contributor II

In a feature service , Rest endpoint ApplyEdits permit to fill the version name where the edits occur .

How can we retrieve the version list of the feature being edited ?

Regards

Tags (1)
0 Kudos
1 Reply
PanagiotisPapadopoulos
Esri Regular Contributor

A possible solution will be to retrieve the list of versions through python

import arcpy database = "Database Connections/toolboxDEFAULTVersion.sde" versions = arcpy.ListVersions(database) # Print the versions available to the user for version in versions: print(version)

see here for on line help

ListVersions—ArcPy Functions | ArcGIS for Desktop 

 

this python script can be published as geoprossecing service and finally accessed from your web app in order to create the versions list.

0 Kudos