You need to sign in to do that
Don't have an account?
JeffreyStevens
Echosign from visualforce PDF
We currently use complex Conga merge documents, and then attach them to an Echosign agreeemt. Well, now I'd like to find a way to drop the Conga documents from the process. Document is getting even more complex, and I'm going to use visualforce and apex to create the document that is to be signed. So, ...
Can visualforce rendered as a PDF, have embedded signature tags?
Thanks
Can visualforce rendered as a PDF, have embedded signature tags?
Thanks
All Answers
Please take a look at below documentation which gives idea of a way to do this using VF.
http://developer.force.com/cookbook/recipe/accessing-docusign-api-from-salesforcecom-to-send-contracts-for-esignatures
Please vote this as the best answer if it solves your problem.
Thanks,
Roh
Cheers!
- Im creating a VF renderedAsPDF and inserting docusign anchor tags /s1/, /s2/ etc. Then sending with Docusign standard button attaching this documents. Docusign pulls up the hidden anchor tags in the doc to automatically place signing points.
Cheers and good luck!
When you do the renderAsPDF - how do you attach the PDF to the DocuSign call? I do several renderAsPDF, but I sually launch the pdf in the browser - for interactive presentation. So, I've never created the PDF as an actual attachment or something like that.
Got any code you can share on that?
Well, for a fully automatic 1 click solution you can use Docusign SOAP Api. This solution works as I have managed to get it working with some guide from the internet. The problem with this solution is that if you want to use Docusign SOAP against a Docusign Prod Account (and not a Demo Docusign Account) you have to go trough a dev certification process with them which at the time I did that it costed around 1k and could take 1/2 weeks.
At that point, my quick workaround was this -> Have a button that generates the VF as PDF and adds it as an Attachment on the Opportunity. The standard Docusign "Send with Docusign" button on the Opportunity pulls up the Attachments automatically, so it would pull my generated "DocumentToSign.PDF".
This is not so automatic but its just 2-3 clicks to send a doc which is not that bad either.
To create the VF PDF and use it as an attachment you have to use the getContentAsPDF() method which is in the Summer 15 release.
https://help.salesforce.com/apex/HTViewSolution?id=000213972&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000213972&language=en_US)
http://releasenotes.docs.salesforce.com/en-us/summer15/release-notes/rn_vf_getcontent_callout_cruc.htm?edition=&impact= (http://releasenotes.docs.salesforce.com/en-us/summer15/release-notes/rn_vf_getcontent_callout_cruc.htm?edition=&impact=)
Cheers!
Sample code:
We need to add that Test.IsRunningTest because it is treated as a Callout.Good luck!.
PD: I am just starting to use this forum and it seems people get their answers "voted" if they help resolve the issue, so, if any of my answers steer you in the solution of your problem, please vote me up ;).
Nahuel was the code you used above used in the Controller of the Visualforce page? How did you include the EchoSigns tags in the Visualforce PDF?
@Matthew: You probably want to create a new question so we don't revive this thread for people who are not interested in this new concern.
Having that said, I used "Docusign", not Echosign. And with Docusign, I just had to place some hidden tags within the PDF for Docusign to pick up the location to place the digital signature.
Something like this:
VF:
Controller:
You have to check in the documentation what you need to add for the digital signature placement, surely Echosign has something similar, in this case it's "\s1\".
Hope that helps!,
Nahuel.
When you do that - and the Agreement get's executed - then Echosign will update the Agreement record(s)
I am deploying a similar code as you have as best answer. I am receiving some erros such as pContactID and Page.ContractPDF don't exist. Am I missing something?
Thank you,
Ryan
I have a similar requirement to embedd echosign signature tags in VF page.
As seen from the above discussion it seems you have done it. Will you please help me with it as this is the first time I am working on e-sign.
Thanks,
Harshada