Creating a JSON Package Operation

Add a new operation to a package in the JSON Workbench.

Implementation:

  1. Click to access the JSON Workbench tab.
  2. Select a package group from the list on the left.
  3. Right-click a package in the list on the right and select Edit Package. This will open the Update Package interface.

You can also access this while creating or editing a package group by right-clicking the package in the list and selecting Manage Package.

  1. Click Add Operation to add a blank package operation to the list.
  2. Select the Operation Type. This can be set to Expression, Action, and JsonPackage.
  3. Double-click the Output Variable field and enter the keyword of a variable where the value returned from the operation will be saved.
  4. Click Configure to set up the operation. This will differ depending on the selected type. For example, if the type is set to Expression, this will open the expression editor, and if Action is selected, this will ask you to specify which action to use.

Once configured, the operation will appear in the Operation Body column.

  1. Use the On Error Operation Type menu to choose what should happen if an error occurs during the operation.
  2. (Optional) Double-click the On Error Output Variable field and enter the name a variable where the value returned from the error operation will be saved.
  3. Click Configure to set up the error operation. As with step 7, this will differ depending on whether an error triggers an action or an expression.
  4. (Optional) Add more operations as required. You can also drag-and-drop operations to change their order in the list.
  5. Click Save to confirm the changes.