PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

List Intersection

Returns the items that appear in both of two lists.

List Intersection compares two lists and returns the items they have in common. Use it to find customers present in two systems, products that are both ordered and in stock, or ids that appear in two exports.

Add the action

In the Process Designer toolbox, open Community-Made and pick List Intersection (or type List Intersection in the search box).

The List Intersection action properties: First List, Second List and Intersection

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
First ListInputList (any type)YesThe first list. Map a list variable.
Second ListInputList (any type)YesThe second list. Map a list variable.
IntersectionOutputList (any type)YesThe items found in both lists, each one once, in the order of First List.

Example

First ListSecond ListIntersection
[1, 2, 3, 4, 4][3, 4, 5][3, 4]
["apple", "Banana", "cherry"]["banana", "cherry"]["cherry"]
[1, 2][][]

Good to know

  • Duplicates are removed: 4 appears twice in the first list but once in the result.
  • Text is compared exactly, case included: Banana and banana are different items. Make both lists the same case first if needed.
  • An empty list gives an empty result. A list that is not set stops the step with Input Error: The first list can't be null ! (or second).

Creator

Franck, The Productivity Lab

On this page