21-03-24 01:53 PM
Hi Team,
I want to understand how Merge collection works in BP.
I am having collection c1 (9 rows, two columns-A & B) and coll c2 (42 rows . column C & D). All colms are different.
When i use merge collection, it should add all 42 rows & 4 cols, right?
But i am getting it as only 9 rows.
While in other scenario i had 1 row in c1 & 8 rows in c2, it could add all 8 rows.
What can be the issue here? can someone please help.
Answered! Go to Answer.
22-03-24 12:29 AM
Then what if you write those collection on Excel in the order that you want, then you retrieve all the data?
I know this isnt optimal and while I reply on this I'm thinking of how you will know that the value on row 5 of collection 1 should be merged on row 5 of collection 2, but anyway, using excel perhaps may do the trick.
21-03-24 04:28 PM - edited 21-03-24 04:29 PM
@sapna_soni0290
The "Merge Collection" action, in BP's "Utility-Collection Manipulation" VBO, does the following:
Collection 3 (output) will always have the same number of rows as Collection 1 but with the sum of the number of columns from both Column 1 and Column 2.
21-03-24 04:54 PM - edited 21-03-24 04:56 PM
Thanks Michael for replying.
So u mean if my coll1 - 10 rows & coll2 - 5 rows, coll3 will have 10 rows
If coll1 - 5 rows & coll2 - 10 rows, coll3 will have 5 rows ?
I understood the reasoning that it will add columns of both.
Want to know about total rows in output. so it will have coll1 rows in output as total rows?
If this is the case is there any way i can merge both & have total rows of the collection which has max rows ?
21-03-24 08:39 PM
Hello!
I guess count both Collections and the one with most rows treat it like Collection 1. if the position of columns doesnt bother you (or multiple Blank rows) might be the best option.
Regards
21-03-24 09:43 PM
Hi daniel,
Thanks for replying. Position does both me and I have 4 different collection which I want to merge. Each collection will have 2 cols and rows can range between 0 to anything.
Any solution?
22-03-24 12:29 AM
Then what if you write those collection on Excel in the order that you want, then you retrieve all the data?
I know this isnt optimal and while I reply on this I'm thinking of how you will know that the value on row 5 of collection 1 should be merged on row 5 of collection 2, but anyway, using excel perhaps may do the trick.
22-03-24 10:19 AM
I could use this suggestion of excel for now & i will have to just copy my collections to A1, C1, E1 etc & then i will read it back.
This approach works for now but if someone has more optimal solution, please let us know.
Thanks Daniel for helping out.