Get value in bundles and merge become one array


How to get value name in bundle 1 and bundle 2 then transfer to
“order”: [
{
“name”: “from bundle 1”
}
{
“name”:“from bundle 2”
}
]

2 Likes

Hey,

Do you need an array??? You can try aggregator and select only name there.

Regards
Msquare Automation - Platinum partner of Make
@Msquare_Automation

1 Like

It’s like i want to paste in HTTP request. If i do like image it’s will running 2 times. I want “order” automatic increase like “order”: [
{
“amount”: “from bundle 1”,
“price”: “from bundle 1”,
“plan_name”: “from bundle 1”
},
{
“amount”:“from bundle 2”,
“price”: “from bundle 2”,
“plan_name”: “from bundle 2”
},

]

1 Like

Hi @Dat_Hoang
You can map the following part in text aggregator and use coma separator. Now after aggregating this you can map into the order array.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

1 Like

Now is return like 2 operation like this.

How to merge become one text like this :
{“plan_name”:GIGAGO DEMO,“code”:“GIGADEMO”,“amount”:1,“price”:10.00},{“plan_name”:gigatest,“code”:“GIGADEMO”,“amount”:1,“price”:1}

1 Like

Hi @Dat_Hoang
Set the source module as iterator in text aggregator

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

1 Like

Hi @Dat_Hoang

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

1 Like

it’s still return 2 operation

This is my iterator


1 Like

Hi @Dat_Hoang

Then choose the right source module. May be the module before iterator. If you can share the screenshot of scenario after a run we could further assist you.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

1 Like


This is my workflow. First i get line_items array

in line_items array i get product_id

and then i call HTTP request to get details one by one product.
And finally i want to call an HTTP request just once with body value =
{
“orders”: [
{
“amount”: 3,
“code”: “GIGADEMO”,
“price”: 30000,
“plan_name”: “GIGAGO DEMO”
},…
]
}
This is like i said before

1 Like

Hi @Dat_Hoang

Your source module in text aggregator must be the first iterator you have.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

1 Like

Finally. This is working. So if i get a source module which has only one operation , will it run once ?

1 Like

Hi @Dat_Hoang
Yes, Glad to know that your issue is resolved now.We would really appreciate if you mark the answer as solution if it helped you. This will keep the community healthy and organized.

Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation

2 Likes