Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

What is the proper structure for sendDocument API call with multiple files?

Explorer ,
Jul 08, 2015 Jul 08, 2015

Hello - from the SOAP API documentation, you can send multiple template filenames to be merged into a single pdf to be sent out for signing:

fileInfos

- FileInfo[]

-A list of one or more files (or references to files) that will be sent out for signature. If more than one file is provided, they will be combined into one PDF before being sent out.

What is the proper structure to send merged files? I can't tell if the fileInfos is a node with mulitiple FileInfo children, or if a single FileInfo child should contain an array of libraryDocumentName strings.

thx

378
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Explorer , Jul 08, 2015 Jul 08, 2015

Figured it out! fileInfos should have multiple FileInfo children, each with their own libraryDocumentName strings:

fileInfos

- FileInfo

      - libraryDocumentName

- FileInfo

     - libraryDocumentName

etc.

for anyone building this in PHP as an associative array before sending it to the SOAP client, it looks like this:

...
'fileInfos' => array(
  'FileInfo' => array(
       array(
          'libraryDocumentName' => 'Template 1'
       ),
       array(
         'libraryDocumentName' => 'Template 2'
      
...
Translate
Explorer ,
Jul 08, 2015 Jul 08, 2015
LATEST

Figured it out! fileInfos should have multiple FileInfo children, each with their own libraryDocumentName strings:

fileInfos

- FileInfo

      - libraryDocumentName

- FileInfo

     - libraryDocumentName

etc.

for anyone building this in PHP as an associative array before sending it to the SOAP client, it looks like this:

...
'fileInfos' => array(
  'FileInfo' => array(
       array(
          'libraryDocumentName' => 'Template 1'
       ),
       array(
         'libraryDocumentName' => 'Template 2'
       )
    )
)
...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines