Add sequential numbers to text aggregator output

Apologies if I’m missing something, but I can’t seem to find a direct answer to the direct question, How does one add sequential numbers to the items from an array (see 1st img) to a text aggregator output?

A useful answer might, for example. say something like, here are the operators/functions (see 3rd img) you need to add in front of your mapped array object (see 2nd img) to add the numbers before each input bundle aggregated into your output.

Note: Bundle position won’t work on this; required grouping rearranges them. Ideally numbering would start over for each group, but one sequence is enough for this.


image
image

1 Like

Hi @Jacob_Allen_Wood
Sample workflow:




Output:

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

image

1 Like

Hi @Jacob_Allen_Wood
If you could share the output bundle from the module where you are aggregating the text, we would be able to assist you further.

How to Share Input/Output bundles

To obtain the input and output bundles for each module:

  1. Run the scenario or retrieve it from the History tab.
  2. For each module, click the white speech bubble located at the top-right corner.
  3. Select “Download input/output bundles” from the dropdown menu.

This will allow you to download the necessary data for further analysis and sharing.

Method 1: Attach a Text File

  1. Copy the output data.
  2. Paste the data into a text file.
  3. Attach the text file to your ticket.

Method 2: Direct Sharing

  1. Use the direct sharing option available in the reply section. Please refer to the image below for guidance.

    Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

Sure! “array” in the txt title is actually the iterator.


text agg 2 output.txt (1.0 KB)
text agg output.txt (1014 Bytes)
text agg input.txt (1.5 KB)
array output.txt (10.3 KB)
array input.txt (12.2 KB)
blueprint.json (414.8 KB)

1 Like

Hi @Jacob_Allen_Wood

Is this the output you want.

Here is the sample blueprint:
blueprint (11).json (507.5 KB)|


I used the parse json module to get the output you shared:
array output.txt (10.3 KB)

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

1 Like

That’s very interesting. Thank you so much for your suggestion!

My next Perplexity AI prompt will be, tell me all about JSON. lol. I’m glad to do it, useful topic. Thx again!

1 Like

Hi @Jacob_Allen_Wood

We’re glad this method worked for you!. We would really appreciate if you mark the answer as solution if it helped you. This will keep the community healthy and organized. Could you clarify your question or provide more details? We’d like to ensure we fully understand your request.

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

I’ll let you know if I figure it out and it works.

1 Like