createSimilarInstancesRulesetAsync Method

Create a ruleset with content rules for getting instances are of the same ECClass and have the same property value as the provided record.

createSimilarInstancesRulesetAsync(field: Field, record: Item, computeDisplayValue?: ComputeDisplayValueCallback): Promise<object>

note Will be renamed to createSimilarInstancesRuleset on next major version change.

Parameter Type Description
field Field A field identifying which property of the record we should use
record Item A record whose similar instances should be found
computeDisplayValue ComputeDisplayValueCallback Optional callback function to calculate display value that's
used in ruleset's description. If not provided, display value from record is used instead.

Defined in

Last Updated: 08 January, 2020