2017-11-17 3 views
0

아래 코드를 사용하면 두 번째 첨부 문서의 탭만 채울 수 있습니다. 첫 번째 탭은 "양식 데이터"목록에 나타나지 않습니다. 나는 이것이 내가 간과하고있는 사소한 것이라고 확신하지만이 포럼의 다른 곳에서 본 것과 내가 가지고있는 것 사이의 차이점을 볼 수 없으며이 문제를 가진 다른 게시물을 찾을 수 없습니다. 어떤 도움을 주시면 감사하겠습니다.복합 템플릿 : 첫 번째 탭을 미리 채울 수 없습니다.

{ 
"emailSubject": "DocuSign API - Composite Test", 
"status": "sent", 
"compositeTemplates": [ 
    { 
     "serverTemplates": [ 
      { 
       "sequence": "1", 
       "templateId": "TEMPLATEID" 
      } 
     ], 
     "inlineTemplates":[ 
      { 
       "sequence":"1", 
       "recipients": { 
        "inPersonSigner": [ 
         { 
          "hostEmail": "HOTEMAIL", 
          "hostName": "HOSTNAME", 
          "inPersonSigningType": "inPersonSigner", 
          "recipientId": "1", 
          "roleName": "Primary", 
          "signerName": "John Doe", 
          "signerEmail": "[email protected]", 
          "clientUserId": "1001" 
         } 
        ] 
       }, 
       "tabs": { 
        "textTabs": [ 
         { 
          "tabLabel": "Address", 
          "value": "221 Cherry St" 
         } 
        ] 
       } 
      } 
     ] 
    }, 
{ 
     "serverTemplates":[ 
      { 
       "sequence": "2", 
       "templateId": "TEMPLATEID" 
      } 
     ], 
     "inlineTemplates":[ 
      { 
       "sequence":"2", 
       "recipients": { 
        "inPersonSigners": [ 
         { 
          "hostEmail": "HOSTEMAIL", 
          "hostName": "HOSTNAME", 
          "inPersonSigningType": "inPersonSigner", 
          "recipientId": "1", 
          "roleName": "Primary", 
          "signerName": "John Doe", 
          "signerEmail": "[email protected].com", 
          "clientUserId": "1001" 
         } 
        ] 
       }, 
       "tabs": { 
        "textTabs": [ 
         { 
          "tabLabel": "ApplicantPhone", 
          "value": "123-456-7890" 
         } 
        ] 
       } 
      } 
     ] 
    } 
] 
} 
+0

을 수 Address가 첫 번째 템플릿의 올바른 탭인지 확인합니다. 각 복합 템플릿에 대해 compositeTemplateId를 추가하는 것이 좋습니다. –

+0

예, Address라는 이름이며 값이 같은 templateId 대신 compositeTemplateId를 사용해야합니까? –

+0

CompositeTemplateId가 "serverTemplates"및 "inlineTemplates"와 병행되어야합니다. 구조는 https://docs.docusign.com/esign/restapi/Envelopes/Envelopes/create/#/definitions/compositeTemplate에서 찾을 수 있습니다. 두 개의 합성 템플릿을 넣으므로 처음에는 compositeTemplateId - 1이어야하고 다른 하나는 compositeTemplateId - 2 –

답변

0

당신이 게시 한 JSON에 대한 의견의 몇 :

  • inPersonSigners에 대한 속성 이름이 복수해야합니다 (JSON에서, 그것은 최초의 복합 템플릿 객체의 InPersonSigner 단수의)
  • tabsinPersonSigner 객체의 속성해야
(당신의 JSON에서, 그것은 inlineTemplate 객체의 속성이다) 여기에 내가 위에서 설명한 변경 반영하도록 수정 전체 JSON 요청,의,

"inPersonSigners": [ 
    { 
     "hostEmail": "HOSTEMAIL", 
     "hostName": "HOSTNAME", 
     "inPersonSigningType": "inPersonSigner", 
     "recipientId": "1", 
     "roleName": "Primary", 
     "signerName": "John Doe", 
     "signerEmail": "[email protected]", 
     "clientUserId": "1001", 
     "tabs": { 
      "textTabs": [ 
       { 
        "tabLabel": "...", 
        "value": "..." 
       } 
      ]  
     } 
    } 
] 

그리고 : 염두에 피드백

는 여기 inPersonSigners 섹션을 구성한다 방법

{ 
    "emailSubject": "DocuSign API - Composite Test", 
    "status": "sent", 
    "compositeTemplates": [ 
     { 
      "serverTemplates": [ 
       { 
        "sequence": "1", 
        "templateId": "TEMPLATEID" 
       } 
      ], 
      "inlineTemplates":[ 
       { 
        "sequence":"2", 
        "recipients": { 
         "inPersonSigners": [ 
          { 
           "hostEmail": "HOSTMAIL", 
           "hostName": "HOSTNAME", 
           "inPersonSigningType": "inPersonSigner", 
           "recipientId": "1", 
           "roleName": "Primary", 
           "signerName": "John Doe", 
           "signerEmail": "[email protected]", 
           "clientUserId": "1001", 
           "tabs": { 
            "textTabs": [ 
             { 
              "tabLabel": "Address", 
              "value": "221 Cherry St" 
             } 
            ] 
           } 
          } 
         ] 
        } 
       } 
      ] 
     }, 
     { 
      "serverTemplates":[ 
       { 
        "sequence": "1", 
        "templateId": "TEMPLATEID" 
       } 
      ], 
      "inlineTemplates":[ 
       { 
        "sequence":"2", 
        "recipients": { 
         "inPersonSigners": [ 
          { 
           "hostEmail": "HOSTEMAIL", 
           "hostName": "HOSTNAME", 
           "inPersonSigningType": "inPersonSigner", 
           "recipientId": "1", 
           "roleName": "Primary", 
           "signerName": "John Doe", 
           "signerEmail": "[email protected]", 
           "clientUserId": "1001", 
           "tabs": { 
            "textTabs": [ 
             { 
              "tabLabel": "ApplicantPhone", 
              "value": "123-456-7890" 
             } 
            ] 
           } 
          } 
         ] 
        } 
       } 
      ] 
     } 
    ] 
} 
+0

이어야합니다. 감사합니다. 나는 또한 당신이 "순서"를 바꾼 것으로 나타났습니다. 나는 이것이 내가 가진 방식대로, 그리고 당신이 그것을 한 것처럼 보았지만, 당신이 일하고있다. 그래서 나는 그것에 충실 할 것이다. –

+0

우수하고 행복하게 도와 드릴 수 있습니다. –