+ Start a Discussion
Mayank Srivastava (Salesforce fan)Mayank Srivastava (Salesforce fan) 

Can anyone help me figuring this out (Conga Composer related)

 

I'm using Conga composer to generate reports and the reports are being downloaded to my Personal Contents Folder on salesforce by default. 

 

I wish to download the generated report to the Shared Documents folder instead. Is there a way to do it? Following is the code I wrote but it doesn't work for some reason. The bolded lines are the ones that should accomplish it:

 

"&id=" + Id + 
"&TemplateId=a2pC0000000HJnr" + 
"&FP0=1" + 
"DocFolderId=00l800000015znh" + 
"&ReportId=00OC0000005Ptsh,00OC0000005PtqX,[StatusFrustrated]00OC0000005Q6dk?pv0=" + TEXT(Account_Status__c) + ",[StatusAtRisk]00OC0000005Q9eM?pv0=" + TEXT(Account_Status__c) + ",[CaseHistory]00OC0000005Pttu,[ContactDetails]00OC0000005PuNQ,[ClientVersion]00OC0000005Pudi,[CaseSumSGTW]00OC0000005PwV2,[LastStatusUpdate]00OC0000005Q2oA" + 
"&QueryId=[CASESUMANTW]a0GC000000RTiX7,[CaseSumLast30]a0GC000000RTjQQ,[CaseSumLast60]a0GC000000RTja8,[CaseSumLast90]a0GC000000RTjaN,[CaseSumSGLast30]a0GC000000RTjiv?pv0=" + TEXT(Client_Service_Group__c) + 
",[CaseSumSGLast60]a0GC000000RTjjF?pv0=" + TEXT(Client_Service_Group__c) + 
",[CaseSumSGLast90]a0GC000000RTjjy?pv0=" + TEXT(Client_Service_Group__c) + 
",[CaseSumAllLast30]a0GC000000RTjkw?pv0=,[CaseSumAllLast60]a0GC000000RTjlf?pv0=,[CaseSumAllLast90]a0GC000000RTjlg?pv0=,[ClientCountSG30]a0GC000000ReBPW?pv0=" + TEXT(Client_Service_Group__c) + 
",[ClientCountSG60]a0GC000000ReDXx?pv0=" + TEXT(Client_Service_Group__c) + 
",[ClientCountSG90]a0GC000000ReDek?pv0=" + TEXT(Client_Service_Group__c) + 
",[ClientCountAll30]a0GC000000ReDwK,[ClientCountAll60]a0GC000000ReDwU,[ClientCountAll90]a0GC000000ReDwe,[ClientCountPB30]a0GC000000RxeAl?pv0=" + TEXT(Primary_Business__c) + 
",[ClientCountPB60]a0GC000000RxeAN?pv0=" + TEXT(Primary_Business__c) + 
",[ClientCountPB90]a0GC000000RxeEd?pv0=" + TEXT(Primary_Business__c) + 
",[CaseCountPB30]a0GC000000RxeNf?pv0=" + TEXT(Primary_Business__c) + 
",[CaseCountPB60]a0GC000000RxeNk?pv0=" + TEXT(Primary_Business__c) + 
",[CaseCountPB90]a0GC000000RxeO9?pv0=" + TEXT(Primary_Business__c) + 
"&Qmode=5"


 

 

I'm using the following help documentation from Conga site:

 

QMode=5: Attaches the output file to a folder on the Documents tab

Requires:

  • DocFolderId

 

How do I use the above in my code to make this work?