Dropbox Sign API
Hi,
I have integration with Dropbox Sign API (earlier HelloSign) that downloads documents after they were signed. I am downloading a zip file, and I would like to save them with different names based on the template they were created with. Is there a way to identify which documents were created from which template? (Right now, I am using the template ids array, which comes with the 'signature_request_all_signed' event, and assuming that each file in the zip file will be in the same order as id in template ids array)
Thanks for reaching out! When downloading your files with the `zip` option, the files will be returned in the order that they were uploaded to the signature request.
"metadata": {
"template_id_1": "First Template Name",
"template_id_2": "Second Template Name",
"template_id_3": "Third Template Name"
}
Hi Spencer!
Thank you for your answer.
I am not sure if looking at the `template_ids` in the `signature_request_all_signed` is a good idea, because in my case the order of ids in it does not match the order in the template_ids passed when creating the `signature_request`:
Prefixes of ids in the array send to /send_with_template endpoint:
['26ed0', '72ff1', 'be531', '90480', 'd9ab6']
and the prefixes of ids received from `signature_request_all_signed` event payload
['90480', 'd9ab6', 'be531', '72ff1', '26ed0'].
I love your idea of using metadata for that. I was wondering if I could send an array with the correct order of ids in it, so I don't have to base it on the callback event template_ids array in the wrong order
"metadata": {
"template_order": [
"template_1",
"template_2",
"template_3"
]
}
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!