title: Cannot pass value to SalesForce from Docusign Document, SOAP API, MergeFieldXml
body: <p>Good day everyone,</p>
  
  <p>I need to pass the value of a write-back field from docusign document to Salesforce.</p>
  
  <p>Can you kindly provide an example of a string specifying the properties of MergeFieldXml like configuration type, path,  etc.</p>
  
  <p>According to Docusign SOAP API (<a href="https://www.docusign.net/api/3.0/dsapi.asmx?op=RequestEnvelopeWithDocumentFields" rel="nofollow noreferrer">https://www.docusign.net/api/3.0/dsapi.asmx?op=RequestEnvelopeWithDocumentFields</a>) the MergeField property is passed as string:</p>
  
  <pre><code>&lt;MergeFieldXml&gt;string&lt;/MergeFieldXml&gt;
  </code></pre>
  
  <p>At the same time the string should contain properties like:</p>
  
  <p>Configuration type: salesforce (always)</p>
  
  <p>path: objetc.field</p>
  
  <p>row: record id</p>
  
  <p>writeback: true if the data should be posted to salesforce.</p>
  
  <p>My try does not work showing 'Web service callout failed: WebService returned a SOAP Fault: A Mergefield value for a Tab could not be retrieved. faultcode=soap:Client faultactor=missing in Web.Config
  Row Number: 1196'</p>
  
  <pre><code>tab19.MergeFieldXml = '&lt;configurationType&gt;salesforce&lt;/configurationType&gt;&lt;path&gt;contact.Question_1_Agreement__c&lt;/path&gt;&lt;writeback&gt;true&lt;/writeback&gt;&lt;allowSenderToEdit&gt;false&lt;/allowSenderToEdit&gt;';  
  </code></pre>
  
  <p>If using REST API this would look as follows:</p>
  
  <p>"mergeField": {
     "configurationType":"Salesforce",
     "path":"contact.Question_1_Agreement__c",<br>
     "writeback":"true",
     "allowSenderToEdit":"true",
     }</p>
  
  <p>According to SOAP API documentation (<a href="https://www.docusign.com/p/APIGuide/APIGuide.htm#Sending" rel="nofollow noreferrer">https://www.docusign.com/p/APIGuide/APIGuide.htm#Sending</a> Group/Tab.htm%3FTocPath%3DDocuSign%2520Service%2520API%2520Information%7CSending%2520Function%2520Group%7CCreateAndSendEnvelope%2520and%2520CreateEnvelope%7CTab%7C_____0) </p>
  
  <p>MergeFieldXml is 'reserved for future'.</p>
  
  <p>Does it mean it is not implemented yet?</p>
  
  <p>how do we pass values back to salesforce using SOAP MergeFieldXml?
  Or there may be some other way to accomplish this?</p>
  
  <p>Thank you for any advise.</p>