Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi @GouthamDevaraj ,
One way you could do this is set a merge operation on the second list variable:
It seems like this option would be viable for you since the lists only contain strings in them.
Judging by what is written in the user guide for the "Merge Lists" block it seems like its for lists with objects in them.
Hi @GouthamDevaraj ,
One way you could do this is set a merge operation on the second list variable:
It seems like this option would be viable for you since the lists only contain strings in them.
Judging by what is written in the user guide for the "Merge Lists" block it seems like its for lists with objects in them.
solution provided by @Shai_E is perfect..
Hi Team, thanks for your suggestions, I already tried it, but when I do a merger this is how I get the result,
but I want my results to be in a single array something like this.
[
"80554065",
"80554075",
"80554050",
"80554025"
]
Hi @GouthamDevaraj ,
For me it worked, you most likely did something wrong.
Did you do it like how i did in the picture?
Updated to 10:49AM: Check out Afeefas example it merges the two variables into a third one using the merge operation.
Best Regards
I have created a demo automation that might suit your use case.
Please take a look and let me know if that works for you.
Thanks
can you show me your flow so that i can see what you did?
I have already shared the automation json file.
Please try to import it into your workspace and see if that helps.
Follow the instructions here to import the automation.
Thanks
Hi @AfeefaTk ,
Thanks for sharing the json, in my case the both variables has arrays and I need to make it as a single array. I am sharing an automatin josn file here for youre refeence.
Hi @GouthamDevaraj ,
There are two issues:
1. Is the addition of a list in the form of a string to a list variable
2. Even if you convert that list string into a list you will still have a list inside a list as a variable.
What you are currently doing is adding a list as a string to a list variable.
You have
Add item to list1 :
"["12354456","123434563","8765676875"]"
So you will get a value for list1 as:
["["12354456","123434563","8765676875"]"]
Best thing to do would be to add the strings separately to each variable (list1, list2).
And then use two merge operations to merge (list1, list2) values into a third list variable.
Best Regards
I have two list variables having results as shown below
[
"80554050",
"80554025"
]
Variable 2 Result
[
"80554065",
"80554075"
]
I want to merge these two results and put them in one array as shown below. I have used the merge list block but it's asking for some unique fields which I don't have in the result, So is this possible to achieve in any other ways?
[
"80554065",
"80554075",
"80554050",
"80554025"
]