function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Max Alexander 4Max Alexander 4 

Multiple conga queries in apex code

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+