We have updated our Terms of Service, Code of Conduct, and Addendum.

Methods supported in Unroll Function

Options
dduke
dduke Posts: 14 mod
edited July 2023 in Stream

Does the unroll function support any other methods than split() ?

Please give me your examples 🙂

Best Answer

  • Jon Rust
    Jon Rust Posts: 431 mod
    Answer ✓
    Options

    Its not so much a "method" that it supports, but rather that you need to supply it an array. Each member of the array is then used to spawn a new event.

Answers

  • Jon Rust
    Jon Rust Posts: 431 mod
    Answer ✓
    Options

    Its not so much a "method" that it supports, but rather that you need to supply it an array. Each member of the array is then used to spawn a new event.

  • dduke
    dduke Posts: 14 mod
    Options

    Im curious if theres another JavaScript method other than split() you could use in the "Source field expression".

  • Jon Rust
    Jon Rust Posts: 431 mod
    Options

    You can supply any JS there that results in an array. That could be a field that is an array, or it could be a method calling a field that results in an array (like split())

  • dduke
    dduke Posts: 14 mod
    Options

    Can you think of another method other than split? I was hoping to get an example, with the data structure.

  • Jon Rust
    Jon Rust Posts: 431 mod
    Options

    I think were going about this from the wrong angle. What does your data look like, and what are you trying to do with it?

  • dduke
    dduke Posts: 14 mod
    Options

    Im just curious – searching for information.

  • pie
    pie Posts: 22 ✭✭
    edited July 2023
    Options

    i see what you did there
    😉