Sharing a CQSchema
A CQSchema can be shared by different record types if the record types share the small subset of field names that the integration uses. If you have record types that are too different to share one schema, you can define additional CQSchema objects. To define an additional CQSchema, copy the following commands: DefineCQSchema, ChangeFieldMap, SetQuery, and SetResultSet and modify them for additional definitions. Supply the mapping for each schema.