Create a Type From an Endpoint

When you create a type from an endpoint, you define a data structure by selecting an endpoint and then choosing from the fields available at the endpoint.

For example, when sending a request to an endpoint getall_Employee you might want the structure of the response to be an array with the id and a few specific fields (a string name and a string email). You can create a type from the endpoint and select the fields that you want in the response. All variables that are assigned this custom type will have the same data structure.

To create a type from an endpoint:

  1. Select your application, flow, or page artifact in the Navigator.
  2. Click the Types tab in the Designer to open the Types editor.
  3. Click + Type and select From Endpoint in the menu.
  4. Select an endpoint from the list. Click Next.
  5. Select the endpoint attributes you want to include in the data structure. Click Finish.
If you expand your new type in the Types editor, you can see it is an object type with an array items containing the fields in the endpoint that you selected.

You can view the type's usage information under Usages in the Properties pane (for example, which variables are based on it). Click a usage to readily navigate there.