C# Docusign API附加补充文件

C# Docusign API附加补充文件,c#,docusignapi,C#,Docusignapi,如何将补充文件与要签署的文件一起发送? 用例: 我们正在发送一份供用户签署的合同,并希望向该用户发送som启动/欢迎信息 我试过的: 创建附件 Attachment attachment = new Attachment() { data = Convert.ToBase64String(docStorageDto.DocumentBlob), name

如何将补充文件与要签署的文件一起发送? 用例: 我们正在发送一份供用户签署的合同,并希望向该用户发送som启动/欢迎信息

我试过的:

创建附件

                Attachment attachment = new Attachment()
                {
                    data = Convert.ToBase64String(docStorageDto.DocumentBlob),
                    name = ConversionUtil.MakeLegalFileName(docStorageDto.OrigFilename),
                    attachmentId = displayIndex.ToString() + index,
                    attachmentType= "pdf"
                };
    RecipientAttachment att = new RecipientAttachment()
    {
        data = attachment.data,
        name = attachment.name,
        attachmentId = attachment.attachmentId,
        attachmentType = attachment.attachmentType
    };

    recipientSigner.recipientAttachments = new List<RecipientAttachment>(){att};
试图将其添加到信封中

    envelopeDefinition.attachments = new List<Attachment>(){ attachment };
    envelopeDefinition.envelopeAttachments = new List<Attachment>(){ attachment };
EnvelopedDefinition.attachments=新列表(){attachment};
EnvelopedDefinition.EnveloperAttachments=新列表(){attachment};
试图将其添加到“签名者”对象中

                Attachment attachment = new Attachment()
                {
                    data = Convert.ToBase64String(docStorageDto.DocumentBlob),
                    name = ConversionUtil.MakeLegalFileName(docStorageDto.OrigFilename),
                    attachmentId = displayIndex.ToString() + index,
                    attachmentType= "pdf"
                };
    RecipientAttachment att = new RecipientAttachment()
    {
        data = attachment.data,
        name = attachment.name,
        attachmentId = attachment.attachmentId,
        attachmentType = attachment.attachmentType
    };

    recipientSigner.recipientAttachments = new List<RecipientAttachment>(){att};
RecipientAttachment att=新的RecipientAttachment()
{
数据=附件.data,
name=attachment.name,
attachmentId=attachment.attachmentId,
attachmentType=附件。attachmentType
};
recipientSigner.recipientAttachments=新列表(){att};

一切都没有运气,田地似乎没有被使用?需要在哪里添加附件/补充文档?

补充文档不使用
附件
对象

要将补充文档添加到信封中,请执行以下操作:

  • 读这本书
  • 创建一个
    文档
    对象,与任何其他文档相同
  • 将文档对象的
    SignerCustomAcknowledge
    属性设置为以下之一:

    • 无需交互
      无需收件人操作
    • 查看
      要求收件人查看文档
    • accept
      收件人需要在签名时选择accept来接受文档,但不需要查看文档
    • 无需交互
      无需收件人操作

  • 作为将来的参考,拉里·K是对的。 补充文档不使用附件属性,只是作为常规文档发送。我需要设置的是,在“document”对象上设置以下属性,以使其不包含在组合文档中: