Posts: 34 demellor Obtain List of Placeholder within Template Thursday, August 5, 2021 at 09:01am 0 votes Can you point me to an example that takes an existing template and using the WS API I can get a list of place holder fields? Thank you Richard DeMello August 5 Created October 4 Last Updated 8 months ago Last Reply 1 Replies 8 Views 2 Users 0 Likes 0 Links Posts: 3383 Duo_Liang Reply to: Obtain List of Placeholder within Template Tuesday, October 4, 2022 at 02:02pm 0 votes Hi Richard, If you are asking for a .NET SDK code, here you are: EslClient eslClient = new EslClient(apiKey, apiUrl); string templateId = "M-ITDWxHZwIM8N5prDkDOw4Bt2A="; DocumentPackage pkg = eslClient.GetPackage(new PackageId(templateId)); foreach (Signer signer in pkg.Placeholders) { Debug.WriteLine($"Placeholder name: {signer.PlaceholderName}"); } Duo Duo Liang OneSpan Evangelism and Partner Integrations Developer Log in or register to post comments
Posts: 3383 Duo_Liang Reply to: Obtain List of Placeholder within Template Tuesday, October 4, 2022 at 02:02pm 0 votes Hi Richard, If you are asking for a .NET SDK code, here you are: EslClient eslClient = new EslClient(apiKey, apiUrl); string templateId = "M-ITDWxHZwIM8N5prDkDOw4Bt2A="; DocumentPackage pkg = eslClient.GetPackage(new PackageId(templateId)); foreach (Signer signer in pkg.Placeholders) { Debug.WriteLine($"Placeholder name: {signer.PlaceholderName}"); } Duo Duo Liang OneSpan Evangelism and Partner Integrations Developer Log in or register to post comments
Reply to: Obtain List of Placeholder within Template
Tuesday, October 4, 2022 at 02:02pmHi Richard,
If you are asking for a .NET SDK code, here you are:
EslClient eslClient = new EslClient(apiKey, apiUrl);
string templateId = "M-ITDWxHZwIM8N5prDkDOw4Bt2A=";
DocumentPackage pkg = eslClient.GetPackage(new PackageId(templateId));
foreach (Signer signer in pkg.Placeholders) {
Debug.WriteLine($"Placeholder name: {signer.PlaceholderName}");
}
Duo
Duo Liang OneSpan Evangelism and Partner Integrations Developer