instances_exist
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.
instances_exist(Person, AccountHolder)
instance_exists(Person where self.first_name = 'Thorben')
This will return True if there is at least one Person with the
first_name
Thorben.Last modified 1yr ago