GetEntityDefNames
Description
Returns an array containing the names of the record types in the current database's schema.
This method returns the names of all state-based and stateless record types.
After using this method
to get the list of names, you can retrieve the EntityDef Object for a given
record type by calling the GetEntityDef method.
Syntax
Perl
$session->GetEntityDefNames();
- Identifier
- Description
- session
- The Session object that represents the current database-access session.
- Return value
- A reference to an array of strings is returned.
Example
Perl
#Create a DevOps Plan session
$sessionObj = $entity->GetSession();
#Get the names of the record types in the
# current database's schema.
$entityDefNames = $sessionObj->GetEntityDefNames();
#Iterate over the record types
foreach $name ( @$entityDefNames )
{
$entityDefObj = $sessionObj->GetEntityDef( $name );
#Do something with the EntityDef object
}