0
votes

Hi stackoverflow community!

I'm working on creating some logic to dynamically update my template with different content for specific recipients. When I make a GET call to pull the custom fields I've added, I see this:

GET Call

GET /v2.1/accounts/{accountId}/templates/{templateId}/custom_fields

GET Request results

{
    "textCustomFields": [
        {
            "fieldId": "10351158661",
            "name": "templateUsageRestriction",
            "show": "false",
            "required": "false",
            "value": "allOptions"
        }
    ],
    "listCustomFields": []
}

Does anyone know what the "templateUsageRestriction" means/how to pull the actual fields?

2

2 Answers

0
votes

If you're trying to get form data entered by signers, you'll want to use the EnvelopesFormData::Get method, or the Recipients::List method with include_tabs=true.

0
votes

These are fields created by DocuSign when you use a template to create an envelope. Your code should ignore these.