Adding a data type by using a REST connection

To add Data types to your application, use the integration designer. Use data types to define and store data, for example, customer addresses.

You can also add a data type that uses local storage. For more information, see Adding a data type that uses local data storage
When you create a data type by using REST, the following artifacts are created:
  • A data type that is a class rule
  • The data model for the data type
  • A REST connector
  • A data page
  1. Click the Open runtime toolbar icon.
  2. In your application, click Turn editing on.
  3. To view the list of current data types in your application, in the navigation panel, click Data.
  4. Click New.
  5. In the Data type name field, enter the name of the new data type.
  6. Optional: To reuse assets from another data type, click Advanced, and select the data type whose assets you want to use.
  7. Optional: To define the system of record with a REST connection for the data type if the REST connection has not been defined yet, perform the following steps:
    1. In the Define source data field, select Now.
    2. In the System field, select Create new.
    3. In the Name field, enter the name of the system of record.
    4. Click Change to add an icon to represent the system of record.
    5. In the Description field, enter a brief description of the system of record.
  8. Optional: To use an existing system of record, in the System field, select the system to use.
  9. In the Endpoint URL field, enter the endpoint URL of the data.
    Note: Heterogeneous JSON structures are not supported in App Studio. Even though rule generation shows as successful, runtime execution fails. Use Dev Studio for heterogenous JSON structures.
  10. Optional: In the Parameters section, choose which parts of the URL are dynamic and need to be parameterized for future calls.
    1. Select the URL part that you want to parameterize.
    2. In the Parameter name field, enter the name.
  11. In the Headers section, click Add header to specify a request header and its value.
  12. In the Authentication section, select basic or NTLM authentication, and specify the user name, password, realm, or domain to use for authentication.
  13. Click Next.
  14. Optional: Map the REST response and request fields to fields in the data view. For more information, see Mapping fields.
  15. Optional: Enter endpoint URLs and authentication modes for the Stage and Prod environments.
  16. Click Submit.