update_features
Update attribute values for all features matching a SQL WHERE clause in a specified layer. Set one or more field values on every selected row in a single bulk operation.
Instructions
Update attribute values on features matching a WHERE clause. Sets the same field value(s) on every matching row (bulk update). For per-row computed values (e.g. incrementing a counter), use execute_python with an UpdateCursor instead.
Args: layer: Exact layer name as shown in the Contents pane where_clause: SQL expression selecting which rows to update (e.g. "STATUS = 'Pending'"). Pass "" to update every row in the layer — be deliberate about this. updates: Dict of {field_name: new_value} applied to every matching row, e.g. {"STATUS": "Verified", "REVIEWED_BY": "GIS Team"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| updates | Yes | ||
| where_clause | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |