How to get value name in bundle 1 and bundle 2 then transfer to
“order”: [
{
“name”: “from bundle 1”
}
{
“name”:“from bundle 2”
}
]
Hey,
Do you need an array??? You can try aggregator and select only name there.
Regards
Msquare Automation - Platinum partner of Make
@Msquare_Automation
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”
},
…
]
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
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}
Hi @Dat_Hoang
Set the source module as iterator in text aggregator
Best regards,
Msquare Automation
Platinum Partner of Make
@Msquare_Automation
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
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
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
Finally. This is working. So if i get a source module which has only one operation , will it run once ?
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