Turn off Sync on Feature Layer with Python

319
1
01-30-2024 08:31 AM
KansasDASC
New Contributor III

We're deploying a Field Maps application and the layer we're creating the form for will have associated data that field staff can view for each record. At the same time, they're going to be editing records, sometimes offline. The workflow requires Enable-Sync to be turned on for planned offline use, but we also need to push updates to the feature layer to have current data available to field staff before they go offline.

Is it possible, programmatically, to disable the Enable-Sync option on a feature layer in AGO so that we can push updates to the FL, then turn Enable-Sync back on before staff do their offline work when necessary? The records will be routinely updated, sometimes with new features, sometimes with changes to existing features, so we can't work with something that only allows Append Updates as opposed to the Overwrite Feature Layer or the Update Features options.

Would like to work this into a automated workflow, hence the request for something in Arcpy or the API.

Tags (4)
0 Kudos
1 Reply
GeeteshSingh07
Occasional Contributor II
0 Kudos