Skip to main content
Question

Read/write arcgis feature service

  • September 6, 2017
  • 2 replies
  • 12 views

dave29
Contributor
Forum|alt.badge.img+6

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

bruceharold
Contributor
Forum|alt.badge.img+17
  • Contributor
  • September 6, 2017

Is this service in a Portal?


dave29
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • September 7, 2017
No. 10.4.1 Arcserver service. Not federated with portal.

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings