Obtain List of Placeholder within Template
Thursday, August 5, 2021 at 09:01amCan 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
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
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