Skip to main content

JavaScript Examples - Arrays

Snippets for working with arrays, which is how a multi-valued Field holds its values. The array snippets are expressions for a Calculated Field Flow Step. The two multi-valued walkthroughs use a Power Script Flow Step instead, because they add several new columns to each record.

In this section​

ArticleIn one line
How to manipulate an arrayAppend, remove, and sort elements, or join them into a string.
How to pivot two associated multi-valued fieldsTurn one multi-valued Field's values into column headers and fill them from a second.
How to split a multi-valued field into separate columnsSpread a multi-valued Field across numbered columns instead of rows.