Returns the names of the record types that are suitable for use in queries.
You can use any of the names returned by this method in the entitydef_name parameter for the BuildQuery method. (You can also retrieve an EntityDef object by calling the GetEntityDef method.)
VBScript
session.GetQueryEntityDefNames
Perl
$session->GetQueryEntityDefNames();
VBScript
set sessionObj = GetSession ' Get the list of names of the record types that support queries. entityDefNames = sessionObj.GetQueryEntityDefNames ' Iterate over all record types for each name in entityDefNames set queryDefObj = sessionObj.BuildQuery(name) ' Fill in the query parameters and run it Next
Perl
$sessionObj = $entity->GetSession();
# Get the list of names of the record types that support queries.
$entityDefNames = $sessionObj->GetQueryEntityDefNames();
#Iterate over the state-based record types
foreach $name ( @$entityDefNames ){
$queryDefObj = $sessionObj->BuildQuery( $name );
#Fill in the query parameters and run it
# ...
}