2016-12-26 1 views
0

SOAP API 문서에서 설명하는 대부분의 메소드를 탐색 할 수 있으며 각각의 메소드에 대해 자세히 설명합니다.Docusign : 서명자에게 특정 양식 필드 할당

createandSendEnvelope 요청의 일부로 각 수신자에게 특정 양식 필드를 할당하는 것에 대한 쿼리가 있습니다. 예를 들어 아래 그림에서 볼 수 있듯이 각 서명자의 양식 필드를 알고 있습니다.

수신자 1 필드 : S1_Company, S1_Location, S1_SignHere, S1_PrintHere & S1_DateHere
수취인이 개 필드 : S2_Company, S2_Location는 S2_SignHere, S2_PrintHere & S2_DateHere

나는 앵커 태그를 시도했지만 수 없습니다 위에서 언급 한 양식 필드를 사용하십시오. 내가 바라는 논리는 서명자에게 데이터를 입력하기 위해받는 사람에게 할당해야하는 양식의 모든 양식 필드는 데이터베이스에로드 된 정적 데이터를 기반으로 구동되며 봉투 완성시 데이터를 읽을 수 있어야합니다. 각 수신자에게 할당 된 각 필드에 입력 된 정보는 검색 가능해야합니다. 즉, 내가보고있는 기본적인 이점은 RequestEnvelopeWithDocumentFields를 사용하는 것입니다. S1_Company, S1_Location 등의 수신자가 입력 한 값을 읽을 수 있어야합니다. 양식 필드는 내 데이터베이스에도 감사 목적으로 저장 될 수 있으며 Docusign 데이터와 동기화 될 수 있습니다 .

대단히 감사합니다! 당신이 훨씬 더 효율적 앵커를 사용하는 것보다이 쿼리에 대한

<?xml version="1.0" encoding="utf-16" ?> 
<arrayofcompositetemplate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> 
<compositetemplate> 
    <inlinetemplates xmlns="http://www.docusign.net/API/3.0"> 
     <inlinetemplate> 
      <sequence>1</sequence> 
      <envelope> 
       <accountid>4af47e96-b342-45f2-9fcb-ab3c031780f1</accountid> 
       <recipients> 
        <recipient> 
         <id>1</id> 
         <username>Signer 1</username> 
         <email>*******@*****.com</email> 
         <type>Signer</type> 
         <accesscode xsi:nil="true" /> 
        </recipient> 
       </recipients> 
       <tabs> 
        <tab> 
         <recipientid>1</recipientid> 
         <type>DateSigned</type> 
         <tablabel>Client1_DocuSignDateSigned</tablabel> 
        </tab> 
        <tab> 
         <recipientid>1</recipientid> 
         <type>SignHere</type> 
         <tablabel>Client1_DocuSignSignHere</tablabel> 
        </tab> 
        <tab> 
         <recipientid>1</recipientid> 
         <type>FullName</type> 
         <tablabel>Client1_DocuSignFullName</tablabel> 
        </tab> 
       </tabs> 
      </envelope> 
     </inlinetemplate> 
    </inlinetemplates> 
    <document xmlns="http://www.docusign.net/API/3.0"> 
     <id>1</id> 
     <name>DocumentOne</name> 
     <pdfbytes>JVBERi0x</pdfbytes> 
     <fileextension>.pdf</fileextension> 
    </document> 
</compositetemplate> 
</arrayofcompositetemplate> 
+0

필드 위치를 기준으로 필드를 식별하는 것보다 이미 잘 알고있는 양식 필드를 다시 사용하는 느낌이 들었습니다. – BVS

+0

다음은 DocuSign 필드로 변환하고 특정 서명자에게 지정하려는 PDF 양식 필드입니다. –

+0

예, 예를 들어, 문서의 모든 양식 필드와 양식 필드를 사용하고 위와 같이 특정 서명자에게 위치 나 오프셋을 사용하는 대신 createAndSendEnvelope를 지정하는 방법을 알고 있습니다. – BVS

답변

3

PDF 형태로 변환을위한

enter image description here

첨부 페이로드를 추가 정보가 필요하면 알려주세요. 이 기능을 사용하려면 CreateEnvelopeFromTemplates 또는 CreateEnvelopeFromTemplatesAndForms 중 하나를 사용해야합니다. 첫 번째 방법은 기존 기능이며 모든 수신자 (API의 '탭')를 한 명의 수신자에게 할당하는 것으로 제한됩니다. CreateEnvelopeFromTemplatesAndForms (CEFTAF)는 복합 템플릿을 기반으로합니다. SOAP과 REST 모두에서 복합 템플릿 구성을 둘러싼 모든 솔루션을 구축하는 것이 좋습니다. 전체 API 기능을 제공하므로 엔벨로프 어셈블리를 완전히 재 설계하지 않고도 통합을 확장 할 수 있습니다.

CompositeTemplates는 템플릿이 아니라 엔벨로프 구성 프로세스에 대한 "기여 단위"입니다. 하나 이상의 템플릿, 대개 서버 템플릿 (DocuSign에 저장) 및 인라인 템플릿 (코드를 통해 제공)을 포함 할 수 있습니다. 와일드 카드 탭 매칭과 함께 PDF 양식 변환도 지원합니다.

<CompositeTemplate> 
    <Document> 
     <ID>1</ID> 
     <Name>Application form</Name> 
     <PDFBytes>JVBERi0xLjYNJeL...(snipped)</PDFBytes> 
     <TransformPdfFields>true</TransformPdfFields> 
     <FileExtension>pdf</FileExtension> 
    </Document> 

    <InlineTemplates> 
     <InlineTemplate> 
      <Sequence>1</Sequence> 
      <Envelope> 
       <AccountId>87312c39-f11d-4cdf-a7de-905cfbe774e6</AccountId> 
       <Recipients> 
        <!-- the "S1" recipient --> 
        <Recipient> 
         <ID>1</ID> 
         <UserName>Iwana Getthat</UserName> 
         <Email>[email protected]</Email> 
         <Type>Signer</Type> 
         <RoutingOrder>1</RoutingOrder> 
         <RoleName>S1</RoleName> 
         <!-- (option)<DefaultRecipient>true</DefaultRecipient> --> 
        </Recipient> 
        <!-- the "S2" recipient --> 
        <Recipient> 
         <ID>2</ID> 
         <UserName>Ice Screen</UserName> 
         <Email>[email protected]</Email> 
         <Type>Signer</Type> 
         <RoutingOrder>2</RoutingOrder> 
         <RoleName>Approver</RoleName> 
        </Recipient> 
       </Recipients> 
       <Tabs> 
        <!-- Tabs for Recipient 1 --> 
        <Tab> 
         <RecipientID>1</RecipientID> 
         <TabLabel>S1_\*</TabLabel> 
         <Type>SignHere</Type> 
        </Tab> 
        <Tab> 
         <RecipientID>1</RecipientID> 
         <TabLabel>S1_\*</TabLabel> 
         <Type>DateSigned</Type> 
        </Tab> 
        <Tab> 
         <RecipientID>1</RecipientID> 
         <TabLabel>S1_FullName\*</TabLabel> 
         <Type>FullName</Type> 
        </Tab> 
        <Tab> 
         <RecipientID>1</RecipientID> 
         <TabLabel>S1_Email\*</TabLabel> 
         <Type>Custom</Type> 
         <CustomTabValidationPattern>^\[email protected][a-zA-Z_]+?\.[a-zA-Z]{2,3}$</CustomTabValidationPattern> 
         <CustomTabRequired>true</CustomTabRequired> 
        </Tab> 
        <Tab> 
         <!-- Catch all for all other CustomTab types not covered above --> 
         <RecipientID>1</RecipientID> 
         <TabLabel>S1_\*</TabLabel> 
         <Type>Custom</Type> 
         <CustomTabRequired>true</CustomTabRequired> 
        </Tab> 
        <!-- Tabs for Recipient 2 --> 
        <Tab> 
         <RecipientID>2</RecipientID> 
         <TabLabel>S2_\*</TabLabel> 
         <Type>SignHere</Type> 
        </Tab> 
        <Tab> 
         <RecipientID>2</RecipientID> 
         <TabLabel>S2_\*</TabLabel> 
         <Type>DateSigned</Type> 
        </Tab> 
       </Tabs> 
      </Envelope> 
     </InlineTemplate> 
    </InlineTemplates> 
</CompositeTemplate> 

공지 사항 S1_의 TabLabel {아무것도}와 탭 결과 S1_ {아무것도}의 형식 필드의 이름과 일치하는 와일드 카드 "*"의 편리한 사용 : 여기

은 예입니다 "S1"과 관련된 수신자에게 할당합니다.

+0

감사합니다. 이 경우 RoleName은 어떻게 적용됩니까? RoleName은 특정 수신자를 템플릿의 역할로 대체하기위한 것이라고 생각했습니다. –

+1

그 CompositeTemplate 컨텍스트에서, 당신 말이 맞습니다. 그것은 명백한 부분을 재생하지 않습니다. InlineTemplates가받는 사람을 역할에 매핑 한 ServerTemplates를 사용하는 다른 CompositeTemplates가있는 큰 예제에서이 코드를 가져 왔습니다. 코드/메소드 개발의 단순성을 위해 공통 헬퍼 메소드에서 인라인 템플릿의 수신자 섹션을 쉽게 어셈블 할 수 있습니다. 서버 템플릿이없는 다른 CompositeTemplates에서 반복되는 roleName을 지정하면 아무런 해가 없습니다. – WTP

+0

알겠습니다. 고마워요. –