Skip to main content
Question

Read/write arcgis feature service

  • September 6, 2017
  • 2 replies
  • 47 views

dave29
Contributor
Forum|alt.badge.img+7

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

bruceharold
Supporter
Forum|alt.badge.img+19
  • Supporter
  • September 6, 2017

Is this service in a Portal?


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