Question

Read/write arcgis feature service

  • 6 September 2017
  • 2 replies
  • 2 views

Badge +1

How do I read attribute values from an arcgis feature service, update an attribute value for all records read, and write those updates back to the feature service as updates?

I'm using the httpcaller to return attributes from an ArcGIS feature service. Below is the json result. 

{
   "attributes": {
    "OBJECTID": 103,
    "POI_ID": "8",
    "POI_TITLE": "Selmon Greenway",
    "DESCRIPT": "The Selmon Greenway begins at the Tampa Riverwalk. It’s a nice wide paved path that winds around and under the Selmon Expressway for about a mile until it ends at the Meridian Ave Greenway.",
    "FACILITYID": "191841",
    "LASTUPDATE": 1494363906000,
    "LASTEDITOR": "DPD3",
    "GlobalID": "{B93C41EA-5A6A-4BEE-8629-FE547DC74EB1}",
    "PICTURE": null
   },
   "geometry": {
    "x": -9178887.5983503778,
    "y": 3241906.7689313167
   }
  }

I'm creating a url value for PICTURE and I want to write that new PICTURE vale back to the feature service as an update post. Below is the httpcaller post url I'm sending back to the feature service. 

https://Arcserver/arcgis/rest/services/PictureScript/BikeLanesPOI/FeatureServer/0/updateFeatures?token=token value

I'm missing something because nothing updates in the feature service. Workspace runs without error.


2 replies

Badge +16

Is this service in a Portal?

Badge +1
No. 10.4.1 Arcserver service. Not federated with portal.

Reply