Definition and Usage
Extract the common elements from two lists and saves them into a new list. This command compares two input lists and identifies all elements that appear in both lists, then creates a new list containing only these common elements.
Parameter Values
Input parameters
Parameter | Description | Possible Values | Required | Options / Notes |
List 1 | Select the first list to compare | Any valid list variable | Yes | Can use variable input |
List 2 | Select the second list to compare | Any valid list variable | Yes | Can use variable input |
Ignore case | When checked, the comparison ignores letter case differences | True/False | No | Default is unchecked |
Distinct | When checked, removes duplicate values from the resulting list | True/False | No | Default is checked |
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
Store the list in a new variable - The command creates a new list variable containing only the elements that appear in both input lists.
Using Variables in Conditions
You can use variables in the input fields by clicking the {x} icon or typing the variable name enclosed in curly braces. This allows you to dynamically select which lists to compare based on previous steps in your workflow.
Notes
If either of the input lists is empty, the resulting list will also be empty.
If there are no common elements between the two lists, the resulting list will be empty.
The "Ignore case" option is particularly useful when comparing text-based lists where capitalization shouldn't matter.
The "Distinct" option helps ensure that each common element appears only once in the output list, even if it appears multiple times in both input lists.