Ok, so I am trying to use the ArcRest API to try and export a feature class with attachments to a File Geodatabase. I believe because my file is too large, it is failing out. I have copied the feature service and tried the export script and it works on the copied one [with far fewer data points]. I wondered if there was a way I could filter the data by last edited date. I use editor tracking on an ArcGIS Online Hosted Layer. In the request, how would I set the filter to only get stuff newer than yesterday? Thanks in advance!
See the script in this thread for an idea: query-minimum-date-using-rest-service. Note the comment on line 35. You would use the EditDate field.
Have you checked this page: Sync workflow examples? The topic Workflow Example 4: Setting up sync using LayerQueries contains this:
"layerQueries": {
"1": {
"queryOption": "useFilter",
"useGeometry": false,
"where": "region = 'Southwest'"
}
},
The "where" would be edited to something like:
"where" : "EditDate >= DATE '2016-05-29 18:30:00'"