Run If

Sets a condition to dictate the logic that is processed at runtime.

Child actions contained within this action run only if the condition evaluates to true. Child actions run in the same context as this action configuration.

This action is similar to the action Set a condition.

Action Settings 

Condition

Following are the available conditions.

  • If current item field equals value: Evaluates if an individual field of the current item matches or compares to a certain value/column.
  • If any value equals value: Allows the use of two fields, two workflow variables or two lookups to compare at runtime.
  • Title field contains keywords: Allows a comparison to be performed that determines if the item's title contains certain specific words.
  • Modified in a specific date span: Evaluates to true if the current item is modified between two specified dates.
  • Modified by a specific person: Evaluates to true if the item has been modified by a specific person. The username is case-sensitive. To validate an entered name, click Check name.
  • Person is a valid SharePoint user: Checks if the specified user is a member of the SharePoint site.
  • Created in a specific date span: Checks if the item was created between the specified dates. If manually entering information, ensure that the date format matches that used in the SharePoint environment.
  • Created by a specific person: Checks if an item was created by a specific user. To validate an entered name, click Check name.
  • The file type is a specific type: Checks if the file type extension of the current item is of the specified type.
  • The file type in a specific range kilobytes: Checks if the file size of a document is between the specified sizes, in kilobytes.
  • Check list item permissions (available when running the action as the workflow owner [impersonation]): Checks if the permissions of a specified user matches or is higher than the specified permission level provided for an item in a list. It does not check that the users have specific permission levels. A user can be a single user, multiple users or a group. For the condition to evaluate as true, the user/s must have at least the permissions that the permission levels provide.
  • Check list item permissions levels (available when running the action as the workflow owner [impersonation]): Checks if permission levels of a specified user matches or is higher than the permission levels for an item within this list. A user can be a single user or multiple users but cannot be a group for this condition. For the condition to evaluate as true, the users must have the permission levels specified in the condition. There are many operators that can be used within this condition, e.g. equals, not equals to, greater than, less than, is empty, contains etc. Enter data manually into the text box or use lookups to dynamically build the values at run time.

Add Conditions

Multiple conditions can be constructed by using the Add condition option.

Specify And or Or between the condition statements.

Conditions are evaluated in order, from first to last condition (top to bottom). For example, the first two conditions are evaluated, and then that result is evaluated against the next condition. This pattern continues until a final result is reached. ​

Related information

Set a condition

Find, add, and configure actions