Defining an action

Once you create a connection, you can define one or more actions that use the connection. A connection does not show in the Services Catalog in Domino Volt until an action is defined for it.

About this task

To define an action for a connection, complete the following steps:

Procedure

  1. Navigate to the connections list.
  2. Click on the connection you want to define an action for.
  3. Click on Create New Action:


  4. Specify a name for the action, and optionally provide a description. These are displayed in the list of services in Domino Volt. Click Next.
  5. Select an Operation from the list, then click Next.


  6. Enter the properties for the action:


  7. To parameterize a property value, or part of a property value, specify the parameter using the following syntax:
    %parameter-name:default-value:description%
    where
    Parameters display in the input mapping screen in Domino Volt.
    properties fields in new action dialog
  8. Some connection types require reading from a file. For example, if defining an action to read from an Excel file, the file must be provided. To upload the file to Link, select Upload File from the drop-down:
    upload file for action in link
  9. Click Next to advance to the Schema page.
  10. Depending on the type of connection, the ability to generate a schema may or may not be available. If the connector is capable of generating a schema, the user interface will display a Generate button:


    If the Generate button is available, click Generate to generate a schema. Link invokes the action to describe the response and will construct a Link schema and will name it the same as the action name.

    If the Generate button is not available, you can provide a schema that you have created previously that represents the request or response data by selecting the Select Existing option.



    Alternatively, a new schema can be created that defines the data by uploading or pasting a JSON template, JSON Schema specification or an XSD for XML data. A JSON template is an example JSON document that represents the request or response data. To upload a JSON or XSD schema file select the Upload Schema option:



    To paste a JSON template, JSON schema or XSD, select Paste Schema and enter or paste the data:



    If you provide a JSON schema using this method, select the schema from the Schema list, then select the JSON element with the blue icon for the Schema Type:
    alternate method of creating a schema
  11. Click Save. The action is saved and deployed to the Link runtime.