With adobe echosign, can a library document be used as a template?

According to Create a library document in your API:

createLibraryDocument is used to create a document in a custom document library. A library can be used to send the same document for signature several times, either through a web application or through an API.

It doesnโ€™t make it clear whether you can put something like% ProductName% in a document and find / replace it during distribution, or you need to upload a new document every time. I plan to use the API to send identical agreements, but with different names of products and companies.

Any idea if this is possible?

+4
source share
1 answer

The question is pretty old, so I will add this for future reference.

I was dealing with the same problem and I found a solution. Or rather hack. Instead of createLibraryDocument, I use sendDocument directly. It has the mergeFieldsInfo property, which according to the documentation cannot be used with library documents, but will work if you pass the file url. I tried the option with the URL and it works, I have the fields filled in the test document.

An example of a request body that worked for me:

<?xml version="1.0"?> <sendDocument> <apiKey>XXXXX</apiKey> <senderInfo nil="true"/> <documentCreationInfo> <fileInfos> <FileInfo> <fileName>Merchant Agreement.pdf</fileName> <url>https://my.public.host.com/GetFinancing%20Merchant.pdf</url> </FileInfo> </fileInfos> <mergeFieldInfo> <mergeFields> <MergeField> <defaultValue>test</defaultValue> <fieldName>companyName</fieldName> </MergeField> <MergeField> <defaultValue>test</defaultValue> <fieldName>companyAddress</fieldName> </MergeField> <MergeField> <defaultValue>0123456789</defaultValue> <fieldName>companyPhone</fieldName> </MergeField> </mergeFields> </mergeFieldInfo> <name>Merchant Agreement</name> <recipients> <RecipientInfo> <email> kowalski0123@gmail.com </email> <role>SIGNER</role> </RecipientInfo> </recipients> <reminderFrequency>NEVER</reminderFrequency> <signatureFlow>SENDER_SIGNATURE_NOT_REQUIRED</signatureFlow> <signatureType>ESIGN</signatureType> </documentCreationInfo> </sendDocument> 
+3
source

Source: https://habr.com/ru/post/1403052/


All Articles