docusign_rest icon indicating copy to clipboard operation
docusign_rest copied to clipboard

Composite template method errors

Open arielfox opened this issue 8 years ago • 2 comments

@madamkiwi an issue has surfaced after your July 14, 2016 commit

Please accept pull request #85 to fix this issue.

Now that the composite template methods ('create_envelope_from_composite_template' and 'get_composite_template') take an argument for files, there are errors if you don't pass files. The first error will occur in the 'create_file_ios' method because 'each_with_index' will be called on nil.

It's quite common to only use server templates and/or inline templates and not replace them with a different document. Therefore files should be optional.

arielfox avatar Aug 09 '16 22:08 arielfox

Are there any plans to expand create_envelope_from_composite_template to allow for defining inlineTemplates w/o specifying serverTemplateId. This is useful if you want to replace the underlying document from a template. See: http://stackoverflow.com/questions/29130490/docusign-api-create-envelopes-using-composite-templates

Issue now is that you have to specify the serverTemplateId or more precisely perhaps add the sequence number.

rogsmith avatar Aug 23 '16 20:08 rogsmith

@arielfox #85 merged, thanks!

@rogsmith thanks for the link, I'll have to read that a few more times to grok it.

tcopeland avatar Apr 27 '17 21:04 tcopeland