Using dynamic accounts in predefined operations

You can dynamically override certain details of the account being used to run a predefined operation of a connector.

About this task

Note:

Currently, the dynamic account feature is enabled for certain operations of the following predefined connectors:

  • Sitecore Content Hub

  • MessageBird

  • Docuware

  • RSS

You can also enable the dynamic account feature for custom actions that are created under custom REST connectors. See the REST Connectors section.

When the dynamic account feature is enabled for any predefined operation by webMethods Integration, you can select the account to run a connector operation and then override certain details of the selected account at the time of operation configuration.

Perform the following steps to use the dynamic account feature in a predefined operation:

Procedure

  1. Drag-and-drop a connector containing a dynamic account-enabled predefined operation from the Connectors panel on the canvas, double-click it, and select the predefined operation that you want to run.
  2. Add or select the account that you want to use to run the selected operation.

    For all the dynamic account-enabled operations, you can view the following message: Dynamic Connection is enabled for this action. You can now dynamically pass certain authentication and authorization details that will override the existing values of your selected account.

  3. In the Action configure screen that appears, provide values for the operation input fields.
  4. Provide values for the relevant fields listed under the $connection block and then click Next.

    The values that you provide for these fields override the default values of your selected account.

    Note:
    • Only encrypted fields (such as Password, Client Secret) are mandatory under the $connection block. You can optionally keep the rest of the fields under the $connection block blank, in which case, webMethods Integration uses the default field values that are provided at the time of creating the selected account.

    • If you do not want to override the account details, keep the $connection block blank. At the run time, webMethods Integration uses the selected account with its default values to run the operation.

  5. Next, Test the operation (optional), and then click Done.

    This takes you back to the canvas.

Results

Now whenever you connect this operation to any workflow and run it. webMethods Integration automatically overrides the default values with dynamic values while creating the connection. This connection with the modified values is then used to run the custom operation.