Convert a list of text separated by lines to bundles

Hi there,

I currently have an input of strings in a form of a text list separated by new lines, for example:
https://string1/file1.png
https://string2/file2.png
https://string45/file49.png
https://string4/file27.png

How do I make split them into separate bundles?

Sorry for the silly question… :blush:

You can use the split built-in function with {{newline}} as the second parameter.

Screenshot_2023-11-20_151108

2 Likes

Hi @samliew That makes a lot of sense, somehow I still see one bundle in the output:

image

If you need more assistance, please provide the output bundle of your Trigger module [1].

1.

Please provide the output bundles of the modules by running the scenario, then click the white speech bubble on the top-right of each module, save the bundle contents in your text editor as a bundle.json file, and upload it here into this discussion thread.
Screenshot_2023-10-06_141025

This will allow others to better assist you. Thanks!

2 Likes

Sorry, I can’t use that as it isn’t valid JSON. In future, could you format JSON code before submitting the reply, otherwise the forum software will convert some characters to make them invalid (checked when pasted into https://jsonformatter.org)

1.

Could you format your JSON by editing three backticks ``` before and after the code, like this:

```
input/output bundle goes here
```

2.

or use the format code button in the editor:
Screenshot_2023-10-02_191027

3.

Alternatively, you can paste and save the contents of the bundles in your text editor as a bundle.json file, and upload it here into this discussion thread.

Once the post has been submitted, it’s too late to format it since it’s already butchered, and you need to make a fresh copy of output bundle, and format it before submitting the forum post.

1 Like

You can use {{space}} instead of newline:

Screenshot_2023-11-20_171109

2 Likes

As always @samliew your offer worked ! :partying_face: :partying_face: :partying_face: So when strings are separated by Spaces, you can use {{space}} - I couldn’t find it in any documentation.

(I had to remove the public links from the post).

1 Like