PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

List Difference

Returns the items of the first list that are not in the second list.

List Difference returns the items of the first list that do not appear in the second list (first minus second). Use it to find new records since the last export, invoices not yet paid, or users missing from a group.

Add the action

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

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

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
First ListInputList (any type)YesThe list to start from. Map a list variable.
Second ListInputList (any type)YesThe items to take out. Map a list variable.
DifferenceOutputList (any type)YesThe items of First List that are not in Second List, each one once, in the order of First List.

Example

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

Good to know

  • The order of the lists matters: items that are only in Second List (5 above) are not returned. Swap the lists to get them.
  • Duplicates are removed: 2 appears twice in the first list but once in the result.
  • Text is compared exactly, case included: banana does not remove Banana.
  • 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