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

Methods supported in Unroll Function

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: 427 mod
    Answer ✓

    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: 427 mod
    Answer ✓

    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

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

  • Jon Rust
    Jon Rust Posts: 427 mod

    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

    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: 427 mod

    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

    Im just curious – searching for information.

  • pie
    pie Posts: 22 ✭✭
    edited July 2023

    i see what you did there
    😉