How can you filter with custom fields using DocuSign?
如何使用DocuSign过滤自定义字段?
I have already searched the internet but I can't find anything, can anyone help me.
我已经在网上找过了,但什么也找不到,有人能帮我吗?
更多回答
优秀答案推荐
I assume you are a developer, using the DocuSign eSignature C# SDK and that you want to filter all envelopes based on values of custom fields.
我假设您是一名开发人员,使用DocuSign eSignature C#SDK,并且希望根据自定义字段的值过滤所有信封。
That's a lot that I assume, I also assume you mean custom fields, and not the values of tabs in these envelopes, which is a different thing, but often confused.
这是我假设的很多,我还假设您指的是自定义域,而不是这些信封中选项卡的值,这是另一回事,但经常被混淆。
The ListStatusChanges() API endpoint, also available in the C# SDK can do that.
同样在C#SDK中提供的ListStatusChanges()API端点可以做到这一点。
It has a custom_field parameter that you can use.
它有一个可以使用的custom_field参数。
So, the C# code will look like this:
因此,C#代码将如下所示:
var docuSignClient = new DocuSignClient(basePath);
docuSignClient.Configuration.DefaultHeader.Add("Authorization", "Bearer " + accessToken);
EnvelopesApi envelopesApi = new EnvelopesApi(docuSignClient);
ListStatusChangesOptions options = new ListStatusChangesOptions();
options.fromDate = DateTime.Now.AddDays(-30).ToString("yyyy/MM/dd");
options.customField = "myCustomField";
// Call the API method:
EnvelopesInformation results = envelopesApi.ListStatusChanges(accountId, options);
更多回答
我是一名优秀的程序员,十分优秀!