Skip to main content

Tips: Bulk Sending Retrieved Values with Line Breaks Using "Split List Output"

As of May 1, 2024

Yuki Omori avatar
Written by Yuki Omori
Updated this week

📝 Overview

When performing actions like managing a database or integrating with apps to retrieve a list of data, multiple values are often returned in a comma-separated format.

In Yoom, this is known as a "List-type Output." If you want to split those values and use them individually, you can use the "Split List Output into Individual Outputs" operation.


🛠️ How to Set It Up

1. Obtain a list-type output

First, retrieve the list-type output through the desired operation. Once you've got the list, go to the Flowbot editing screen and click the "+" button.

2. Select the Data Operation

Choose the operation that manipulates or converts data, then select the option "Split the List-type Output into Individual Outputs."

3. Configure the Operation

Select the operation or output you want to split, and save your settings.

☝️ Note:

Since testing isn't possible during setup, create test data and run the Flowbot once to ensure everything works properly.


📍 Example: Inserting Line Breaks & Posting to a Chat

By splitting the list-type output, you can post the retrieved values in a format other than a comma-separated list.

Below is an example of how to take multiple sets of names retrieved from a database and post them with line breaks instead of commas. While this example uses Slack, the same approach can be applied to other chat tools.

Here’s the configuration screen for when using the comma-separated values obtained from the database.

When using the original comma-separated output, your setup might look something like this:

If you split the list output, you can format the data like this:

  • If you expect to retrieve and post up to 10 names, test the split output with the maximum number of names (e.g., {{Name_1}} to {{Name_10}}).

Here’s what the post will look like when 5 sets of data are retrieved and posted, from {{Name_1}} to {{Name_5}}.


⭐️ Additional Tips

  • Set Limits for Retrieved Data

    If you're expecting a fixed number of values (e.g., 10 names), it's a good idea to set your Flowbot configuration to handle the maximum number of names you might retrieve, such as {{name_1}} through {{name_10}}.

  • Handling Missing Data

    If fewer than 10 names are retrieved, the unused outputs (like {{name_3}} through {{name_10}}) will simply remain blank, which is perfectly fine.

Search Keywords

List-type output, split, individual outputs, list, split list output, Flowbot, retrieved data, comma-separated values, line breaks

Did this answer your question?