如何停止获取信封的AutoResponded代码

时间:2017-03-14 20:28:50

标签: java docusignapi

我知道如果电子邮件地址无效,DocuSign会将AutoResponded作为信封状态发回。所以,每当我回到AutoResponded,我的一些服务就会中断。有没有办法将此功能从我的DocuSign帐户中删除?

简单来说,如果状态为AutoResponded则忽略。

由于

1 个答案:

答案 0 :(得分:1)

您可以从eventNotification中排除AutoResponded recipientEventStatusCode。

以下是一个包​​含所有eventNotifications的CreateEnvelope请求示例。您可以删除不想接收的事件。

Sub CompleteData()

Dim lastrow1 As Long, lastrow2 As Long
Dim ws1 As Worksheet, ws2 As Worksheet

Set ws1 = Worksheets("Sheet1")
Set ws2 = Worksheets("Sheet2")

lastrow1 = ws1.Cells(Rows.Count, "A").End(xlUp).Row
lastrow2 = ws2.Cells(Rows.Count, "A").End(xlUp).Row

For x = 2 To lastrow1 'change to 1 if you have no headers
    For y = 2 To lastrow2 'change to 1 if you have no headers
        If ws1.Cells(x, 1).Value = ws2.Cells(y, 1).Value And ws1.Cells(x, 2).Value = ws2.Cells(y, 2).Value And ws1.Cells(x, 3).Value = ws2.Cells(y, 3).Value Then
            ws1.Cells(x, 4).Value = ws2.Cells(y, 4).Value
            Exit For
        End If
    Next y
Next x

End Sub