The group ID (as an integer) of the tenant group to which the current record in the buffer specified by the buffer handle belongs. If the buffer does not contain a record from a tenant group, the function returns the Unknown value (?).
Note: This attribute can be used in a WHERE or TENANT-WHERE option as long as the specified buffer is not the same as the buffer of the query or FOR EACH statement.