instances_exist

Description

instance_exists or instances_exist returns True if the case has at least one instance of the specified type(s). Like with other declarations an optional where clause is also supported.

Example

1
instances_exist(Person, AccountHolder)
Copied!
This will return True if there is at least one Person with the role AccountHolder.

Example with Where

1
instance_exists(Person where first_name = 'Thorben')
Copied!
This will return True if there is at least one Person with the first_name Thorben.
Last modified 8d ago