<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged externalmailing</title>
<link>https://overflow.efficy.io/?qa=tag/externalmailing</link>
<description>Powered by Question2Answer</description>
<item>
<title>Could someone help me with this code on &quot;ExternalMailing.js&quot;</title>
<link>https://overflow.efficy.io/?qa=1392/could-someone-help-me-with-this-code-on-externalmailing-js</link>
<description>&lt;p&gt;Could someone help me with this code on &quot;ExternalMailing.js&quot;?&lt;br&gt;
Freefield #1-#4 dous not work correctly. Thanks in advance.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;        mailingCode = encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('MAILINGCODE').AsString));
        contLanguage = encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('R_LANGUAGE').AsString));

        // http://www.flexmail.be/fr/api/manual/type/12-emailaddresstype
        contactBatch.push('&amp;lt;Item' + efficyNbExportedCont + ' xsi:type=&quot;flex:EmailAddressType&quot;&amp;gt;');
        contactBatch.push('&amp;lt;emailAddress xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('EMAIL1').AsString)) + '&amp;lt;/emailAddress&amp;gt;');
        contactBatch.push('&amp;lt;title xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('TITLE').AsString)) + '&amp;lt;/title&amp;gt;');
        contactBatch.push('&amp;lt;name xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('FIRSTNAME').AsString)) + '&amp;lt;/name&amp;gt;');
        contactBatch.push('&amp;lt;surname xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('NAME').AsString)) + '&amp;lt;/surname&amp;gt;');
        ContactBatch.push('&amp;lt;free_field_1 xsi:type=&quot;xsd:string&quot;&amp;gt;' + escape((contactDataSet.FieldByName(&quot;GENDER&quot;).AsString == &quot;M&quot; ? 'Geachte heer' : (contactDataSet.FieldByName(&quot;GENDER&quot;).AsString == &quot;F&quot; ? 'Geachte mevrouw' : 'Geachte heer/mevrouw' ) )) + '&amp;lt;/free_field_1&amp;gt;')
        ContactBatch.push('&amp;lt;free_field_2 xsi:type=&quot;xsd:string&quot;&amp;gt;' + escape(MailingCode) + '&amp;lt;/free_field_2&amp;gt;')
        ContactBatch.push('&amp;lt;free_field_3 xsi:type=&quot;xsd:string&quot;&amp;gt;' + escape(contactDataSet.FieldByName(&quot;MIDDLENAME&quot;).AsString) + '&amp;lt;/free_field_3&amp;gt;')
        ContactBatch.push('&amp;lt;free_field_4 xsi:type=&quot;xsd:string&quot;&amp;gt;' + escape(contactDataSet.FieldByName(&quot;MIDDLENAME&quot;).AsString.slice(0,1).toUpperCase() + contactDataSet.FieldByName(&quot;MIDDLENAME&quot;).AsString.slice(1)) + '&amp;lt;/free_field_4&amp;gt;') 
        contactBatch.push('&amp;lt;free_field_6 xsi:type=&quot;xsd:string&quot;&amp;gt;' + encodeURIComponent(escapeHtmlEntities(sourceContDs.FieldByName('MIDDLENAME').AsString)) + '&amp;lt;/free_field_6&amp;gt;');
        contactBatch.push(getActivityContent(activitiesUrl, mailingCode, contLanguage, fixedUrl));
        contactBatch.push('&amp;lt;referenceId xsi:type=&quot;xsd:string&quot;&amp;gt;' + sourceContDs.FieldByName('K_CONTACT').AsString + '&amp;lt;/referenceId&amp;gt;');
        contactBatch.push('&amp;lt;/Item' + efficyNbExportedCont + '&amp;gt;');
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1392/could-someone-help-me-with-this-code-on-externalmailing-js</guid>
<pubDate>Mon, 07 Mar 2016 10:14:01 +0000</pubDate>
</item>
</channel>
</rss>