Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Know the Name of the subtype Entity.

    Code Block
    languagejs
    linenumberstrue
    // In this example, we'll get information about a Company related to our person, so we want the PersonCompanies subtype.
    var subTypeName = "PersonCompanies";
  2. Access the subtypes of your GE, find the one you want by name, and get the subtype records.

    Code Block
    languagejs
    linenumberstrue
    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

...