Combine elements of a collection in a single string

Hi!
I need to combine the elements account_id and account_name into a single long string, separated by tabs. The final result should look like this:

  • 4883972000000000409= Comisiones y gastos bancarios
  • 4883972000000000439= Deuda incobrable

This is the data retrieve from api call:

This is the desired outcome but I would like to know if this can be made for efficient, with less modules.
Thanks for your help!

After API call I have an array iterator:

Then I have a text aggregator:

And then again another text aggregator:

1 Like

Seems pretty optimised to me, but you could probably use only a single Text Aggregator and delete the duplicate.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Hi samliew!
If i only add one text aggregator I get the data in bundles:

Is there a build in function to return the all bundles like in the desired outcome?

Thanks for your reply!

Then you’re setting the source module incorrectly.

Hi!
I set the source module to the iterator.

These are the available sources in the text aggregation module, I tried changing them but I get the same outcome:

If you need further assistance, please provide the following:

Please provide the output bundles of module [43] 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”.

A. Upload as Text File

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

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

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.

This will allow others to better assist you. Thanks!

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Hi!
Please find attached the output bundles of module [43]
Thanks for your help!
Out bundles 43.txt (40.6 KB)

Welcome to the Make community!

You need to scroll all the way to the bottom to see the “OUTPUT”.

Yes, that is possible. You’ll need a minimum of two modules: an Iterator and a Text Aggregator.

This is just an example. Your final solution may or may not look like this depending on your requirements.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.