attributes_unique_values
Retrieve distinct values from a field in a QGIS layer, limited to 20 with a count of total unique entries. Solves the need for a quick lookup of unique attribute values without fetching the entire schema.
Instructions
List a field's distinct values, capped at 20 with a total distinct count.
Same cap as the fields option on get_layer_schema - use this instead
when you only need one field's distinct values without the rest of the
schema.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer_id | Yes | ||
| field_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||