Configuring an Action Condition
  • 21 Nov 2024
  • 3 Minutes to read
  • Dark
    Light
  • PDF

Configuring an Action Condition

  • Dark
    Light
  • PDF

Article summary

You can configure the Action Condition node that you added under an Action node to determine how to proceed in the Workflow based on the action results.

You can configure the Action Condition node with one or both of the following types of Action Conditions:

Adding a Condition Based on Action Result

In the Actions Conditions pane, you can configure the Action Condition to be based on the action's success or failure. In this case, the Workflow proceeds on the True and False branches, according to the action result, as follows:

  • The True branch if the Action Condition checks for action failure and the action failed or if the Action Condition checks for action success and the action succeeded.
  • The False branch if the Action Condition checks for action failure and the action succeeded or if the Action Condition checks for action success and the action failed.

To add an Action condition based on action result to the Workflow

  1. In the Action Conditions pane, select Condition based on action result.

  2. From the dropdown, select Success or Failure. Success or Failure appears in the Action Conditions box.

  3. At the end of the False branch, hover over the + icon and add one or more of the following to run if the outcome of the action does not match the action condition (success or failure)

  4. At the end of the True branch, hover over the + icon and add one or more of the following to run if the outcome of the action matches the action condition (success or failure):

Adding a Condition Based on Asset Criteria

You can add an action condition based on one or more asset criteria by creating a query using the Query Wizard or by using an existing query, by creating a query using the Query Wizard or by using an existing query, and then proceed in the Workflow accordingly.

An action based on Asset criteria checks if the asset resolved from the above action matches the query criteria. For example, checks if the resolved Device asset has an Asset Unique ID containing a certain number (query).

To add a condition based on asset criteria

  1. Under the Condition based on asset criteria section, create a query using the Query Wizard or use an existing query, to check if the resolved asset matches the query criteria.
  2. To add an additional condition based on asset criteria, click + and continue as in step 1.

In the following example, the Workflow checks that the user resolved from the above action has an Asset Unique ID containing 99.
ActionConditionAssetCriteria

The following example uses an existing query to check that the user resolved from the above action is a non-admin user.
ActionConditionBasedOnSavedQuery

To clear an asset criteria

  • Hover over the criteria, and click the x. The criteria values are cleared.



Was this article helpful?