Mapping fields for data pages
Select the data that your application needs for processing by mapping fields from the REST request and response to the data page. By using the visual data mapper, you can easily choose the items in your request or response and drag the items to the corresponding fields in your application.
- Add a sample request. If you are configuring a source and using the GET method,
go to step 2.
Configuration options Actions Configuring a source with the POST method - To import key value pairs from a file, in the Add
sample request dialog box, click
Choose File to navigate to the
file, and then click Open.You can edit the fields as necessary.Each key value pair must have a colon between the key and the value and be separated by a new line, for example:
amount: 285
currency: usd
- Optional: To add key value pairs that you want to include in the request body, click Add parameter.
- Click Map request.
- Optional: To select the fields from the sample request that you want to use as data page parameters, click Add new. You can change the field name and its type.
- Optional: To include all the fields from the sample request as data page parameters, click Add all.
- Optional: To exclude all the fields in the sample request from the request body, click Clear all.
- Click Initialize call.
Configuring a save option - To paste a sample JSON request body or import a JSON file, click Add sample. If you chose to connect to an OpenAPI Specification on the Connection details page, go to step 3.
- Click Submit.
- To import key value pairs from a file, in the Add
sample request dialog box, click
Choose File to navigate to the
file, and then click Open.
- Choose whether to use live data or data from a JSON file to create the data
object. If you chose to connect to an OpenAPI Specification on the
Connection details page, go to step 3.
- To use data from your system of record, select Live response.
- To use data from a JSON file, click . Follow the prompts to upload a file or paste in a sample JSON, and then click Submit.
- Map the data from the response to the fields in your data object by using the
visual data mapper.There are some limitations to data mapping. For more information, see Data mapping limitations.
- Click Response.
- Optional: To view only the fields that are mapped or to view all fields, toggle the Mapped only option.
- Optional: To view details about the response, such as the return code or the raw data, click the Information icon.
- For each single-value item, such as a string or Boolean, that
you want to use in your application, drag the item from the response column to a
corresponding field in the Fields column.
- If a corresponding field does not exist, add a new field to the data page by clicking the Add icon.
- To add all the fields from the REST response to the data object using the field names, click Add all.
- To remove all the fields from the data object, click Clear all.
- Optional: To undo individual mappings in the response, hover over the green label of a connector parameter, and click the X icon.
- Optional: To edit the name or type of a connector parameter, click its row.
- Map the data from the request to fields in your data object.
Configuration options Actions Configuring a source - Click Request.
- For each connector parameter, select the data page
parameter to which you want to map, or enter a new
parameter.
Configuring a save option - To pass the parameters you specified on the Connection details page as a request from the data page, click Map parameters.
- In the Map to field, select the
field or parameter to which you want to map your
parameters.This feature allows you to configure constants, data page class fields, or data page parameters.
- Click OK.
- Map the data from the request to the fields in your data object by using the visual data mapper. For more details, see step 3.
- Click Next to advance to the Environment settings page.
- Data mapping limitations
There are some limitations when you are mapping JSON properties to REST response and request properties. The Data Object wizard displays an error message when a mapping is invalid.
Previous topic Authenticating with OAuth 2.0 Next topic Data mapping limitations