How to populate an array on a new line each time

CleanShot 2024-04-14 at 15.41.24

Hi :slight_smile:

When populating an array into a Google Doc how can i make each item populate on a new line please?

Thanks :slight_smile:

Kyle

If it is just a simple array, you can use the built-in function get

e.g.:

{{ get(array; index) }}

For more information, see

Links

Here are some useful links and guides you can use to learn more on how to use the Make platform, apps, and app modules. I found these useful when I was learning Make, and hope they might benefit you too —

General

Help Center Basics

Articles & Videos

2 Likes

Thanks so much will try that :slight_smile:

so would it be {{ get(4. golden nuggets: Ideas; index) }} ?

yes, paste it into your field and then replace the array with the mapped variable.

2 Likes

Thank you will try now!

Unfortunately that didn’t work. It didn’t output anything at all. What is index?

index is the position in the array.

so if you want the first item,

{{ get(4.`golden nuggets: Ideas`; 1) }}

If you need further assistance, please provide the following:

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:
Screenshot_2023-10-07_111039

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Screenshot_2023-08-24_230826
(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.
Screenshot_2023-10-06_141025

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-input-bundle.txt (12.3 KB)
module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

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

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

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

2 Likes

Hi @KyleBehrend
You will be adding the content into the doc as HTML format
so you can add a
where you rquire a line break

If you require additional assistance, please don’t hesitate to reach out to us.
MSquare Support
Visit us here
Youtube Channel

2 Likes

If you don’t want to map individual items in an array, you can also use the built-in function join

e.g.:

{{ join(4.`golden nuggets: Ideas`; "<br>") }}

For more information, see https://www.make.com/en/help/functions/array-functions#join-array--separator-

2 Likes