2017-06-20 3 views
0

Ich versuche, einen Entwurf Umschlag über DocuSign API mit einem TextCustomField erstellen, aber ich kann es nicht zum arbeiten, vermuten, es ist die Positionierung der textCustomField Tags in der Anfrage - und brauche Hilfe, um mich dabei zu unterstützen. Hier ist die aktuelle Anfrage XML:DocuSign API - Erstellen eines Umschlags mit einem textCustomField

<ns1:envelopeDefinition xmlns:ns1="http://www.docusign.com/restapi"> 
    <ns1:emailSubject>Test</ns1:emailSubject> 
    <ns1:status>created</ns1:status> 
    <ns1:documents> 
     <ns1:document> 
      <ns1:name>TestDocument</ns1:name> 
      <ns1:documentId>1</ns1:documentId> 
      <ns1:documentBase64>U09XIElE==</ns1:documentBase64> 
      <ns1:fileExtension>txt</ns1:fileExtension> 
     </ns1:document> 
    </ns1:documents> 
    <ns1:recipients> 
     <ns1:signers> 
      <ns1:signer> 
       <ns1:routingOrder>1</ns1:routingOrder> 
       <ns1:recipientId>1</ns1:recipientId> 
       <ns1:name>John Smith</ns1:name> 
       <ns1:email>[email protected]</ns1:email> 
       <ns1:tabs> 
        <ns1:approveTabs> 
         <ns1:approve> 
          <documentId>1</documentId> 
          <pageNumber>1</pageNumber> 
          <xPosition>70</xPosition> 
          <yPosition>120</yPosition> 
          <height>30</height> 
          <width>50</width> 
         </ns1:approve> 
        </ns1:approveTabs> 
        <ns1:declineTabs> 
         <ns1:decline> 
          <documentId>1</documentId> 
          <pageNumber>1</pageNumber> 
          <xPosition>130</xPosition> 
          <yPosition>120</yPosition> 
          <height>30</height> 
          <width>50</width> 
         </ns1:decline> 
        </ns1:declineTabs> 
       </ns1:tabs> 
       <ns1:customFields> 
        <ns1:textCustomFields> 
         <ns1:textCustomField> 
          <ns1:configurationType /> 
          <ns1:fieldId>1</ns1:fieldId> 
          <ns1:name>ID</ns1:name> 
          <ns1:required>true</ns1:required> 
          <ns1:show>false</ns1:show> 
          <ns1:value>12345</ns1:value> 
         </ns1:textCustomField> 
        </ns1:textCustomFields> 
       </ns1:customFields>     
      </ns1:signer> 
     </ns1:signers> 
    </ns1:recipients> 
</ns1:envelopeDefinition> 

Vielen Dank!

Antwort

1

Ich habe es mit der folgenden Anfrage Körper arbeiten. Der Fix bestand darin, die CustomFields aus dem 'Empfängern' -Tag zu entfernen und es als ein Geschwister auf 'Empfängern' zu platzieren.

<ns1:envelopeDefinition xmlns:ns1="http://www.docusign.com/restapi"> 
    <ns1:emailSubject>Test</ns1:emailSubject> 
    <ns1:status>created</ns1:status> 
    <ns1:documents> 
     <ns1:document> 
      <ns1:name>TestDocument</ns1:name> 
      <ns1:documentId>1</ns1:documentId> 
      <ns1:documentBase64>U09XIElE==</ns1:documentBase64> 
      <ns1:fileExtension>txt</ns1:fileExtension> 
     </ns1:document> 
    </ns1:documents> 
    <ns1:recipients> 
     <ns1:signers> 
      <ns1:signer> 
       <ns1:routingOrder>1</ns1:routingOrder> 
       <ns1:recipientId>1</ns1:recipientId> 
       <ns1:name>John Smith</ns1:name> 
       <ns1:email>[email protected]</ns1:email> 
       <ns1:tabs> 
        <ns1:approveTabs> 
         <ns1:approve> 
          <documentId>1</documentId> 
          <pageNumber>1</pageNumber> 
          <xPosition>70</xPosition> 
          <yPosition>120</yPosition> 
          <height>30</height> 
          <width>50</width> 
         </ns1:approve> 
        </ns1:approveTabs> 
        <ns1:declineTabs> 
         <ns1:decline> 
          <documentId>1</documentId> 
          <pageNumber>1</pageNumber> 
          <xPosition>130</xPosition> 
          <yPosition>120</yPosition> 
          <height>30</height> 
          <width>50</width> 
         </ns1:decline> 
        </ns1:declineTabs> 
       </ns1:tabs>    
      </ns1:signer> 
     </ns1:signers> 
    </ns1:recipients> 
    <ns1:customFields> 
     <ns1:textCustomFields> 
      <ns1:textCustomField> 
       <ns1:configurationType /> 
       <ns1:fieldId>1</ns1:fieldId> 
       <ns1:name>ID</ns1:name> 
       <ns1:required>true</ns1:required> 
       <ns1:show>false</ns1:show> 
       <ns1:value>12345</ns1:value> 
      </ns1:textCustomField> 
     </ns1:textCustomFields> 
    </ns1:customFields> 
</ns1:envelopeDefinition> 
+0

Vielen Dank für das Posten der Antwort auf Ihre Frage! Bitte bearbeiten Sie Ihre Antwort, um eine kurze Beschreibung der Fehlerbehebung zu erhalten. Vielen Dank. –

Verwandte Themen