2017-05-31 15 views
0

私はsalesforceでdocusign rest apiを使用しています。私はdocusignでテンプレートを作成し、Salesforceオブジェクトのフィールドに関連するカスタムフィールドを追加しました。salesforceのapiを使用してDocusignカスタムフィールド

docusign rest apiでテンプレートを使用してエンベロープを作成している間、そのフィールドに値を入力したいとします。これを達成する方法を教えてください。

答えて

0

テンプレートを使用したCreateEnvelopeリクエストと、カスタムフィールドのサンプルを示します。

POST/V2 /アカウント/ {accountIdを} /封筒

{ 
    "emailSubject": "Envelope with custom fields", 
    "status": "created", 
    "compositeTemplates": [ 
     { 
      "serverTemplates": [ 
       { 
        "sequence": "1", 
        "templateId": "A71FC458-E234-42FF-9385-E672C4EFD436" 
       } 
      ], 
      "inlineTemplates": [ 
       { 
        "sequence": "1", 
        "customFields": { 
         "textCustomFields": [ 
          { 
           "name": "MyOwnTextField", 
           "required": "true", 
           "show": "true", 
           "value": "MyValue" 
          } 
         ] 
        } 
       } 
      ] 
     } 
    ] 
} 
+0

私はあなたの質問に、あなたのAPIリクエストを追加してくださいすることができ、私はSalesforceのフィールド値 – swati

+0

によって移入するテンプレートに追加カスタムフィールドを移入します。 –

0

サンプル要求は、テンプレート上のすべてのアカウントのフィールドをポピュレートします。

{ 
"emailSubject": "Envelope with custom fields", 
"status": "created", 
"compositeTemplates": [ 
    { 
     "serverTemplates": [ 
      { 
       "sequence": "1", 
       "templateId": "A71FC458-E234-42FF-9385-E672C4EFD436" 
      } 
     ], 
     "inlineTemplates": [ 
      { 
       "sequence": "1", 
       "customFields": { 
        "textCustomFields": [ 
         { 
          "configurationType": "salesforce", 
          "name": "Account", 
          "required": "true", 
          "show": "true", 
          "value": "[SALESFORCE_ACCOUNT_RECORD_ID]" 
         } 
        ] 
       } 
      } 
     ] 
    } 
] 

}

This allows us to populate all the account fields present in template. 
Like this you can use for any object custom fields present in template. 
関連する問題