When you use generic queries, such as QueryService.queryRecords and QueryService.queryIdRecords, you must use specific query types and field types to get the appropriate result record types.

The following table lists the expected query types, field types, and record result types when working with generic queries.

VclQueryRecordType Value and Query Fields Enumeration Type Query Result Record Type

ADMINALLOCATEDEXTERNALADDRESS

VclQueryAdminAllocatedExternalAddressField

VclQueryResultAdminAllocatedExternalAddressRecord

ADMINCATALOG

VclQueryAdminCatalogField

VclQueryResultAdminCatalogRecord

ADMINCATALOGITEM

VclQueryAdminCatalogItemField

VclQueryResultAdminCatalogItemRecord

ADMINGROUP

VclQueryAdminGroupField

VclQueryResultAdminGroupRecord

ADMINMEDIA

VclQueryAdminMediaField

VclQueryResultAdminMediaRecord

ADMINORGNETWORK

VclQueryAdminOrgNetworkField

VclQueryResultAdminOrgNetworkRecord

ADMINORGVDC

VclQueryAdminVdcField

VclQueryResultAdminVdcRecord

ADMINSHADOWVM

VclQueryAdminShadowVMField

VclQueryResultAdminShadowVMRecord

ADMINTASK

VclQueryAdminTaskField

VclQueryResultAdminTaskRecord

ADMINUSER

VclQueryAdminUserField

VclQueryResultAdminUserRecord

ADMINVAPP

VclQueryAdminVAppField

VclQueryResultAdminVAppRecord

ADMINVAPPNETWORK

VclQueryAdminVAppNetworkField

VclQueryResultAdminVAppNetworkRecord

ADMINVAPPTEMPLATE

VclQueryAdminVAppTemplateField

VclQueryResultAdminVAppTemplateRecord

ADMINVM

VclQueryAdminVMField

VclQueryResultAdminVMRecord

ALLOCATEDEXTERNALADDRESS

VclQueryAllocatedExternalAddressField

VclQueryResultAllocatedExternalAddressRecord

BLOCKINGTASK

VclQueryBlockingTaskField

VclQueryResultBlockingTaskRecord

CATALOG

VclQueryCatalogField

VclQueryResultCatalogRecord

CATALOGITEM

VclQueryCatalogItemField

VclQueryResultCatalogItemRecord

CELL

VclQueryCellField

VclQueryResultCellRecord

DATASTORE

VclQueryDatastoreField

VclQueryResultDatastoreRecord

DATSTOREPROVIDERVDCRELATION

VclQueryDatastoreProviderVdcRelationField

VclQueryResultDatastoreProviderVdcRelationRecord

DVSWITCH

VclQueryDvSwitchField

VclQueryResultDvSwitchRecord

EVENT

VclQueryEventField

VclQueryResultEventRecord

EXTERNALNETWORK

VclQueryNetworkField

VclQueryResultNetworkRecord

GROUP

VclQueryGroupField

VclQueryResultGroupRecord

HOST

VclQueryHostField

VclQueryResultHostRecord

MEDIA

VclQueryMediaField

VclQueryResultMediaRecord

NETWORKPOOL

VclQueryNetworkPoolField

VclQueryResultNetworkPoolRecord

ORGANIZATION

VclQueryOrgField

VclQueryResultOrgRecord

ORGNETWORK

VclQueryOrgNetworkField

VclQueryResultOrgNetworkRecord

ORGVDC

VclQueryOrgVdcField

VclQueryResultOrgVdcRecord

ORGVDCRESOURCEPOOLRELATION

VclQueryOrgVdcResourcePoolRelationField

VclQueryResultOrgVdcResourcePoolRelationRecord

PORTGROUP

VclQueryPortgroupField

VclQueryResultPortgroupRecord

PROVIDERVDC

VclQueryVMWProviderVdcField

VclQueryResultVMWProviderVdcRecord

PROVIDERVDCRESOURCEPOOLRELATION

VclQueryProviderVdcResourcePoolRelationField

VclQueryResultProviderVdcResourcePoolRelationRecord

RESOURCEPOOL

VclQueryResourcePoolField

VclQueryResultResourcePoolRecord

RIGHT

VclQueryRightField

VclQueryResultRightRecord

ROLE

VclQueryRoleField

VclQueryResultRoleRecord

STRANDEDUSER

VclQueryStrandedUserField

VclQueryResultStrandedUserRecord

TASK

VclQueryTaskField

VclQueryResultTaskRecord

USER

VclQueryUserField

VclQueryResultUserRecord

VAPP

VclQueryVAppField

VclQueryResultVAppRecord

VAPPNETWORK

VclQueryVAppNetworkField

VclQueryResultVAppNetworkRecord

VAPPORGNETWORKRELATION

VclQueryVAppOrgNetworkRelationField

VclQueryResultVAppOrgNetworkRelationRecord

VAPPTEMPLATE

VclQueryVAppTemplateField

VclQueryResultVAppTemplateRecord

VIRTUALCENTER

VclQueryVirtualCenterField

VclQueryResultVirtualCenterRecord

VM

VclQueryVMField

VclQueryResultVMRecord