Filtering Envelopes based on a type

僤鯓⒐⒋嵵緔 提交于 2019-12-20 06:04:08

问题


I have a situation where I want to be able to differentiate between envelopes based on a 'type'. For example, I'll have quotes and invoices, both of these can be sent to the same person so I'd like to know if there's a way of checking some sort of field that could differentiate the two. Currently I'm rather crudely post processing the API results and checking for 'quote' in the document type and I'd like a rather more reliable solution

thanks, Oliver


回答1:


You can use Envelope Custom Fields aka Document labels to specify additional metadata for an envelope.

Envelope Custom fields aka Document labels can be used in the envelopes for your account to record information about the envelope, help search for envelopes and track information. The envelope custom fields are not seen by the envelope recipients.


The DocuSign Web sending tool refers to the Envelope Custom fields as Document Labels. You can configure Document Labels as an Administrator on the Account. See instructions here

Once the Document labels are configured at the account level, you can provide label values for each envelope you send through the web sending tool. See instructions here


The other option is to specify Envelope Custom fields using the API. Here is a sample createEnvelope api request that specifies custom Fields associated with the envelope

{
    "emailSubject": "Envelope with custom fields",
    "status": "sent",
    "customFields": {
        "listCustomFields": [
            {
                "listItems": [
                    "sample string 1"
                ],
                "name": "myListField",
                "required": "true",
                "show": "true",
                "value": "MyListValue"
            }
        ],
        "textCustomFields": [
            {
                "name": "MyOwnTextField",
                "required": "true",
                "show": "true",
                "value": "MyValue"
            }
        ]
    },
    "recipients": {
        "signers": [
            {
                "recipientId": 1,
                "email": "kaysmith@acme.com",
                "name": "kay smith",
                "routingOrder": "1"
            }
        ]
    },
    "documents": [
        {
            "documentId": "1",
            "name": "Agreement",
            "fileExtension": "txt",
            "documentBase64": "RG9jIFRXTyBUV08gVFdP"
        }
    ]
}



回答2:


More good news: the DocuSign Sending web tool automatically enables the sender, from the web tool, to set the Envelope Custom Fields.

So if you are sending envelopes programmatically or your users are sending them, it is easy to set custom field values.



来源:https://stackoverflow.com/questions/43634528/filtering-envelopes-based-on-a-type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!