Envelope package submitted to Docusign for signature contain document and one or more attachments. When signed envelope is imported into Laserfiche we need to identify each document by its order in the envelope
As listed in Laserfiche Docusign integration guide there are a number of tokens available from Docusign. Documents status tokens include token %(DocumentStatuses.0.Sequence), that should represent the order of the document in the envelope. It is unclear from Laserfiche documentation what the "0" in token represents. This token is mapped to Laserfiche field and always shows "1" for each of the documents in the envelope. When we substitute "0" with "All", value of the field shows "1,2".
Docusign provides log with running value of the tokens. As you can see below, the log correctly identified sequence of each document:
<DocumentStatuses>
<DocumentStatus>
<ID>1</ID>
<Name>Purchase-Contract-Template.pdf</Name>
<TemplateName/>
<Sequence>1</Sequence>
</DocumentStatus>
<DocumentStatus>
<ID>2</ID>
<Name>TEST Document.pdf</Name>
<TemplateName/>
<Sequence>2</Sequence>
</DocumentStatus>
</DocumentStatuses>
How should we compose this token so sequence of each document is correctly identified?