3 risposte
I simply wrote the method of button number 2 in button number 1. i took the id from button number 1 and called the conga url just after that. like this{!REQUIRESCRIPT("/soap/ajax/30.0/connection.js")}{!REQUIRESCRIPT("/soap/ajax/30.0/apex.js")}var id= '{!Account.Id}';var ids = sforce.apex.execute('CreateContract','CreateRecord',{recId :id});var str = ids;window.location.href = '/apex/APXTConga4__Conga_Composer?serverUrl={!API.Partner_Server_URL_370}&id='+str+'&TemplateId=a0M1w000001uSspEAE&SC0=1&SC1=Attachments&AttachmentParentID='+str