删除信封文件页面不起作用

时间:2018-07-24 10:45:08

标签: c# docusignapi

请在下面找到我的代码。调用Envelopes.DeleteEnvelopeDocumentPage方法后,页面仍在文档使用的信封中。

// Create Envelope
var envSummary = Envelopes.CreateEnvelope(envDef);

if (!viewModel.OptionalInserts.SubjectToFinance) {
  string documentId = "";
  string pageNumber = "";
  Text instalmentTag = new Text();
  var textTabs = envTemplate.Recipients.Signers[0].Tabs.TextTabs;
  foreach (var text in textTabs) {
    if (text.TabLabel == "BankGuaranteeAmount") {
      documentId = text.DocumentId;
      pageNumber =( int.Parse(text.PageNumber) + 1 ).ToString();
    }
  }
  //deleting envelope document page
  Envelopes.DeleteEnvelopeDocumentPage(envSummary.EnvelopeId, documentId, pageNumber);
}

public static void DeleteEnvelopeDocumentPage(string envelopeId, string documentId,string pageNumber)/*EnvelopeDefinition envDef)*/ {
  var envelopesApi = new EnvelopesApi();
  envelopesApi.DeleteDocumentPage(Account.AccountId,  envelopeId, documentId, pageNumber);
}

我想念什么?

0 个答案:

没有答案