Skip to content

Instantly share code, notes, and snippets.

@Naveendhanaraj
Last active January 21, 2021 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Naveendhanaraj/ff988f865e7e2e8b54455cd35107d101 to your computer and use it in GitHub Desktop.
Save Naveendhanaraj/ff988f865e7e2e8b54455cd35107d101 to your computer and use it in GitHub Desktop.
printPdf(event) {
getMetadataValue ({
       strDeveloperName: 'Pass_Query'
     }).then((result) => {
this.passquerymdt =  result;
if(result){
this[NavigationMixin.Navigate]({
type: "standard__webPage",
attributes: {
url:
"/apex/APXTConga4__Conga_Composer?SolMgr=1&serverUrl={!$Api.Partner_Server_URL_370}&Id=" +
this.recordId +
"&QueryId=" +
this.passquerymdt +
"&TemplateId=" +
this.Data.CongaTemplateId +
"&DS7=3&OFN=Check_" +
this.Data.Name +
"&DefaultPDF=1 +
"&DV0=" +
"&UF0=1&DS8=1&SC0=1&SC1=salesforcefile"
}
});
}
  });
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment