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
-
Click the Open runtime toolbar icon.
-
In your application, click Turn editing on.
-
To view the list of current data types in your application, in the navigation panel,
click Data.
-
Click New.
-
In the Data type name field, enter the name of the new data
type.
- Optional:
To reuse assets from another data type, click Advanced, and
select the data type whose assets you want to use.
- 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:
-
In the Define source data field, select
Now.
-
In the System field, select Create
new.
-
In the Name field, enter the name of the system of
record.
-
Click Change to add an icon to represent the system of
record.
-
In the Description field, enter a brief description of the
system of record.
- Optional:
To use an existing system of record, in the System field, select
the system to use.
-
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.
- Optional:
In the Parameters section, choose which parts of the URL are
dynamic and need to be parameterized for future calls.
-
Select the URL part that you want to parameterize.
-
In the Parameter name field, enter the name.
-
In the Headers section, click Add header
to specify a request header and its value.
-
In the Authentication section, select basic or NTLM
authentication, and specify the user name, password, realm, or domain to use for
authentication.
-
Click Next.
- Optional:
Map the REST response and request fields to fields in the data view. For more
information, see Mapping fields.
- Optional:
Enter endpoint URLs and authentication modes for the Stage and
Prod environments.
-
Click Submit.