Skip to main content

Set multiple initial values in the list

Power Automate Desktop also has many list actions.

However, if it is necessary to include some initial values after defining the list, the flow is created by combining "Creating a new list" and "Adding items to the list", and the flow is based on the number of items.Will be long.

This time, I will explain how to set multiple items as the initial value of the list.

How to set multiple items in the initial value of the list

This time, it is not "creating a new list" but "setting variables".

The action has the following parameters.

Parameter namevalue
settingMeaned variable names
addressValue stored in variables

In this "destination", it is possible to describe the code directly in addition to strings and numbers.

By using it, you can define a list with multiple initial values by passing the list -type data directly to the destination.

implemented with copy and paste

This time, as a sample, we have prepared a flow that defines a list with three items as the initial value.

Copy the following code and paste it on the edit screen of Power Automate Desktop to add the target action.

SET InitializedList TO ['itemA', 'itemB', 'itemC']

Power Automate Desktop is implemented

  1. Enter "Setting Variables" from "Action Search".

  2. Set the parameter as follows

    Parameter namevalue
    setting%InitializedList%
    address%['itemA', 'itemB', 'itemC']%
  3. By running, you can define a list with multiple initial values.