If you have a comment on this topic, contact Aptify Documentation. If you want to return to the Aptify Community Site, please click here.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

When you have a GE Object and want the GE Object for one of its subtype records, you can get it if you know the name of the subtype.

This How-To assumes you have already gone through the steps in Get A GE Object and are coding inside of a callback to Aptify.framework.genericEntity.getEntityObject(). It continues that example, assuming you have already defined personGE.

Step-by-step guide

 

  1. Know the Name of the subtype Entity.

    // 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.

    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

Filter by label

There are no items with the selected labels at this time.

  • No labels