<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions in Remote API (JSON, SOAP, Node)</title>
<link>https://overflow.efficy.io/?qa=questions/developers/customizing-efficy/microsoft-net-soap-proxy</link>
<description>Powered by Question2Answer</description>
<item>
<title>Last version of Efficy.Net.dll</title>
<link>https://overflow.efficy.io/?qa=6999/last-version-of-efficy-net-dll</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am migrating a customer from Efficy 2012 to Efficy 12.0.&lt;br&gt;
For this customer, we made a .NET Application to run some synchro between Efficy and another software.&lt;/p&gt;

&lt;p&gt;This application doesn't work anymore with Efficy 12.0, we are encountering an error when creating Efficy session.&lt;/p&gt;

&lt;p&gt;After some research, it appears that the component Efficy.Net.dll is pretty old and I can't find a recent one.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6999/last-version-of-efficy-net-dll</guid>
<pubDate>Tue, 28 Nov 2023 13:51:39 +0000</pubDate>
</item>
<item>
<title>Edit specific detail from SOAP API when K_RELATION exists</title>
<link>https://overflow.efficy.io/?qa=6839/edit-specific-detail-from-soap-api-when-krelation-exists</link>
<description>&lt;p&gt;when using the soap interface, the customer wants to update a detail (contact) on a relation where K_RELATION is present. &lt;/p&gt;

&lt;p&gt;This is his request &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;SOAP-ENV:Envelope xmlns:efficy=http://www.efficy.com xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope&amp;gt;
            &amp;lt;SOAP-ENV:Body&amp;gt;
                           &amp;lt;efficy:edit key=&quot;734871&quot; entity=&quot;POLI&quot;&amp;gt;
                                           &amp;lt;updatedetail detailkey=&quot;27963&quot; detail=&quot;CONT&quot;&amp;gt;
                                                           &amp;lt;f_role&amp;gt;2&amp;lt;/f_role&amp;gt;
                                           &amp;lt;/updatedetail&amp;gt;
                           &amp;lt;/efficy:edit&amp;gt;
            &amp;lt;/SOAP-ENV:Body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;and this the response :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;SOAP-ENV:Envelope xmlns:efficy=http://www.efficy.com xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope&amp;gt;
&amp;lt;SOAP-ENV:Body&amp;gt;
    &amp;lt;efficy:edit key=&quot;734871&quot; entity=&quot;POLI&quot; edithandle=&quot;4&quot; error=&quot;true&quot;&amp;gt;
        &amp;lt;updatedetail detailkey=&quot;27963&quot; detail=&quot;CONT&quot;&amp;gt;
            &amp;lt;f_role&amp;gt;2&amp;lt;/f_role&amp;gt;
        &amp;lt;/updatedetail&amp;gt;
    &amp;lt;/efficy:edit&amp;gt;
    &amp;lt;SOAP-ENV:Fault&amp;gt;
        &amp;lt;faultcode&amp;gt;EEfficyException&amp;lt;/faultcode&amp;gt;
        &amp;lt;faultstring&amp;gt;Cannot find detail with key &quot;27963&quot;, relation &quot;1&quot;&amp;lt;/faultstring&amp;gt;
        &amp;lt;faultid/&amp;gt;
        &amp;lt;Detail&amp;gt;CORE-1332&amp;lt;/Detail&amp;gt;
    &amp;lt;/SOAP-ENV:Fault&amp;gt;
&amp;lt;/SOAP-ENV:Body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;does he need to search for the specific detail with the detail or is there a better way to obtain the K_RELATION to edit the correct detail ?&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6839/edit-specific-detail-from-soap-api-when-krelation-exists</guid>
<pubDate>Wed, 15 Mar 2023 13:53:11 +0000</pubDate>
</item>
<item>
<title>SOAP API Security</title>
<link>https://overflow.efficy.io/?qa=6825/soap-api-security</link>
<description>&lt;p&gt;Good morning everyone,&lt;/p&gt;

&lt;p&gt;I'm testing the configuration of the SOAP API and I'm a bit confused on how the security works.&lt;/p&gt;

&lt;p&gt;Following the &quot;Easy SOAP integration&quot; project guide I created two queries : one to retrieve a contact's Key with a email parameter and another to retrieve the list of active opportunities of a specific department (no parameter, the department is set). Both query have the following security settings : Administrators group : full control.&lt;/p&gt;

&lt;p&gt;I've setup the SOAP Group removing any Privileges and any Table Rights, only checking Query:Execute.&lt;br&gt;
I've setup the SOAP User removing any User Privileges and any User Privileges in Designer ; setting the User Role as SOAP Group; removing the user from Everyone and adding it to the SOAP Group.&lt;/p&gt;

&lt;p&gt;Testing the API calls with Postman I get the following results :&lt;br&gt;
* the contact query returns the key value&lt;br&gt;
* the opportunities query return no results unless I add the SOAP User to the right department group&lt;/p&gt;

&lt;p&gt;Where does the different behaviour come from ?&lt;br&gt;
Subsequently, how can I restrict the SOAP user from executing any request, allowing only the few specifically designed for the API purpose ?&lt;/p&gt;

&lt;p&gt;Thank you for your help,&lt;/p&gt;

&lt;p&gt;Alexandre&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6825/soap-api-security</guid>
<pubDate>Wed, 22 Feb 2023 10:53:13 +0000</pubDate>
</item>
<item>
<title>(API) How to send fax and sms from Efficy as it exists for emails notifications ?</title>
<link>https://overflow.efficy.io/?qa=6755/api-how-send-fax-and-from-efficy-exists-emails-notifications</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Is there any API for sending sms and/or faxes from Efficy ?&lt;/p&gt;

&lt;p&gt;Thank you&lt;br&gt;
Dimitri&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6755/api-how-send-fax-and-from-efficy-exists-emails-notifications</guid>
<pubDate>Thu, 10 Nov 2022 10:26:34 +0000</pubDate>
</item>
<item>
<title>What is WebHookDispatch service used for?</title>
<link>https://overflow.efficy.io/?qa=6727/what-is-webhookdispatch-service-used-for</link>
<description>&lt;p&gt;In Efficy 2021, we remarked that there is a new service call &quot;WebHookDispatchAdmin.exe&quot;, do we need to installed it if we use Efficy WebHook ? &lt;/p&gt;

&lt;p&gt;And what is used for ?&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6727/what-is-webhookdispatch-service-used-for</guid>
<pubDate>Wed, 19 Oct 2022 15:06:26 +0000</pubDate>
</item>
<item>
<title>Is there a way to send mutlivalue fields values through the API ?</title>
<link>https://overflow.efficy.io/?qa=6705/is-there-way-to-send-mutlivalue-fields-values-through-the-api</link>
<description>&lt;p&gt;We try to use the API to call an Efficy Query that contains multivalue fields.&lt;/p&gt;

&lt;p&gt;When we execute the query in Efficy, the result contains the value of the multivalue field, but when we execute the query through the API, the multivalue field is getting the key separated by semic-columns.&lt;/p&gt;

&lt;p&gt;In order to test it in a standard Efficy 12.0 Efficy Entreprise, it is quite easy : &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1- create an API key in Efficy Designer (link to admin user)&lt;br&gt;
2- create an Efficy Query for instance :&lt;/strong&gt; &lt;br&gt;
[Select]&lt;br&gt;
OPPORTUNITIES.K_OPPORTUNITY&lt;br&gt;
OPPORTUNITIES.NAME&lt;br&gt;
OPPORTUNITIES.COMPETITORS&lt;/p&gt;

&lt;p&gt;[From]&lt;br&gt;
OPPORTUNITIES&lt;/p&gt;

&lt;p&gt;[Where]&lt;br&gt;
OPPORTUNITIES.COMPETITORS notisnull &quot;&quot;&lt;/p&gt;

&lt;p&gt;[Orderby]&lt;/p&gt;

&lt;p&gt;[Options]&lt;br&gt;
ChangeParameters=0&lt;br&gt;
Distinct=0&lt;/p&gt;

&lt;p&gt;[InlineEdit]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3- Call this query from Postman :&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;URL : &lt;a rel=&quot;nofollow&quot; href=&quot;http://{{YOUR_LOCAL_EFFICY}}/crm/json&quot;&gt;http://{{YOUR_LOCAL_EFFICY}}/crm/json&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;HEADERS&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
X-Efficy-ApiKey:{{EfficyAPIKey}}&lt;br&gt;
Cache-Control:no-cache&lt;br&gt;
Content-Type:application/json&lt;br&gt;
Accept:application/json&lt;br&gt;
Cookie:{{EfficyCookie}}&lt;br&gt;
X-Efficy-Logoff:False&lt;br&gt;
X-Efficy-Lang:FR&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;BODY&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
[&lt;br&gt;
  {&lt;br&gt;
    &quot;@name&quot;: &quot;api&quot;,&lt;br&gt;
    &quot;@func&quot;: [&lt;br&gt;
      {&lt;br&gt;
        &quot;@name&quot;: &quot;query&quot;,&lt;br&gt;
        &quot;key&quot;: &quot;{{Efficy Query KEY}}&quot;&lt;br&gt;
      }&lt;br&gt;
    ]&lt;br&gt;
  }&lt;br&gt;
]&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Result of the API :&lt;/strong&gt; &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{
    &quot;K_OPPORTUNITY&quot;: 30,
    &quot;NAME&quot;: &quot;test&quot;,
    &quot;COMPETITORS&quot;: &quot;;1;2;&quot;
},
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Result in Efficy :&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=15585836867604139491&quot; alt=&quot;Efficy Query Result&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Attended Result from the API :&lt;/strong&gt; &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{
    &quot;K_OPPORTUNITY&quot;: 30,
    &quot;NAME&quot;: &quot;test&quot;,
    &quot;COMPETITORS&quot;: &quot;Competitor1, Competitor2&quot;
},
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;PS: I Tried with the Alias &quot;MULTIVALUE&quot; but that did not change a thing.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6705/is-there-way-to-send-mutlivalue-fields-values-through-the-api</guid>
<pubDate>Wed, 05 Oct 2022 16:01:01 +0000</pubDate>
</item>
<item>
<title>How to manage SOAP requests WSSE (open spec) authentication in JS ?</title>
<link>https://overflow.efficy.io/?qa=6700/how-to-manage-soap-requests-wsse-open-spec-authentication-in</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;Some context: I have a customer who want me to query the KBO OpenData API.&lt;br&gt;
They use SOAP along with the WSSE open standard, for the authentication.&lt;/p&gt;

&lt;p&gt;Do we have a library / tool / projutil to handle the generation of a WSSE header (given a password and username) ?&lt;/p&gt;

&lt;p&gt;I swear I have looked around, but alas didn't find such tool&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6700/how-to-manage-soap-requests-wsse-open-spec-authentication-in</guid>
<pubDate>Tue, 04 Oct 2022 14:16:14 +0000</pubDate>
</item>
<item>
<title>Efficy Entreprise Remote API and Sessions : does the SS_ID is working with the JSON API and the API Key ?</title>
<link>https://overflow.efficy.io/?qa=6423/efficy-entreprise-remote-sessions-does-ssid-working-json</link>
<description>&lt;p&gt;On &lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/dev/dnsp_efficysessionclass&quot;&gt;EDN efficysessionclass&lt;/a&gt; it is written that we can use the &lt;code&gt;SS_ID&lt;/code&gt; parameter in order to create has many sessions we want with the SOAP api.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;I suppose it works, but does this &lt;code&gt;SS_ID&lt;/code&gt; parameter is working with the JSON API?&lt;/li&gt;
&lt;li&gt;I also suppose that it works, but does this &lt;code&gt;SS_ID&lt;/code&gt; parameter is working when we use an Efficy API KEY?&lt;/li&gt;
&lt;li&gt;Do we have any limitation of the number of sessions that we can open/managed?&lt;/li&gt;
&lt;li&gt;Do we have to manage a cookie for each session we open with the SS_ID?&lt;/li&gt;
&lt;li&gt;I suppose we need to do it, but do we have to close each sessions once all the calls are finished?&lt;/li&gt;
&lt;li&gt;If we don't use the SS_ID parameter is it possible to launch several Efficy API calls at the same time? if yes, how many simultaneous call can we do?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I know it is a lot of question, but I could not find any answer in EDN.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6423/efficy-entreprise-remote-sessions-does-ssid-working-json</guid>
<pubDate>Wed, 05 Jan 2022 15:32:12 +0000</pubDate>
</item>
<item>
<title>Alphanumeric field gives bizarre error in JSON API request</title>
<link>https://overflow.efficy.io/?qa=6318/alphanumeric-field-gives-bizarre-error-in-json-api-request</link>
<description>&lt;p&gt;when executing the following request&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[{
        &quot;@name&quot;: &quot;Edit&quot;,
        &quot;entity&quot;: &quot;Docu&quot;,
        &quot;commit&quot;: &quot;true&quot;,
        &quot;closecontext&quot;: &quot;true&quot;,
        &quot;@func&quot;: [{
                &quot;@name&quot;: &quot;update&quot;,
                &quot;@data&quot;: {
                    &quot;NAME&quot;: &quot;Klein testje 2021&quot;,
                    &quot;F_DIENST&quot;: 6,
                    &quot;F_TYPE&quot;: 70,
                    &quot;F_ONTVANGSTWIJZE&quot;: 0,
                    &quot;F_NR_AANGETEKEND&quot;: &quot;220309282357&quot;,
                    &quot;MEMOFORMATTED&quot;: 0,
                    &quot;MEMO&quot;: &quot;&quot;,
                    &quot;F_STATUS&quot;: 0
                }
            }
        ]
    }
]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;we get this error :&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&quot;#error&quot;: {&lt;br&gt;
                    &quot;errorcode&quot;: &quot;EConvertError&quot;,&lt;br&gt;
                    &quot;errorstring&quot;: &quot;'' is not a valid date and time&quot;&lt;br&gt;
                }&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The field &lt;code&gt;F_NR_AANGETEKEND&lt;/code&gt; is the problem.&lt;br&gt;
It's an alphanumeric field with a length of 32.&lt;/p&gt;

&lt;p&gt;values like &quot;&quot; or &quot;123&quot; or &quot;0&quot; etc are no problem.&lt;br&gt;
But values like this give the conversion error.&lt;br&gt;
Is this a bug or is there another way how we can force the API to see the value as a string ?&lt;/p&gt;

&lt;p&gt;This happens on a Efficy (Build 11.2.19857.0 2019-12-07 12:02)&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6318/alphanumeric-field-gives-bizarre-error-in-json-api-request</guid>
<pubDate>Thu, 14 Oct 2021 18:22:26 +0000</pubDate>
</item>
<item>
<title>is there a way to get the session ID</title>
<link>https://overflow.efficy.io/?qa=6121/is-there-a-way-to-get-the-session-id</link>
<description>&lt;p&gt;hi,&lt;/p&gt;

&lt;p&gt;One of our customer is making a custom log module and he would like to get the session ID.&lt;br&gt;
Is there an existing function to get that ?&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6121/is-there-a-way-to-get-the-session-id</guid>
<pubDate>Fri, 21 May 2021 12:34:12 +0000</pubDate>
</item>
<item>
<title>How to pass parameters to executeDatabaseQuery?</title>
<link>https://overflow.efficy.io/?qa=6074/how-to-pass-parameters-to-executedatabasequery</link>
<description>&lt;p&gt;How do I provide the TEnhStringList parameter values for the remote executeDatabaseQuery operation?&lt;/p&gt;

&lt;p&gt;The following code snippet converts &lt;code&gt;params&lt;/code&gt; (a JS Array of values) into values of &lt;code&gt;queryParameters&lt;/code&gt; (&lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.io/edn/serverjs#TEnhStringList&quot;&gt;TEnhStringList object&lt;/a&gt;)  named like &lt;code&gt;PARAM1, PARAM2...&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The query is executed, but with the default parameters, not the one provided&lt;/p&gt;

&lt;p&gt;I'm looking for 11.2 compatible code&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;executeDatabaseQuery: function(idQuery, params) {
    try {
        var ds, operationHandle,
            queryParameters = TEnhStringList.create(),
            loadBlobs = false;

        if (Array.isArray(params)) {
            params.forEach(function(param, index) {
                // Does not work
                queryParameters.values(&quot;PARAM&quot; + (index + 1)) = param;

                // Solved with Overflow answer, param must be lower case.
                queryParameters.values(&quot;param&quot; + (index + 1)) = param;

            }.bind(this))
        }

        operationHandle = Efficy.executeDatabaseQuery(idQuery, queryParameters, loadBlobs);
        Efficy.executeBatch();

        ds = Efficy.getDataset(operationHandle);
        return JSON.parse(datasetToJSon(ds));
    } finally {
        queryParameters &amp;amp;&amp;amp; queryParameters.free();
        ds &amp;amp;&amp;amp; ds.free();
    }
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6074/how-to-pass-parameters-to-executedatabasequery</guid>
<pubDate>Mon, 10 May 2021 10:02:33 +0000</pubDate>
</item>
<item>
<title>Can we know the IP address of the sender of a node request?</title>
<link>https://overflow.efficy.io/?qa=5915/can-we-know-the-ip-address-of-the-sender-of-a-node-request</link>
<description>&lt;p&gt;In a serverjs/api/node file, I would like to track the IP address of the sender of the request.&lt;br&gt;
Is it possible?&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5915/can-we-know-the-ip-address-of-the-sender-of-a-node-request</guid>
<pubDate>Wed, 24 Feb 2021 11:17:08 +0000</pubDate>
</item>
<item>
<title>Is there anyone who plugged Efficy into an appointment scheduling tool?</title>
<link>https://overflow.efficy.io/?qa=5599/there-anyone-plugged-efficy-into-appointment-scheduling-tool</link>
<description>&lt;p&gt;Is there anyone who plugged Efficy into an appointment scheduling tool? The need is for Efficy to send a set of diaries to the tool and for this tool to highlight the slots where people are available to make appointments, also taking into account the travel times between 2 appointments.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5599/there-anyone-plugged-efficy-into-appointment-scheduling-tool</guid>
<pubDate>Thu, 08 Oct 2020 08:31:19 +0000</pubDate>
</item>
<item>
<title>when this log file is created ? efficy_ServerJS_YYYYDDMM.log</title>
<link>https://overflow.efficy.io/?qa=5550/when-this-log-file-is-created-efficyserverjsyyyyddmm-log</link>
<description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;For a customer i've made a litle script used by node api.&lt;br&gt;
In this script i've made some Efficy.log   to log some things.&lt;br&gt;
When we made test, we 've seen that the log where logged in this file  &lt;code&gt;efficy_ServerJS_YYYYDDMM.log&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;but since the test, this file hasn't been created anymore.&lt;br&gt;
i search why, and what to do for that.&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5550/when-this-log-file-is-created-efficyserverjsyyyyddmm-log</guid>
<pubDate>Tue, 25 Aug 2020 08:55:14 +0000</pubDate>
</item>
<item>
<title>Is it possible to pass a null value in JSON API request?</title>
<link>https://overflow.efficy.io/?qa=5541/is-it-possible-to-pass-a-null-value-in-json-api-request</link>
<description>&lt;p&gt;To create a company I'm using the following JSON API request:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[
{
&quot;@name&quot;: &quot;edit&quot;,
&quot;entity&quot;: &quot;Comp&quot;,
&quot;key&quot;: 0,
&quot;commit&quot;: true,
&quot;@func&quot;: [
{
&quot;@name&quot;: &quot;update&quot;, 
&quot;@data&quot;: 
{
&quot;NAME&quot;: &quot;Test 01&quot;,
&quot;VAT&quot;: null
}
}
]
}
]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;but getting &quot;Unknown data type for field VAT&quot; error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[
    {
        &quot;@name&quot;: &quot;edit&quot;,
        &quot;entity&quot;: &quot;Comp&quot;,
        &quot;commit&quot;: true,
        &quot;@func&quot;: [
            {
                &quot;@name&quot;: &quot;update&quot;,
                &quot;@data&quot;: {
                    &quot;NAME&quot;: &quot;Test 01&quot;,
                    &quot;VAT&quot;: null
                },
                &quot;#error&quot;: {
                    &quot;errorcode&quot;: &quot;EEfficyException&quot;,
                    &quot;errorstring&quot;: &quot;Unknown data type for field \&quot;VAT\&quot;&quot;,
                    &quot;detail&quot;: &quot;CORE-1326&quot;
                }
            }
        ],
        &quot;key&quot;: &quot;13&quot;,
        &quot;edithandle&quot;: &quot;2&quot;,
        &quot;#error&quot;: true
    },
    {
        &quot;@name&quot;: &quot;exception&quot;,
        &quot;#error&quot;: {
            &quot;errorcode&quot;: &quot;EEfficyException&quot;,
            &quot;errorstring&quot;: &quot;Unknown data type for field \&quot;VAT\&quot;&quot;,
            &quot;detail&quot;: &quot;CORE-1326&quot;
        }
    }
]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is it possible to pass a null value somehow?&lt;br&gt;
Skipping the line will make the request to work, but sometimes it is necessary to pass a null (not an empty string, 0, etc) &lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5541/is-it-possible-to-pass-a-null-value-in-json-api-request</guid>
<pubDate>Wed, 19 Aug 2020 06:23:17 +0000</pubDate>
</item>
<item>
<title>Erro 'Field must have a value' when it is filled in</title>
<link>https://overflow.efficy.io/?qa=5405/erro-field-must-have-a-value-when-it-is-filled-in</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;For a customer I am creating a node API and when I execute the code below I get the error &quot;Field company kind must have a value&quot;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=17028411142850186125&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;When I look in the dataset I can see that the field is filled in.&lt;br&gt;
It's also not an error caused by workflow because I already disabled it in a test.&lt;/p&gt;

&lt;p&gt;I think it has something to do with how the relation is created.&lt;br&gt;
Because when i create a link between two companies in the UI a relation is created in both ways (it's some custom).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=7846615000886606339&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=15253781908403777613&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;Maybe this screenshots are useful.&lt;/p&gt;

&lt;p&gt;I hope somebody can help me.&lt;/p&gt;

&lt;p&gt;Thanks in advance,&lt;br&gt;
Bart&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5405/erro-field-must-have-a-value-when-it-is-filled-in</guid>
<pubDate>Wed, 22 Apr 2020 14:56:14 +0000</pubDate>
</item>
<item>
<title>Is it possible to filter by null values using &quot;consultmanyex&quot; function (JSON API) ?</title>
<link>https://overflow.efficy.io/?qa=5222/possible-filter-null-values-using-consultmanyex-function</link>
<description>&lt;p&gt;I'm using the JSON API to call the &quot;consultmanyex&quot; function and search for an entity that meet a certain predicate.&lt;/p&gt;

&lt;p&gt;I would like to base my predicate on the existence of a value for a certain field.&lt;/p&gt;

&lt;p&gt;Do you have an idea of how I can specify a &quot;Null&quot; value in my predicate ?&lt;/p&gt;

&lt;p&gt;Here is a query example (that obviously does not work) of what I'm trying to achieve  : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[{
    &quot;@name&quot;: &quot;api&quot;,
    &quot;commit&quot;: true,
    &quot;closecontext&quot;: true,
    &quot;@func&quot;: [
        {
            &quot;@name&quot;: &quot;consultmanyex&quot;,
            &quot;entity&quot;: &quot;ContComp&quot;,
            &quot;findfield&quot;: &quot;k_contact;d_end&quot;,
            &quot;keys&quot;: &quot;3544;NULL&quot;,
            &quot;separator&quot;: &quot;;&quot;
        }
    ]
}]
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5222/possible-filter-null-values-using-consultmanyex-function</guid>
<pubDate>Mon, 02 Mar 2020 07:08:22 +0000</pubDate>
</item>
<item>
<title>Remote API: Trouble linking a Case to a Document with JSON</title>
<link>https://overflow.efficy.io/?qa=5308/remote-api-trouble-linking-a-case-to-a-document-with-json</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;when I try to link a Case to a newly created Document I get the following error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{
            &quot;@name&quot;: &quot;insertDetail&quot;,
            &quot;detail&quot;: &quot;Case&quot;,
            &quot;detailKey&quot;: 31,
            &quot;#error&quot;: {
                &quot;errorcode&quot;: &quot;EConvertError&quot;,
                &quot;errorstring&quot;: &quot;'' is not a valid floating point value&quot;
            }
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I'm using the flowing to link the Case to the Document:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{
&quot;@name&quot;: &quot;insertDetail&quot;,
&quot;detail&quot;: &quot;Case&quot;,
&quot;detailKey&quot;: 31
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;What could be the cause of this error?&lt;/p&gt;

&lt;p&gt;PS. When I try to link in Efficy a Case to a Document I don't have any issues.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5308/remote-api-trouble-linking-a-case-to-a-document-with-json</guid>
<pubDate>Wed, 12 Feb 2020 12:39:13 +0000</pubDate>
</item>
<item>
<title>Insert an attachment through JSON?</title>
<link>https://overflow.efficy.io/?qa=5300/insert-an-attachment-through-json</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;does anyone know how to insert an attachment through JSON?&lt;br&gt;
I need this for a customer who wants to insert documents from a website.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5300/insert-an-attachment-through-json</guid>
<pubDate>Wed, 12 Feb 2020 09:19:07 +0000</pubDate>
</item>
<item>
<title>OAuth2.0: Connection from serverside script</title>
<link>https://overflow.efficy.io/?qa=5050/oauth2-0-connection-from-serverside-script</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;for the integration of Rydoo, I need to use a specific authentication protocol called &quot;OAuth2.0&quot;. I need to make the API call server-side but to retrieve the authentication token from the API they need this &quot;side-call&quot;. It has to be provided as extra in the call, not in the header, body or in the URL params.&lt;/p&gt;

&lt;p&gt;I managed to use the API via Postman, but it doesn't seem like there is a way in efficy to make this kind of call (or at least I couldn't find any documentation for it).&lt;/p&gt;

&lt;p&gt;Here are some screenshots if it helps to explain my current problem.&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=1719893486953637136&quot; alt=&quot;enter image description here&quot;&gt;&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=10875277165488348761&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5050/oauth2-0-connection-from-serverside-script</guid>
<pubDate>Tue, 19 Nov 2019 10:02:24 +0000</pubDate>
</item>
<item>
<title>How to use Remote Api when sso is activated</title>
<link>https://overflow.efficy.io/?qa=4914/how-to-use-remote-api-when-sso-is-activated</link>
<description>&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;I have made an listle custom using /json and /node api.&lt;br&gt;
Working good on the customer test server, but not in their prod server because sso is activated.&lt;/p&gt;

&lt;p&gt;(receive a 401 access denied, exactly like you click cancel on the pop windows when trying to connect with a browser)&lt;/p&gt;

&lt;p&gt;what do i need to do ?&lt;br&gt;
sending &quot;something&quot; in the header of the request for sso ?&lt;br&gt;
configuring &quot;something&quot; on the server to don't use sso for the remote api ?&lt;br&gt;
other ?&lt;/p&gt;

&lt;p&gt;Regards.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4914/how-to-use-remote-api-when-sso-is-activated</guid>
<pubDate>Mon, 14 Oct 2019 09:29:37 +0000</pubDate>
</item>
<item>
<title>Remote Api node is working but return an error in header</title>
<link>https://overflow.efficy.io/?qa=4901/remote-api-node-is-working-but-return-an-error-in-header</link>
<description>&lt;p&gt;Hi Everyone,&lt;/p&gt;

&lt;p&gt;I've made a short node api for a customer.&lt;br&gt;
When he use it, all is working good, but he receive this in the header of the response.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;X-Efficy-Status:
  - error
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;i've try locally on my computer with postman and i didn't have this.&lt;br&gt;
I've not yet try on customer test server with postman to see if we have this also&lt;/p&gt;

&lt;p&gt;Do you know in which case this is returned in the headers ?&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4901/remote-api-node-is-working-but-return-an-error-in-header</guid>
<pubDate>Fri, 11 Oct 2019 11:08:18 +0000</pubDate>
</item>
<item>
<title>Download CONTACTS.PICTURE using api</title>
<link>https://overflow.efficy.io/?qa=4684/download-contacts-picture-using-api</link>
<description>&lt;p&gt;Is it possible to download pictures from for example contacts.picture using a json API request? I cannot find any documentation about this. &lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4684/download-contacts-picture-using-api</guid>
<pubDate>Mon, 12 Aug 2019 13:24:51 +0000</pubDate>
</item>
<item>
<title>How can we get the real bytes of an attachment from the FILES.STREAM with .NET soap</title>
<link>https://overflow.efficy.io/?qa=4681/how-real-bytes-attachment-from-the-files-stream-with-net-soap</link>
<description>&lt;p&gt;with &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EfficySession s = new EfficySession(...)
var dt = s.ExecuteSQLQuery(&quot;select * from ArdisICT.FILES WHERE K_TABLE=31000 AND K_1=:param1&quot;, 1, true, p2);
foreach (DataRow r in dt.Rows)
{
   string fname = r[&quot;PATH&quot;].ToString();
   string streamv = r[&quot;STREAM&quot;].ToString();
   byte[] bytes = s.ConvertFromBase64Attachment(streamv);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In bytes I get the zlib compressed data, but how can I get the right decompressed data?&lt;/p&gt;

&lt;p&gt;Or can I use soap method similar to Efficy.getFileStream ?&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4681/how-real-bytes-attachment-from-the-files-stream-with-net-soap</guid>
<pubDate>Mon, 12 Aug 2019 11:57:31 +0000</pubDate>
</item>
<item>
<title>Node &lt;category&gt; not allowed in TConsultRequestHandler</title>
<link>https://overflow.efficy.io/?qa=4371/node-category-not-allowed-in-tconsultrequesthandler</link>
<description>&lt;p&gt;Hello Efficy Team, &lt;/p&gt;

&lt;p&gt;According to (my understanding of) the &lt;a rel=&quot;nofollow&quot; href=&quot;https://help.efficy.com/edn/rpcfunctions#category&quot;&gt;documentation&lt;/a&gt;, we can retrieve the data of a categoy in SOAP, with the node &quot;category&quot;.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=2839812894757847389&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;However, I get an error when I am trying to use it : &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=14000412078254602911&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=13552593901520736249&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;What did I missed ? &lt;/p&gt;

&lt;p&gt;Obviously, I am not in &amp;gt;11.2, I cannot use RPC JSON request ... :( &lt;/p&gt;

&lt;p&gt;Regards, &lt;/p&gt;

&lt;p&gt;Loïc&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4371/node-category-not-allowed-in-tconsultrequesthandler</guid>
<pubDate>Tue, 28 May 2019 04:53:13 +0000</pubDate>
</item>
<item>
<title>How to best launch command line request?</title>
<link>https://overflow.efficy.io/?qa=4007/how-to-best-launch-command-line-request</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;For a client that uses Efficy 10.2, there is already a sync in place between Efficy and their erp software &quot;Talk&quot;. &lt;/p&gt;

&lt;p&gt;There is a functionality to launch the Talk GUI in Efficy by pressing a button on the relevant contact/company consultation window.&lt;/p&gt;

&lt;p&gt;This works fine in IE, but not in for example Chrome. I found that this is due to the use of the ActiveXObject.&lt;/p&gt;

&lt;p&gt;What would be a better way to realize this so that all browser can support this functionality? I provided a part of the code below.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;function InformNewTalk(Params) {
    var RunStr = &quot;&quot;;
    try {
        RunStr += &quot;cmd /K C: &amp;amp; CD c:\\Talkv3_speed\\ &amp;amp; &quot;
        RunStr += &quot;start &quot; + Params.replace(/\==/g,&quot;//&quot;)
        RunStr += &quot; &amp;amp; exit&quot;;
        var w = new ActiveXObject(&quot;WScript.Shell&quot;);

        w.run(RunStr);
    } catch (ex) {
        alert(RunStr.replace(/\&quot;/g,&quot;&quot;) + &quot;\nError:\n&quot; + ex.message);
        return false;
    }
    return true;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4007/how-to-best-launch-command-line-request</guid>
<pubDate>Wed, 06 Mar 2019 13:45:46 +0000</pubDate>
</item>
<item>
<title>Authentication error using openURL</title>
<link>https://overflow.efficy.io/?qa=3887/authentication-error-using-openurl</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am having a problem with soap requests being sent to a webservice designed to synchronise efficy changes with another system ( Navision ).&lt;br&gt;
The client has upgraded the version of Navision and this is now located on a different server. Efficy version is 2014.&lt;/p&gt;

&lt;p&gt;These webservices worked with the old version, but now there seems to be a problem.&lt;/p&gt;

&lt;p&gt;The soap requests are triggered in the workflow ( you will find the code below ). After some digging, i found that the request was sending back an HTTP 401 status.&lt;br&gt;
It seems that the authentication is now different than it was before.&lt;/p&gt;

&lt;p&gt;The client thinks the new version of Navision does'nt support basic authentication anymore, and that NTLM is now required.&lt;/p&gt;

&lt;p&gt;The soap-request itself is correct, i managed to get a result using SoapUI ( see screenshot ), but this seems to use the NTLM protocol. &lt;br&gt;
I used the authentication utility in soapUI for this. ( adding the headers manually doesn't work ).&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=16544001861574732047&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;Could this mean we cannot use openURL to connect anymore? Does it only use basic authentication?&lt;/p&gt;

&lt;p&gt;Any suggestions are welcome.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var oldURL = &quot;http://hostname/DynamicsNAV90/WS/Dialog/Page/Integratie_Contact_Card&quot;;
var URL = &quot;http://hostname/Dialog/WS/Dialog%20LIVE/Page/Integratie_Contact_Card&quot;;   
    var RequestHeader = TStringList.Create;
    try {
        RequestHeader.Add('POST /Dialog/WS/Dialog/Page/Integratie_Contact_Card HTTP/1.1');
        RequestHeader.Add('SOAPAction: urn:microsoft-dynamics-schemas/page/integratie_contact_card:Read');
        RequestHeader.Add('EffNtlmLogin: ...');
        RequestHeader.Add('EffNtlmPassword: ...');
               RequestHeader.Add('Content-Type: text/xml; charset=utf-8');
        var requestContent = '&amp;lt;soapenv:Envelope xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:int=&quot;urn:microsoft-dynamics- 
               schemas/page/integratie_contact_card&quot;&amp;gt;';
            requestContent += '&amp;lt;soapenv:Header/&amp;gt;';
                requestContent += '&amp;lt;soapenv:Body&amp;gt;';
                    requestContent += '&amp;lt;int:Read&amp;gt;';
                        requestContent += '&amp;lt;int:GTex_CustAddr&amp;gt;&amp;lt;/int:GTex_CustAddr&amp;gt;';
                        requestContent += '&amp;lt;int:No&amp;gt;' + navNumber + '&amp;lt;/int:No&amp;gt;';
                    requestContent += '&amp;lt;/int:Read&amp;gt;';
                requestContent += '&amp;lt;/soapenv:Body&amp;gt;';
            requestContent += '&amp;lt;/soapenv:Envelope&amp;gt;';

        var response = Database.OpenURL2(URL, requestContent, RequestHeader.text);

        navKey = GetTagValue(response, &quot;Key&quot;);
        if (navKey == &quot;&quot;){
            Logger.Write(&quot;Reading: Company reading with ID: &quot; + compKey + &quot; failed. Response was: &quot; + response);
        }       
} finally {
        RequestHeader.Free;
}
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3887/authentication-error-using-openurl</guid>
<pubDate>Fri, 25 Jan 2019 14:44:24 +0000</pubDate>
</item>
<item>
<title>Web service VIES - contral validity VAT number in EU via SOAP</title>
<link>https://overflow.efficy.io/?qa=3822/web-service-vies-contral-validity-vat-number-in-eu-via-soap</link>
<description>&lt;p&gt;Did any Efficy project already implement this integration through SOAP request?&lt;br&gt;
VIES: &lt;a rel=&quot;nofollow&quot; href=&quot;http://ec.europa.eu/taxation_customs/vies/vatRequest.html&quot;&gt;http://ec.europa.eu/taxation_customs/vies/vatRequest.html&lt;/a&gt;&lt;br&gt;
SOAP: for the SOAP service you may send your xml request by using the following WSDL link: &lt;a rel=&quot;nofollow&quot; href=&quot;http://ec.europa.eu/taxation_customs/vies/checkVatTestService.wsdl&quot;&gt;http://ec.europa.eu/taxation_customs/vies/checkVatTestService.wsdl&lt;/a&gt;&lt;br&gt;
Br,&lt;br&gt;
Eric&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3822/web-service-vies-contral-validity-vat-number-in-eu-via-soap</guid>
<pubDate>Mon, 07 Jan 2019 11:00:46 +0000</pubDate>
</item>
<item>
<title>Failed to open an EfficySession in ASP.Net with Efficy 11</title>
<link>https://overflow.efficy.io/?qa=3624/failed-to-open-an-efficysession-in-asp-net-with-efficy-11</link>
<description>&lt;p&gt;I have an ASP.Net web service in C# that connects to Efficy in order to retrieve data. It first instantiates class EfficySession coming from the library &lt;strong&gt;Efficy.EfficyCRM.Net&lt;/strong&gt; (version 1.5.0.0, runtime version v2.0.50727) in order to open a session. The following code used to work with Efficy 10.0.7987 :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EfficySession db = new EfficySession(&quot;https://mydomain.com/efficy.dll/SOAP&quot;, &quot;login&quot;, &quot;pwd&quot;, &quot;database&quot;, true) ;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But with Efficy 11 we had to change the connection URL from &lt;strong&gt;mydomain.com/efficy.dll/SOAP&lt;/strong&gt; to &lt;strong&gt;mydomain.com/crm/SOAP?ss_id=1&lt;/strong&gt; : &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;EfficySession db = new EfficySession(&quot;https://mydomain.com/crm/SOAP?ss_id=1&quot;, &quot;login&quot;, &quot;pwd&quot;, &quot;database&quot;, true) ;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And it now throws an error « Object reference not set to an instance of an object » when getting executed. &lt;/p&gt;

&lt;p&gt;Could it be related to the connection URL? Is there a new version of the library Efficy.EfficyCRM.Net?&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3624/failed-to-open-an-efficysession-in-asp-net-with-efficy-11</guid>
<pubDate>Thu, 25 Oct 2018 14:38:00 +0000</pubDate>
</item>
<item>
<title>How to insert a project and link it to a company</title>
<link>https://overflow.efficy.io/?qa=3184/how-to-insert-a-project-and-link-it-to-a-company</link>
<description>&lt;p&gt;Hi everyone.&lt;/p&gt;

&lt;p&gt;Im working on a method with the C# proxy for add 377 projects with the same Name (Reporting)&lt;/p&gt;

&lt;p&gt;and link it to a company with the efficyKey.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;here is my code : 

 try
        {
            List&amp;lt;Company&amp;gt; Companies = GetAllCompanies();
            Companies = Companies.Where(a =&amp;gt; a.TypeRelation == CompRelationType.Participee || Convert.ToInt32(a.TypeRelation) == 9).Select(a =&amp;gt; a).ToList();

            TContextHandle EditContext;

            foreach (var Iterator in Companies)
            {
                EditContext = Proxy.OpenEditContext(&quot;PROJ&quot;, 0);

                Hashtable Fields = new Hashtable();
                Fields.Add(&quot;NAME&quot;, &quot;Reporting&quot;);

                Proxy.UpdateFields(EditContext, Fields);

                TContextHandle EditDocuProd = Proxy.OpenEditContextRelation(&quot;PROJ&quot;, EditContext.Key, &quot;COMP&quot;, Iterator.EfficyKey, -1);
                Proxy.CloseContext(EditDocuProd);
            }
        }
         catch(Exception E)
        {
            DisposeProxy();
            Helper.LogHelper.LogMessage(Helper.LogHelper.MessageType.Error, &quot;Error EfficyDataLayer.AddDossierForSoc()&quot;);
            Helper.LogHelper.LogExceptionMessage(E);
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I got an error after the CloseContext because the project is not link to any company.&lt;/p&gt;

&lt;p&gt;Do u have the right method to do that ?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;

&lt;p&gt;Vessiere Thomas.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3184/how-to-insert-a-project-and-link-it-to-a-company</guid>
<pubDate>Fri, 25 May 2018 13:31:18 +0000</pubDate>
</item>
<item>
<title>WebService: NullReferenceException when trying to perform a CloseContext()</title>
<link>https://overflow.efficy.io/?qa=2587/webservice-nullreferenceexception-perform-closecontext</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am facing an issue with the efficy webservice.&lt;/p&gt;

&lt;p&gt;My webservice receives data from the customer website in order to perform several actions in Efficy such as Update/Creation of Contact/Companies.&lt;/p&gt;

&lt;p&gt;When I call the UpdateRecordWithFields method of the Record class, I received sometimes the following error:&lt;/p&gt;

&lt;p&gt;System.NullReferenceException: Object reference not set to an instance of an object.&lt;br&gt;
   at EfficyProxy.SOAPClient.GetResponse()&lt;br&gt;
   at EfficyProxy.EfficySession.ExecuteBatch()&lt;br&gt;
   at EfficyProxy.EfficySession.CloseContext(TContextHandle ContextHandle, Boolean commit)&lt;br&gt;
   at Record.UpdateRecordWithFields(EfficySession Database, Double key, Hashtable fields) in c:\inetpub\efficy\customs\custom\WebService\App_Code\Record.cs:line 231&lt;/p&gt;

&lt;p&gt;The line 231 of the Records class is the following: &lt;br&gt;
-&amp;gt;  Database.CloseContext(editContext);&lt;/p&gt;

&lt;p&gt;This error is not coming from the Efficy Worfklow because everything is well executed.&lt;/p&gt;

&lt;p&gt;The strange things are:&lt;br&gt;
-&amp;gt; It not happen all the time&lt;br&gt;
-&amp;gt; It is not linked to the sent data or code in the webservice because if the customer retry to call my webservice, it works&lt;/p&gt;

&lt;p&gt;I think this issue is maybe related to a session issue but I don't know how to troubleshoot it.&lt;/p&gt;

&lt;p&gt;Does anyone already met this issue or has an idea to solve it ?&lt;/p&gt;

&lt;p&gt;Many thanks.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Pierre.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2587/webservice-nullreferenceexception-perform-closecontext</guid>
<pubDate>Tue, 04 Jul 2017 14:54:02 +0000</pubDate>
</item>
<item>
<title>Get Product picture using SOAP Call</title>
<link>https://overflow.efficy.io/?qa=2040/get-product-picture-using-soap-call</link>
<description>&lt;p&gt;Hi Everyone,&lt;/p&gt;

&lt;p&gt;Is it possible to get product picture via SOAP CALL to display on an external page?&lt;/p&gt;

&lt;p&gt;Thx,&lt;br&gt;
Can Demirci&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2040/get-product-picture-using-soap-call</guid>
<pubDate>Thu, 24 Nov 2016 10:47:57 +0000</pubDate>
</item>
<item>
<title>Merge using SOAP of custom entity</title>
<link>https://overflow.efficy.io/?qa=1997/merge-using-soap-of-custom-entity</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;We we created a new custom entity and configured the metadata to enable a merge.&lt;br&gt;
When we call the merge using soap we get following error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;efficy:api page=&quot;&quot; _macrofile=&quot;&quot;&amp;gt;
  &amp;lt;data id=&quot;1&quot; operation=&quot;automergeduplicate&quot; entity=&quot;Cntr&quot; key1=&quot;5922849&quot; key2=&quot;8023385&quot; alwayskeepfirst=&quot;true&quot;/&amp;gt;
&amp;lt;/efficy:api&amp;gt;
&amp;lt;SOAP-ENV:Fault&amp;gt;
  &amp;lt;faultcode&amp;gt;EVariantInvalidArgError&amp;lt;/faultcode&amp;gt;
  &amp;lt;faultstring&amp;gt;Invalid argument&amp;lt;/faultstring&amp;gt;&amp;lt;faultid/&amp;gt;
&amp;lt;/SOAP-ENV:Fault&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Can some of you tell me how we can troubleshoot this error?&lt;br&gt;
Something is missing but we can't seem to find it.&lt;/p&gt;

&lt;p&gt;gr&lt;br&gt;
Erwin&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1997/merge-using-soap-of-custom-entity</guid>
<pubDate>Thu, 10 Nov 2016 10:31:02 +0000</pubDate>
</item>
<item>
<title>Webhook configuration</title>
<link>https://overflow.efficy.io/?qa=1958/webhook-configuration</link>
<description>&lt;p&gt;Hi Everyone, &lt;/p&gt;

&lt;p&gt;For one of our client, I have to configure a webhook to allow a third party application to synchronise Ticket by sending us information (via an url) to notify Efficy when a ticket has been created/modified in the other platform so Efficy could pull the ticket and create it.&lt;/p&gt;

&lt;p&gt;I know how to developp it but I'm wondering where should I create that page? &lt;br&gt;
Should it be like a guest page? If I create an independent html page within Efficy, how should the url look like? &lt;/p&gt;

&lt;p&gt;Thanks for your time.&lt;/p&gt;

&lt;p&gt;KR,&lt;/p&gt;

&lt;p&gt;Prince.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1958/webhook-configuration</guid>
<pubDate>Fri, 21 Oct 2016 11:01:39 +0000</pubDate>
</item>
<item>
<title>How do I read the content of the Field STREAM with Invemaco.Efficy.Net.dll</title>
<link>https://overflow.efficy.io/?qa=1846/how-read-the-content-the-field-stream-with-invemaco-efficy-net</link>
<description>&lt;p&gt;EfficySession Database; &lt;/p&gt;

&lt;p&gt;try &lt;br&gt;
 { &lt;br&gt;
    /* EfficySession( address, login, password, EfficyAlias, autologin) */ &lt;br&gt;
    //Database = new EfficySession(&quot;&lt;a rel=&quot;nofollow&quot; href=&quot;http://192.168.1.22/efficy.dll/SOAP&quot;&gt;http://192.168.1.22/efficy.dll/SOAP&lt;/a&gt;&quot;, &quot;ADMIN&quot;, &quot;ADMIN&quot;, &quot;efficy&quot;, true); &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;System.Data.DataTable dtResult = Database.ExecuteSQLQuery(&quot;select * from ADMIN.FILES where K_FILE=2&quot;); 
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;// There is no column STREAM in the query result&lt;/p&gt;

&lt;p&gt;} &lt;br&gt;
 finally &lt;br&gt;
 { &lt;br&gt;
      /* Dispose efficy session before closing the program */ &lt;br&gt;
      if (Database != null) &lt;br&gt;
        Database.Dispose(); &lt;br&gt;
} &lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1846/how-read-the-content-the-field-stream-with-invemaco-efficy-net</guid>
<pubDate>Wed, 07 Sep 2016 13:48:52 +0000</pubDate>
</item>
<item>
<title>updatedetail fires EStringListError</title>
<link>https://overflow.efficy.io/?qa=1804/updatedetail-fires-estringlisterror</link>
<description>&lt;pre&gt;&lt;code&gt;&amp;lt;SOAP-ENV:Envelope 
xmlns:efficy=&quot;http://www.efficy.com&quot; 
xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope&quot;&amp;gt;
&amp;lt;SOAP-ENV:Body&amp;gt;
    &amp;lt;efficy:logon database=&quot;Development&quot; user=&quot;formssoap&quot; password=&quot;&quot; handled=&quot;true&quot;/&amp;gt;
        &amp;lt;efficy:api handled=&quot;true&quot;&amp;gt;
            &amp;lt;data id=&quot;1&quot; operation=&quot;addlink&quot; entity=&quot;PUBL&quot; key=&quot;9002483&quot; detail=&quot;CONT&quot; detailkey=&quot;16543&quot; ignoreexisting=&quot;true&quot; handled=&quot;true&quot;&amp;gt;true&amp;lt;/data&amp;gt;
        &amp;lt;/efficy:api&amp;gt;
        &amp;lt;efficy:edit entity=&quot;CONT&quot; key=&quot;16543&quot; commit=&quot;true&quot; closecontext=&quot;true&quot; edithandle=&quot;3&quot;&amp;gt;
            &amp;lt;updatedetail id=&quot;1&quot; detail=&quot;PUBL&quot; detailkey=&quot;9002483&quot;&amp;gt;
                &amp;lt;F_MEMO&amp;gt;Test&amp;lt;/F_MEMO&amp;gt;
            &amp;lt;/updatedetail&amp;gt;
        &amp;lt;/efficy:edit&amp;gt;
    &amp;lt;efficy:logoff/&amp;gt;
    &amp;lt;SOAP-ENV:Fault&amp;gt;
        &amp;lt;faultcode&amp;gt;EStringListError&amp;lt;/faultcode&amp;gt;
        &amp;lt;faultstring&amp;gt;List index out of bounds (-1)&amp;lt;/faultstring&amp;gt;
        &amp;lt;faultid/&amp;gt;
    &amp;lt;/SOAP-ENV:Fault&amp;gt;
&amp;lt;/SOAP-ENV:Body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Anyone can help me on that error message? Or am i completely wrong with addlink and updatedetail?&lt;/p&gt;

&lt;p&gt;Best,&lt;br&gt;
Stefan&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1804/updatedetail-fires-estringlisterror</guid>
<pubDate>Tue, 09 Aug 2016 09:55:14 +0000</pubDate>
</item>
<item>
<title>Set owner to a group using SOAP</title>
<link>https://overflow.efficy.io/?qa=1700/set-owner-to-a-group-using-soap</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;I saw that we can set K_USER to a group when creating a contact .&lt;br&gt;
Will Efficy accept this?&lt;br&gt;
In the GUI we can not select a group, only users. Can we except side-effects?&lt;/p&gt;

&lt;p&gt;gr&lt;br&gt;
Erwin&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1700/set-owner-to-a-group-using-soap</guid>
<pubDate>Sat, 11 Jun 2016 17:06:55 +0000</pubDate>
</item>
<item>
<title>.NET C# :   EfficySession.SetImpersonate() / How to cancel impersonation</title>
<link>https://overflow.efficy.io/?qa=1685/net-efficysession-setimpersonate-how-cancel-impersonation</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;If I want to use the same session for multiple operations and I have called the method &quot;SetImpersonate()&quot;. How to clear it.&lt;/p&gt;

&lt;p&gt;Should I call SetImperonate() with string empty, null ?&lt;/p&gt;

&lt;p&gt;Best regards&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1685/net-efficysession-setimpersonate-how-cancel-impersonation</guid>
<pubDate>Thu, 02 Jun 2016 08:59:11 +0000</pubDate>
</item>
<item>
<title>SetImpersonate : SOAP Error when using SetUsers()</title>
<link>https://overflow.efficy.io/?qa=1682/setimpersonate-soap-error-when-using-setusers</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;In our project, we have a WebApi who inserts data into Efficy DB using SOAP (EFFICY.EfficyCRM.NET.dll).&lt;/p&gt;

&lt;p&gt;This WebAPI creates the Efficy's connection using an ADMIN login/password.&lt;/p&gt;

&lt;p&gt;We want to impersonate a user in order to get the power of Efficy Securities/Right defined in Conficy.&lt;/p&gt;

&lt;p&gt;We expect that if we call &quot;DataBase.SetUsers&quot; After impersonation, every records created&lt;br&gt;
in the ACTI_USER table will be created according rights, groups, linked to this impersonated user in Conficy.&lt;/p&gt;

&lt;p&gt;But, right now, we receive this error :&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&quot;ExceptionMessage&quot;: &quot;SOAP Error: DS&lt;em&gt;ActiEdit&lt;/em&gt;1&lt;em&gt;Acti&lt;/em&gt;User: Cannot&lt;br&gt;
  modify a read-only dataset&quot;,&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The ADMIN user has full access.&lt;/p&gt;

&lt;p&gt;The code used in C# :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;public void LierActionAvecAgent(double idAction, long idAgent)
        {
            _foremLogger.Trace($&quot;Begin ActionEfficyRepository.LinkAgentToAction(idAgent={idAgent}, idAction={idAction}&quot;);
            var dbSession = _efficySessionPool.Get();

            try
            {
                dbSession.SetImpersonate(&quot;MNTMNQ&quot;);
                var context = dbSession.OpenEditContext(EfficyEntityHandles.Acti.GetDisplayName(),idAction);

                if (context == null)
                {
                    throw new Exception($&quot;Erreur d'ouverture de context Efficy pour l'entité ACTIONS avec la clef {idAction}&quot;);
                }

                dbSession.SetUsers(context,new double[] { idAgent} , false );

                dbSession.CloseContext(context);
            }
            finally
            {
                if (dbSession != null)
                {
                    _efficySessionPool.Put(dbSession);
                }
            }
        }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The Exception is thrown by the call to method SetUsers().&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1682/setimpersonate-soap-error-when-using-setusers</guid>
<pubDate>Wed, 01 Jun 2016 12:50:19 +0000</pubDate>
</item>
<item>
<title>Disable notifications for SOAP created events</title>
<link>https://overflow.efficy.io/?qa=1677/disable-notifications-for-soap-created-events</link>
<description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;A customer recently asked for a way to disable email notifications sent when an event is created/modified/deleted through SOAP.&lt;br&gt;
Sadly, the DisableNotification is a global setting and therefore not really useful in their case.&lt;/p&gt;

&lt;p&gt;The workaround is a bit tricky : &lt;br&gt;
-   Find a way to “flag” the notifications coming from SOAP created events (in HTML body as exemple)&lt;br&gt;
-   Put a greater Dispatch interval (15 min)&lt;br&gt;
-   Make a scheduled serverscript that will check the SYS_MAIL table and delete the items with the “flag” before they are sent by Mail Dispatcher&lt;/p&gt;

&lt;p&gt;Not a really “clean” solution though.&lt;/p&gt;

&lt;p&gt;Is there a way to implement the DisableNotification setting per record in the SOAP itself? &lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1677/disable-notifications-for-soap-created-events</guid>
<pubDate>Wed, 01 Jun 2016 11:27:50 +0000</pubDate>
</item>
<item>
<title>Soap: Inserting an email with attachment via Soap Call</title>
<link>https://overflow.efficy.io/?qa=1589/soap-inserting-an-email-with-attachment-via-soap-call</link>
<description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;I'm trying to save and email with an attachement in Efficy via soap. &lt;br&gt;
It seems to work fine but when I try to open the attachment ('msg' file) I have the following error:&lt;br&gt;
&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=15917386851006573239&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;Here is my call: &lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;SOAP-ENV:Envelope xmlns:efficy=&quot;http://www.efficy.com&quot; xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope&quot;&amp;gt;
&amp;lt;SOAP-ENV:Body&amp;gt;
    &amp;lt;efficy:logon database=&quot;PROD&quot; user=&quot;ipacic&quot; password=&quot;TheTable!&quot;/&amp;gt;
    &amp;lt;efficy:api id=&quot;1&quot;&amp;gt;
        &amp;lt;data operation=&quot;impersonateuser&quot; user=&quot;EHO&quot; id=&quot;129&quot;/&amp;gt;
    &amp;lt;/efficy:api&amp;gt;
    &amp;lt;efficy:edit entity=&quot;Mail&quot; key=&quot;0&quot; commit=&quot;true&quot; closecontext=&quot;true&quot;&amp;gt;
        &amp;lt;update tableview=&quot;0&quot;&amp;gt;
            &amp;lt;SUBJECT&amp;gt;This is a test mail&amp;lt;/SUBJECT&amp;gt;     &amp;lt;!--Subject of the email, cann't be changed afterwards by the user--&amp;gt;
            &amp;lt;TITLE&amp;gt;CLIENT NAME: This is a test mail&amp;lt;/TITLE&amp;gt;         &amp;lt;!--This can be a copy of the subject or a customized version, the user can modify this field in Efficy--&amp;gt;
            &amp;lt;OPENED&amp;gt;1&amp;lt;/OPENED&amp;gt;
            &amp;lt;MAILFROM&amp;gt;ppa@vogeleer.be&amp;lt;/MAILFROM&amp;gt;
           &amp;lt;MAILTO&amp;gt;ppa@efficy.com&amp;lt;/MAILTO&amp;gt;
            &amp;lt;MAILCC&amp;gt;&amp;lt;/MAILCC&amp;gt;
            &amp;lt;K_FOLDER&amp;gt;2&amp;lt;/K_FOLDER&amp;gt;      &amp;lt;!--2: Mail received - 3: Mail send--&amp;gt;
            &amp;lt;K_MAILTHREAD&amp;gt;0&amp;lt;/K_MAILTHREAD&amp;gt;  &amp;lt;!--Leave at 0--&amp;gt;
            &amp;lt;D_RECEIVED&amp;gt;04/05/2015 13:50&amp;lt;/D_RECEIVED&amp;gt;
            &amp;lt;MAILBCC&amp;gt;&amp;lt;/MAILBCC&amp;gt;
            &amp;lt;BODY&amp;gt;
                               &amp;lt;![CDATA[                
                                                       &amp;lt;html&amp;gt;
                                                                      &amp;lt;body&amp;gt;
                                                                                     &amp;lt;p&amp;gt;test&amp;lt;/p&amp;gt;
                                                                      &amp;lt;/body&amp;gt;
                                                       &amp;lt;/html&amp;gt;]]&amp;gt;
            &amp;lt;/BODY&amp;gt;       &amp;lt;!--Better to provide this value, it's easier for the user afterwards in Efficy--&amp;gt;
            &amp;lt;HTMLBODY&amp;gt;
                                                       &amp;lt;![CDATA[                
                                                       &amp;lt;html&amp;gt;
                                                                      &amp;lt;body&amp;gt;
                                                                                     &amp;lt;p&amp;gt;test&amp;lt;/p&amp;gt;
                                                                      &amp;lt;/body&amp;gt;
                                                       &amp;lt;/html&amp;gt;]]&amp;gt;
                                                       &amp;lt;/HTMLBODY&amp;gt;
        &amp;lt;/update&amp;gt;
        &amp;lt;insertattachment id=&quot;1&quot; type=&quot;1&quot; path=&quot;C:\Users\ppt\Documents\url.msg&quot;/&amp;gt;
        &amp;lt;updateattachment id=&quot;2&quot; key=&quot;0&quot; encodingkind=&quot;MIME64&quot;&amp;gt;dGVzdA==&amp;lt;/updateattachment&amp;gt;
        &amp;lt;insertdetail id=&quot;3&quot; detail=&quot;Case&quot; detailkey=&quot;627284&quot; maincomp=&quot;false&quot;/&amp;gt;
    &amp;lt;/efficy:edit&amp;gt;
    &amp;lt;efficy:logoff/&amp;gt;
&amp;lt;/SOAP-ENV:Body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Am I doing something wrong? &lt;/p&gt;

&lt;p&gt;KR...&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1589/soap-inserting-an-email-with-attachment-via-soap-call</guid>
<pubDate>Wed, 04 May 2016 14:29:51 +0000</pubDate>
</item>
<item>
<title>Setting security using SOAP call</title>
<link>https://overflow.efficy.io/?qa=1514/setting-security-using-soap-call</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;How can we set the security using SOAP messages?&lt;br&gt;
What is the syntax?&lt;/p&gt;

&lt;p&gt;gr&lt;br&gt;
Erwin Vogeleer&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1514/setting-security-using-soap-call</guid>
<pubDate>Tue, 12 Apr 2016 08:19:21 +0000</pubDate>
</item>
<item>
<title>Example how to use DownloadFile in Invemaco.Efficy.Net.dll</title>
<link>https://overflow.efficy.io/?qa=901/example-how-to-use-downloadfile-in-invemaco-efficy-net-dll</link>
<description>&lt;p&gt;I 'm looking for an example of how &quot;Download File &quot; can be used in Invemaco.Efficy.Net.dll . &lt;/p&gt;

&lt;p&gt;I have attached a PDF file to a document in Efficy, the code below creates a JPG file instead of the PDF.&lt;/p&gt;

&lt;p&gt;int docuId = Convert.ToInt32(dr[&quot;K_DOCUMENT&quot;]);&lt;br&gt;
  EfficyFile file = session.DownloadFile(&quot;Docu&quot;, docuId, &quot;STREAM&quot;);&lt;/p&gt;

&lt;p&gt;byte[] data = file.Bytes;&lt;br&gt;
  MemoryStream ms = new MemoryStream(data);&lt;br&gt;
  mailMessage.Attachments.Add(new Attachment(ms, file.FileName, file.ContentType));&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=901/example-how-to-use-downloadfile-in-invemaco-efficy-net-dll</guid>
<pubDate>Mon, 02 Nov 2015 15:23:30 +0000</pubDate>
</item>
<item>
<title>Efficy SOAP vs. ServerScripts</title>
<link>https://overflow.efficy.io/?qa=768/efficy-soap-vs-serverscripts</link>
<description>&lt;p&gt;Hi guys!&lt;/p&gt;

&lt;p&gt;We need to integrate efficy data and processes into a website. &lt;br&gt;
Including sending emails etc.&lt;/p&gt;

&lt;p&gt;I wondered if it is possible to call a server script via SOAP just like &amp;lt;%RunScript()%&amp;gt;.&lt;br&gt;
Otherwise I need to update some hidden fields field and let workflow do the job...&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;

&lt;p&gt;Tim&lt;/p&gt;

&lt;p&gt;P.S. overflow.efficy.com does a great job! Well done!&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=768/efficy-soap-vs-serverscripts</guid>
<pubDate>Thu, 17 Sep 2015 09:17:10 +0000</pubDate>
</item>
<item>
<title>XML Soap message: error inserting email</title>
<link>https://overflow.efficy.io/?qa=597/xml-soap-message-error-inserting-email</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;I'm having troubles inserting an email using the XML Soap messages.&lt;br&gt;
This is my message:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;SOAP-ENV:Envelope xmlns:efficy=&quot;http://www.efficy.com&quot; xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope&quot;&amp;gt;
&amp;lt;SOAP-ENV:Body&amp;gt;
    &amp;lt;efficy:logon database=&quot;databasealias&quot; user=&quot;username&quot; password=&quot;password&quot;/&amp;gt;
    &amp;lt;efficy:edit entity=&quot;Mail&quot; key=&quot;0&quot; commit=&quot;true&quot; closecontext=&quot;true&quot;&amp;gt;
        &amp;lt;update tableview=&quot;0&quot;&amp;gt;
            &amp;lt;SUBJECT&amp;gt;This is a test mail&amp;lt;/SUBJECT&amp;gt;     &amp;lt;!--Subject of the email, cann't be changed afterwards by the user--&amp;gt;
            &amp;lt;TITLE&amp;gt;CLIENT NAME: This is a test mail&amp;lt;/TITLE&amp;gt;         &amp;lt;!--This can be a copy of the subject or a customized version, the user can modify this field in Efficy--&amp;gt;
        &amp;lt;/update&amp;gt;
        &amp;lt;insertattachment id=&quot;1&quot; type=&quot;1&quot; path=&quot;This is a test mail.msg&quot;/&amp;gt;
        &amp;lt;updateattachment id=&quot;2&quot; key=&quot;0&quot; encodingkind=&quot;MIME64&quot;&amp;gt;
            {MIME BASE64}
        &amp;lt;/updateattachment&amp;gt;
        &amp;lt;insertdetail id=&quot;3&quot; detail=&quot;Case&quot; detailkey=&quot;37&quot; maincomp=&quot;false&quot;/&amp;gt;
    &amp;lt;/efficy:edit&amp;gt;
    &amp;lt;efficy:logoff/&amp;gt;
&amp;lt;/SOAP-ENV:Body&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;And this is the error I get:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;      &amp;lt;SOAP-ENV:Fault&amp;gt;
     &amp;lt;faultcode&amp;gt;Exception&amp;lt;/faultcode&amp;gt;
     &amp;lt;faultstring&amp;gt;Error during CommitChanges on &quot;Mail&quot;: Could not convert variant of type          (Null) into type (Double)
     &amp;lt;/faultstring&amp;gt;
     &amp;lt;faultid/&amp;gt;
     &amp;lt;/SOAP-ENV:Fault&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Any ideas? Is my syntax correct?&lt;/p&gt;

&lt;p&gt;Greetings&lt;br&gt;
Erwin&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=597/xml-soap-message-error-inserting-email</guid>
<pubDate>Fri, 31 Jul 2015 06:50:58 +0000</pubDate>
</item>
<item>
<title>SOAP request to launch existing query in Efficy</title>
<link>https://overflow.efficy.io/?qa=536/soap-request-to-launch-existing-query-in-efficy</link>
<description>&lt;p&gt;Is it possible to launch a existing ( non-system ) query through SOAP ?&lt;br&gt;
If yes, how ?&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=536/soap-request-to-launch-existing-query-in-efficy</guid>
<pubDate>Thu, 23 Jul 2015 11:27:45 +0000</pubDate>
</item>
<item>
<title>Impersonating a user</title>
<link>https://overflow.efficy.io/?qa=491/impersonating-a-user</link>
<description>&lt;p&gt;Dear,&lt;/p&gt;

&lt;p&gt;Is it possible in Efficy using the or .NET SOAP API or XML webservice messages to impersonate a user?&lt;/p&gt;

&lt;p&gt;My client wants to create and update information in Efficy using one of both interface possibilities but he also wants that the applied changes are not all logged in sys_changed under the same user, used for executing the soap calls.&lt;br&gt;
He prefers it is logged as an other user, also known in Efficy.&lt;/p&gt;

&lt;p&gt;A possible workaround could be by working with workflow and/or database triggers but it looks cleaner to use impersonate.&lt;/p&gt;

&lt;p&gt;Any suggestions?&lt;/p&gt;

&lt;p&gt;gr&lt;br&gt;
Erwin&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=491/impersonating-a-user</guid>
<pubDate>Fri, 03 Jul 2015 13:24:42 +0000</pubDate>
</item>
<item>
<title>Efficy SOAP DLL: Webservice Inserting an Attachment</title>
<link>https://overflow.efficy.io/?qa=4/efficy-soap-dll-webservice-inserting-an-attachment</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I would like to know how to use to use the insertattachment function that is available in the Efficy SOAP dll.&lt;/p&gt;

&lt;p&gt;Best Regards,&lt;/p&gt;

&lt;p&gt;Stéphane R.&lt;/p&gt;
</description>
<category>Remote API (JSON, SOAP, Node)</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4/efficy-soap-dll-webservice-inserting-an-attachment</guid>
<pubDate>Thu, 18 Sep 2014 13:44:34 +0000</pubDate>
</item>
</channel>
</rss>