docusign / docusign-esign-php-client

The Official Docusign PHP Client Library used to interact with the eSign REST API. Send, sign, and approve documents using this client.
https://www.docusign.com/devcenter
MIT License
198 stars 122 forks source link

EnvelopesApi updateDocument passing values #158

Closed treytt closed 3 months ago

treytt commented 2 years ago

Hello, I am trying to rename a document before sending it to be signed. When calling $envelope->updateDocument I am not able send any updated values aside from account_id, document_id, envelope_id

Ref: https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/envelopedocuments/update/

EdwinMoralesDS commented 2 years ago

This issue was recently reported with another SDK, we are tracking this under bug number DCM-6703. Please ask your DocuSign support contact to add your company's information to the bug report. I don't have a schedule for a fix.

In the meantime, as a workaround, you can try to call the API directly without using the SDK. Another option is to modify your code so it includes the updated name in the API call that creates the envelope, this way the update call is not necessary

treytt commented 2 years ago

Thanks much for the response @EdwinMoralesDS, is it possible to specify the name when calling a template ID?

$envelope_definition->setTemplateId('XXX');

EdwinMoralesDS commented 2 years ago

Hello,

It is possible to change the name of the document but you will have to include the file in your API call. This documents explains how to use composite templates to overwrite the file in your template.

https://www.docusign.com/blog/dsdev-from-the-trenches-composite-templates

jmiller42ce commented 2 years ago

@EdwinMoralesDS can you avoid having to include the file in the API call by passing a ServerTemplate in the composite template?

shan285 commented 3 months ago

Hi @treytt,

I wanted to check in regarding the solution @EdwinMoralesDS provided to address the "updateDocument" issue. Could you please let me know if it resolved the issue or if there are any outstanding concerns?

Your feedback is greatly appreciated, as it helps ensure that everything is functioning smoothly.

Thank you for your time and assistance.

-Shashanka

treytt commented 3 months ago

hey @shan285 we ultimately went with another approach here so cant comment on that. I will happily close this issue.