Hello all,
We have a button on our Salesforce Opportunities that redirects us to a standard Docusign page to generate the contract and get it into Salesforce files.
Our button calls this url, providing the template id:
{!URLFOR('/apex/dfsle__gendocumentgenerator', null, [sId = Opportunity.Id, templateId = 'a1OAZ0000007wXM2AY', recordId = Opportunity.Id, recordName = Opportunity.Name, title = 'Contrat'])} | ||
Once clicked, the contract is being generated and when we get back on our Opportunity in Salesforce, we can find the file related (pdf).
Our need is to replace that manual action using apex by calling Docusign API to generate and store it as file on the Opportunity. I have checked on forum, but did not find an easy to integrate solution, what would you recommend please? NB: We dont need to sign the contract, just to generate it
Thanks for your help!
|