HOW TO
The ArcGIS REST API ExtractChanges operation can be used to retrieve changes made to a service with the ChangeTracking capability enabled. Feature service change tracking is an efficient change tracking mechanism for applications. ArcGIS applications can use change tracking to query changes that have been made to the layers and tables in the service. Change tracking can also be enabled for hosted feature services. If all layers and tables in the service have the ChangeTracking capability, the ExtractChanges operation can be used to get changes.
Prerequisites:
In this example, two point features are recovered from a hosted feature layer.


[
{
"minServerGen": 2257664,
"serverGen": 2257664,
"id": 0
}
]

[
{
"attributes": {
"globalid": "{B915D9DA-D9D1-490B-B1EA-F1C946F3869F}",
"objectid": 2
},
"geometry": {
"x": -11316756.7282,
"y": 5963311.1987
}
},
{
"attributes": {
"globalid": "{9E30F522-75FD-42AC-ADAE-C2A8CBBDBFA9}",
"objectid": 1
},
"geometry": {
"x": -12177743.4148,
"y": 5976356.4018
}
}
]



Note that the OBJECTID and GLOBALID values are different from the original since these are unique fields, however the other details and the geometry are the same.
Article ID: 000037178
Get help from ArcGIS experts
Start chatting now