+ Start a Discussion
Max Alexander 4Max Alexander 4 

Multiple conga queries in apex code

HI,
I'm generating conga merge via pex code, i need ot pass querry parameters
here how i do it
'&QueryId='+ congaQuery2[0].id+
works  fine however if i add second querry
'&QueryId='+ congaQuery2[0].id+','congaQuery1[0].id +

it only takes the first one 
even if i swap places, the one that comes after th Comma is ignored, works fine with  button when i put querry  ID

can anyone help? conga support could not
 
Ivan VrtacnikIvan Vrtacnik
Have you tried aliasing the queries?

And I noticed you are missing a concatenation after the comma literal, but Im guessing that's just a typing error.
Max Alexander 19Max Alexander 19
managed to sort it out
 '&QueryId=' + congaQuery[0].id +','+ congaQuery1[0].id+','+congaQuery2[0].id+','+congaQuery3[0].id+','+congaQuery4[0].id+