Skip to content

Merge lists

In Power Automate Desktop, a variable that can hold multiple values is called a “list”.

This article explains how to merge multiple lists and get the merged list.

To learn how to create a list, see this page.

Copy the following code and paste it into the Power Automate Desktop flow designer to add the actions.

Variables.CreateNewList List=> List
Variables.AddItemToList Item: 1 List: List NewList=> List
Variables.AddItemToList Item: 2 List: List NewList=> List
Variables.AddItemToList Item: 3 List: List NewList=> List
Variables.CreateNewList List=> List2
Variables.AddItemToList Item: 4 List: List2 NewList=> List2
Variables.AddItemToList Item: 5 List: List2 NewList=> List2
Variables.AddItemToList Item: 6 List: List2 NewList=> List2
Variables.MergeLists FirstList: List SecondList: List2 OutputList=> OutputList
  1. In “Search actions”, type “Merge lists”.
  2. Select the two lists you want to merge. The merged list contains the items of the first list followed by the items of the second list, so the order in which you select them determines the order of the items in the merged list. The two original lists aren’t changed.

If the two lists you merge are of incompatible types, the error “The lists supplied are of incompatible types” occurs.