Returns the primary EntityDef name for the QueryDef object. This is the name of the record type for the query.
When a QueryDef is created with the BuildQuery method of the Session Object, you provide a primary EntityDef (record type) name.
VBScript
querydef.GetPrimaryEntityDefName
Perl
$querydef->GetPrimaryEntityDefName();