Skip to content

How to pre-fill tab of template? #237

@dijiehuang

Description

@dijiehuang

I want to send an envelope via the template, but the pre-fill tab doesn't work, interface error:

Message: Error while requesting server, received a non successful HTTP code 400 with response Body: '{"errorCode":"REQUIRED_TAB_INCOMPLETE","message":"A Required field is incomplete. TabId: bce12361-40b1-4d4d-908a-8b549e2eb0b9"}'

Dump: com.docusign.esign.client.ApiException: Error while requesting server, received a non successful HTTP code 400 with response Body: '{"errorCode":"REQUIRED_TAB_INCOMPLETE","message":"A Required field is incomplete. TabId: bce12361-40b1-4d4d-908a-8b549e2eb0b9"}' at com.docusign.esign.client.ApiClient.invokeAPI(ApiClient.java:1493) at com.docusign.esign.api.EnvelopesApi.createEnvelope(EnvelopesApi.java:925) at com.docusign.esign.api.EnvelopesApi.createEnvelope(EnvelopesApi.java:866) at com.docusign.controller.eSignature.services.SigningViaEmailService.signingViaEmail(SigningViaEmailService.java:33) at com.docusign.controller.eSignature.examples.EG002ControllerSigningViaEmail.doWork(EG002ControllerSigningViaEmail.java:61) at com.docusign.core.controller.AbstractController.create(AbstractController.java:86) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at...

My code is :
TemplateRole signer = new TemplateRole();
signer.setEmail(signerEmail);
signer.setName(signerName);
signer.setRoleName("甲方");

Tabs tabs = new Tabs();
PrefillTabs prefillTabs = new PrefillTabs();
List<Text> textTabs = new ArrayList<>();
Text text = new Text();
text.setValue("djdj");
text.setTabLabel("a5045fac-9679-498a-a73c-6c255dfccc49");
text.setDocumentId("1");
text.setPageNumber("1");

textTabs.add(text);
prefillTabs.setTextTabs(textTabs);
tabs.setPrefillTabs(prefillTabs);
signer.setTabs(tabs);
......

then we invoke "envelopesApi.createEnvelope(accountId, envelope);" error

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions