AirData App Objects

AirData App Objects are custom Objects that can contain any number of properties of any Variable Type. They are similar to Custom Data Types, except in addition to providing an Object structure that can be used to define locally-stored variables, creating an AirData App Object creates the scheme in AirData, allowing for long-term information storage.

Defining AirData App Objects

AirData App Objects are defined in AirData Builder. To create a new AirData App Object:

  1. Click the '+' icon to the right of the App Objects section in the Tree.
  2. Select Add App Object from the menu that appears.
  3. Rename the App Object by double-clicking the auto-generated App Object name ("Untitled Object") that appears in the Tree and replacing it with a more informative name.
  4. To add new properties to the App Object, click on the '+' icon that appears to the right of the App Object in the Tree and select the data type of the desired property. Property names can be edited in the same way App Object names can.

Here is an example of an App Object ("Information") with four properties ("name", "phone", "email", and "company"):

1922

In addition to to the properties explicitly defined as part of an App Object, each App Object is also given a another property:__id**, which serves as a unique identifier for each App Object instance. A unique __id value is automatically assigned whenever an App Object instance is added to AirData. To display this property more explicitly, add a text property and call it "__id". This will display the previously-hidden unique identifier of each App Object instance:

908

📘

__id values are automatically assigned.

All App Objects are assigned unique __id values, even when the property is not explicitly displayed.

Calling an App Object instance based on its __id is valuable when the instance needs to be specific and unique, such as, for example, when declaring which instance will be deleted as part of an AirData Request. Under most other circumstances, it is safe for this unique identifier to be abstracted away, which is why it is not displayed in AirData by default.

Using a Defined App Object

Once defined, an App Object can be used as a type anywhere a variable can be declared, such as the Variable Tree or as expected input in a Data Flow. To do so, select the relevant object from the options that appear upon selecting objects as the variable type. For example, the following example provides two objects to choose from, "Identity" and "Information":

850

App Object properties, like the properties of all other objects, can be referenced with dot notation. For more details and examples on how use dot notation, see Path Expressions.

To query an AirData App Object, use the AirData Request Data Operation. This allows you to save new App Object instances, update existing App Object instances, and pull Lists of Objects already saved to the App Object.

Information structured according to an AirData App Object and saved to AirData will be saved in a Datastore and accessible long after the associated Journey is complete.