Take

This Flow Script tutorial explains how to use the Take function with syntax and examples.

Descriptionβ€Œ

The Take function returns a table where the first n rows are included in the result.

Syntax

β€ŒThe syntax for the Take function is:

Take(table, n)

β€ŒParameters

table - the table with the data.

n - the number of rows to include.

Returns

β€ŒThe Take function returns a table.

Exampleβ€Œ

Let's look at some Take function examples and explore how to use the Take function.β€Œ

Take(colors, 2)
Result: Id: C1, Color: red & Id: C2, Color: green

Take([col: "A"] & [col: "B"] & [col: "C"], 2)
Result: [col: "A"] & [col: "B"]

Last updated