getDistinctValues Method
Retrieves distinct values of specific field from the content based on the supplied content descriptor override.
getDistinctValues(requestOptions: ContentRequestOptions<IModelConnection>, descriptor: Descriptor, keys: KeySet, fieldName: string, maximumValueCount: number = 0): Promise<string[]>
Parameter | Type | Description |
---|---|---|
requestOptions | ContentRequestOptions<IModelConnection> | options for the request |
descriptor | Descriptor | Content descriptor which specifies how the content should be returned. |
keys | KeySet | Keys of ECInstances to get the content for. |
fieldName | string | Name of the field from which to take values. |
maximumValueCount | number | Maximum numbers of values that can be returned. Unlimited if 0. |
Returns - A promise object that returns either distinct values on success or an error string on error.
Defined in
Last Updated: 08 January, 2020