Is there a way to update attributes for features in a feature-service that meet specific criteria’s?
As I can see it, I need to:
- Send a web request using the Query operation (basically getting the features that meet the criteria)
- Modify the json received in step 1, (changing the attributes that should be changed)
- Send a web request using the Update Features operation (using the modified json from step 2)
I can make step 1 work. I can also make step 3 work with a fixed json for the “features” parameter, but I don’t know how to receive the json from step 1 and modify it (step 2) and pass it on to step 3. Does anybody have an idea?
Are there other methods to update attributes for features in a feature-service that meet specific criteria’s?
I was thinking of making a GP-service and then use “Run GP Service”, but it seems like a clumsy and unnecessarily cumbersome method.