demellor | Posts: 46

Obtain List of Placeholder within Template

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


Duo_Liang | Posts: 3776

Reply to: Obtain List of Placeholder within Template

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


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off