Create a Connection Property with a Drop-Down List

For any connection property, you can provide a predefined list of values in a drop-down list. An integration developer can select from the values when creating a connection in Oracle Integration.

You cannot configure a drop-down list for a security property.
  1. In Visual Studio Code, in the Explorer pane, expand definitions, and select the adapter definition document.
    The adapter definition document has an extension of .add.json, such as adapter.add.json.
    The adapter definition document appears in the workspace.
  2. Expand the connection section of the adapter definition document.
  3. Update the options property for the connection.

    For example, the following code sample shows how to define a drop-down list for the connectionType connection property. The drop-down list has two choices, baseURI and Open API(1.0/2.0/3.0) URL. The properties for the drop-down list appear in bold.

    For more information about the properties, see Properties in the connectionProperties Section.

    "connectionProperties": [
      {
        "name": "connectionType",
        "type": "CHOICE",
        "displayName": "Connection Type",
        "shortDescription": "Connection Type",
        "required": true,
        "hidden": false,
        "scope": ["ACTION"],
        "options": [
          {
            "keyName": "baseURI",
            "displayName": "REST API Base URI"
          },
          {
            "keyName": "openapi",
            "displayName": "Open API(1.0/2.0/3.0) URL"
          }
        ]
      }
    ]
  4. Save your changes.