range. Math Function.(Power Automate Cloud flows)

Japanese version.

Get an array whose items are sequentially numbered starting with the specified integer.


range(<startIndex>, <count>)
startIndexRequired fieldThe starting value of the sequential number.
countRequired fieldNumber of items to retrieve.

How to use

In most cases, it is used in the "Value" when "Initialize variable" or "Set variable" of type "Array".

Click on the "Expressions" tab, range, and the function name and () will be set in the formula field.

The first argument is the first integer in the sequence number, and the second is the number of elements.

If you want to use dynamic contents or variables, specify them specially.

(How to get dynamic content with an expression)

If you see something like the following, your settings are complete.

Click on the purple icon to change the function.

For example, range(3,5) results in an array of sequential numbers from 3 to 7.



Math Functions