Collection Functions(Power Automate Cloud flows)
Contents
Collection Functions
Function to retrieve array items
Function | Importance | Overview |
---|---|---|
first | High | Function to get the first item in an array. first also has a separate function of the same name to get the first character of the text. It works in the opposite way to last. |
last | High | Function to get the last item in an array. last also has a separate function of the same name to get the last character of the text. It works in the opposite way to first. |
take | Middle | Takes a sub-array of the specified number of items from the beginning of the array. take also has a separate text function with the same name. |
item | High | Function to retrieve the current item when looping through an array. |
Function to merge multiple arrays
Function | Importance | Overview |
---|---|---|
intersection | Middle | Function to create a new array with the common items of two arrays. |
union | Middle | This function merges two or more arrays to create a new array. If the arrays contain the same elements, they are deduplicated to form a single item. |
Function to get information about an array
Function | Importance | Overview |
---|---|---|
contains | High | This function checks whether an array contains a specified item. There is also a function of the same name that checks whether a given text is contained. |
empty | High | This function checks to see if one or more items exist in the array. empty also has a function of the same name that checks whether one or more characters of text exist. |
length | Middle | Function to get the number of items in an array. length also has a function of the same name to get the number of characters. |
Other
Function | Importance | Overview |
---|---|---|
join | Middle | This function joins arrays by specifying a delimiter. The result is text. It works in the opposite way of split. |
skip | Middle | Deletes any number of items from the top of the array. |
chunk | Middle | The chunk function divides an array into multiple arrays of equal size. The chunk function has a string function of the same name. It divides a single text into multiple texts of equal size. |
sort | Middle | Function to sort array contents in ascending order. If you want to sort in descending order, use the reverse function together. |
reverse | Middle | Function to reverse sort the contents of an array . |
---