简体   繁体   English

信封不包含文件

[英]Envelope does not contain document

After creating envelope and adding document (pdf) to it, Then I receive the email, and sign the document, when I later retrieve the envelope there is no document in it.创建信封并向其中添加文档(pdf)后,我收到 email,并在文档上签名,当我后来取回信封时,里面没有文档。

EnvelopeDefinition envelopeDefinition = new EnvelopeDefinition
{
    EmailSubject = "Please sign the document",
    Documents = new List<Document>(documents),
    Recipients = recipients,
    Status = "sent"
};

// 2. Use the SDK to create and send the envelope
ApiClient apiClient = new ApiClient(basePath);
apiClient.Configuration.AddDefaultHeader("Authorization", "Bearer " + accessToken);
EnvelopesApi envelopesApi = new EnvelopesApi(apiClient.Configuration);
EnvelopeSummary results = await envelopesApi.CreateEnvelopeAsync(accountId, envelopeDefinition);

Later retrieve the envelope by ID稍后按 ID 检索信封

var envelope = envelopesApi.GetEnvelope(accountId, results.Envelopes.FirstOrDefault().EnvelopeId);

Then EnvelopeDocuments is null.那么 EnvelopeDocuments 就是 null。

How do I get the signed document?我如何获得签署的文件?

Try instead to use this method:尝试改用此方法:

envelopesApi.GetDocument (accountId, envelopeId, documentId);

documentId is what you set it, could be "1" if you followed common examples. documentId 是您设置的,如果您遵循常见示例,则可能为“1”。

Or use the special documentId "combined" to return all of the envelope's documents.或者使用特殊的 documentId "combined"来返回所有信封的文档。

See the EnvelopeDocuments:get docs.请参阅信封文档:获取文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM