...
Know the Name of the subtype Entity.
Code Block language js linenumbers true // In this example, we'll get information about a Company related to our person, so we want the PersonCompanies subtype. var subTypeName = "PersonCompanies";
Access the subtypes of your GE, find the one you want by name, and get the subtype records.
Code Block language js linenumbers true var personGESubTypes = personGE.subTypes; var personCompanySubType = personGESubTypes.findByName(subTypeName); var personCompanyRecords = personCompanySubType.records; // records is an array of GE Objects that you can index into or loop through
...