<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged soap</title>
<link>https://overflow.efficy.io/?qa=tag/soap</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>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>how open a soap session by using api token rather than efficy:logon xml tag ?</title>
<link>https://overflow.efficy.io/?qa=6765/how-open-soap-session-using-api-token-rather-than-efficy-logon</link>
<description>&lt;p&gt;Hello I want to use the advantages of the API token authentification into à soap request rather than using the old body xml tag for a migration from 11.0 to 12.0 version.&lt;/p&gt;

&lt;p&gt;&lt;br&gt;
So I generated a token into my designer, then I added into the header the &lt;br&gt;
X-Efficy-ApiKey, X-Efficy-Customer and X-Efficy-Logoff = true like I already done for node connexion for instance.&lt;/p&gt;

&lt;p&gt;The customer profile is unique into my url so didn't declare it.&lt;/p&gt;

&lt;p&gt;Bug I'm not able to create the connexion to execute a soap query resquest. &lt;br&gt;
&lt;br&gt;
So I have to continue to put all information &lt;br&gt;
Any idea ?&lt;br&gt;
What I missed ? &lt;/p&gt;

&lt;p&gt;have you any postman exemple with a body using datacontainer operation=&quot;query&quot; + connexion via token ?&lt;/p&gt;

&lt;p&gt;Thank's &lt;br&gt;
Laurent Tuffraud&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6765/how-open-soap-session-using-api-token-rather-than-efficy-logon</guid>
<pubDate>Thu, 24 Nov 2022 08:13:25 +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 Sidebar - option Don't Use IE Cookies for SOAP ?</title>
<link>https://overflow.efficy.io/?qa=6473/efficy-sidebar-option-dont-use-ie-cookies-for-soap</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;Does anyone know what does the Efficy sidebar option &quot;Don't use IE Cookies for SOAP&quot; do ?&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=2726686790896314328&quot; alt=&quot;SideBar Options&quot;&gt;&lt;/p&gt;
</description>
<category>Efficy Installation/Settings</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6473/efficy-sidebar-option-dont-use-ie-cookies-for-soap</guid>
<pubDate>Fri, 25 Feb 2022 08:30:40 +0000</pubDate>
</item>
<item>
<title>How to set customer parameter in SOAP request?</title>
<link>https://overflow.efficy.io/?qa=5603/how-to-set-customer-parameter-in-soap-request</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;our database was cloned and since then, we need to pass the customer parameter.&lt;br&gt;
When i try to connect via SOAP, i get 'The host is allowed in more than one customer profile, the &quot;customer&quot; argument must be specified'. &lt;br&gt;
If i try to pass the customer attribute in the efficy:logon node, where username, database and password is passed, i still get the same error.&lt;/p&gt;

&lt;p&gt;Where do i have to set this parameter?&lt;/p&gt;

&lt;p&gt;Best&lt;br&gt;
Stefan&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5603/how-to-set-customer-parameter-in-soap-request</guid>
<pubDate>Mon, 28 Sep 2020 07:31:08 +0000</pubDate>
</item>
<item>
<title>Soap error when using SSO</title>
<link>https://overflow.efficy.io/?qa=4820/soap-error-when-using-sso</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;We recently upgraded an on premise client from efficy 10SP2 to 11.2.&lt;br&gt;
They were using sso to connect but as of the upgrade this doesn't work anymore. See error message below : &lt;/p&gt;

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

&lt;p&gt;The sidebar should be correctly configured. The option 'use current windows user' is checked but still we get the error. It worked fine in the previous version.&lt;/p&gt;

&lt;p&gt;Does anyone have an idea where the problem could be? We are using the same server.&lt;br&gt;
Let me know if more information is needed.&lt;/p&gt;

&lt;p&gt;Any help is appreciated.&lt;/p&gt;

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

&lt;p&gt;Ken&lt;/p&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=4820/soap-error-when-using-sso</guid>
<pubDate>Tue, 24 Sep 2019 08:17:14 +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>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>request API Soap for lookup</title>
<link>https://overflow.efficy.io/?qa=3805/request-api-soap-for-lookup</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I try to create an envelop to return custom lookup data with the api soap. My envelop work fine with a query but i got an error with  &lt;br&gt;
here is my code: &lt;br&gt;
&lt;/p&gt;

&lt;p&gt;I check the table id and the name of the field and they are right, and exists.&lt;/p&gt;

&lt;p&gt;the response is:&lt;br&gt;
 &lt;br&gt;
        &lt;br&gt;
            EOleException&lt;br&gt;
            LookupTableManager&lt;br&gt;
Cannot fetch Lookup Table Values on table &quot;LK&lt;em&gt;ACTI&lt;/em&gt;STATUS.F_LABEL&quot;&lt;/p&gt;

&lt;h2&gt;ErrorContext&lt;/h2&gt;

&lt;p&gt;EEfficyLookupTableError 1806&lt;br&gt;
(ENTT-1515) LookupTableManager&lt;br&gt;
FieldName &quot;0&quot; not found in SYS_FIELDS&lt;/p&gt;

&lt;h2&gt;Error&lt;/h2&gt;

&lt;p&gt;EEfficyLookupTableError 1805&lt;br&gt;
(ENTT-1510) LookupTableManager&lt;br&gt;
Cannot fetch Lookup Table Values on table &quot;LK&lt;em&gt;ACTI&lt;/em&gt;STATUS.F_LABEL&quot;&lt;/p&gt;

&lt;h2&gt;Error&lt;/h2&gt;

&lt;p&gt;ESlspException 0&lt;br&gt;
Application Server Error&lt;br&gt;
            &amp;lt;faultid/&amp;gt;&lt;br&gt;
            ENTT-1515&lt;br&gt;
        &lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3805/request-api-soap-for-lookup</guid>
<pubDate>Thu, 03 Jan 2019 09:13:29 +0000</pubDate>
</item>
<item>
<title>[SOLVED] Raising a SOAP request to Efficy CRM using curl gives &quot;Unexpected error: Incorrect SOAP Request&quot;</title>
<link>https://overflow.efficy.io/?qa=3318/solved-raising-request-efficy-unexpected-incorrect-request</link>
<description>&lt;p&gt;I am testing the SOAP requests with curl, on Linux.&lt;/p&gt;

&lt;p&gt;This is the SOAP request I used: A file &quot;request.xml&quot;, with the following contents:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  &amp;lt;soapenv:Envelope  xmlns:efficy=&quot;http://www.efficy.com&quot; xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope&quot;&amp;gt;
  &amp;lt;soapenv:Header/&amp;gt;
  &amp;lt;soapenv:Body&amp;gt;
  &amp;lt;efficy:logon database=&quot;mydbname&quot; user=&quot;mydbusername&quot; password=&quot;mydbpassword&quot;/&amp;gt;
  &amp;lt;efficy:logoff/&amp;gt;
  &amp;lt;/soapenv:Body&amp;gt;
  &amp;lt;/soapenv:Envelope&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I then used the following curl command to raise the POST request:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  curl --header &quot;Content-Type: text/xml;charset=UTF-8&quot; --data request.xml https://eua.efficytest.com/efficy.dll/SOAP?SS_ID=1
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Executing the above command gave the response as an HTML, saying&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Object Moved - This document may be found here:&lt;br&gt;
  &lt;a rel=&quot;nofollow&quot; href=&quot;https://eua.efficytest.com/crm/SOAP?SS_ID=1&quot;&gt;https://eua.efficytest.com/crm/SOAP?SS_ID=1&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Changed the command to use that URL instead, as:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;  curl --header &quot;Content-Type: text/xml;charset=UTF-8&quot; --data request.xml https://eua.efficytest.com/crm/SOAP?SS_ID=1
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But that gave an error page as the response, saying:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;[Error - 2018/06/19 11:06:16] Unexpected error: Incorrect SOAP Request&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Where could I be going wrong? &lt;br&gt;
What SoapAction should we use?&lt;/p&gt;

&lt;hr&gt;

&lt;p&gt;&lt;strong&gt;[SOLUTION]:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Thanks a lot for the answers. &lt;/p&gt;

&lt;p&gt;Inspecting and comparing the request sent with the PHP code I mentioned in one of the comments here, and checking the request header for the curl request, found that the issue was with the way I passed the file name - we had to add an @ symbol to filenames, when passing to curl.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;?php

$location_url = 'https://eua.efficytest.com/efficy.dll/SOAP';

$client = new \SoapClient(null, array(
    'location' =&amp;gt; $location_url,
    'uri' =&amp;gt; &quot;http://www.efficy.com&quot;,
    'trace' =&amp;gt; 1
));

try{
  $return = $client-&amp;gt;__soapCall(&quot;logon&quot;, array(
    'database' =&amp;gt; 'mydbname',
    'user' =&amp;gt; 'mydbusername',
    'password' =&amp;gt; 'mydbpassword'
  ));
  //Get response from here
  echo &quot;&amp;lt;pre&amp;gt;&quot;;
  print_r($client);
} catch (SoapFault $exception) {
  var_dump(get_class($exception));
  var_dump($exception);
}
?&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So this would be the correct command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;curl -i  --header &quot;Content-Type: text/xml; charset=utf-8&quot;   --data @request.xml   https://eua.efficytest.com/crm/SOAP?SS_ID=1
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;(Command options: '-i' shows the response headers).&lt;/p&gt;

&lt;p&gt;And this would be the correct request file (request.xml):&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
&amp;lt;SOAP-ENV:Envelope
  xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
  xmlns:ns1=&quot;http://www.efficy.com&quot;
  xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot;
  xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
  SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;
&amp;gt;
  &amp;lt;SOAP-ENV:Body&amp;gt;
    &amp;lt;ns1:logon&amp;gt;
      &amp;lt;param0 xsi:type=&quot;xsd:string&quot;&amp;gt;mydbname&amp;lt;/param0&amp;gt;
      &amp;lt;param1 xsi:type=&quot;xsd:string&quot;&amp;gt;mydbusername&amp;lt;/param1&amp;gt;
      &amp;lt;param2 xsi:type=&quot;xsd:string&quot;&amp;gt;mydbpassword&amp;lt;/param2&amp;gt;
    &amp;lt;/ns1:logon&amp;gt;
  &amp;lt;/SOAP-ENV:Body&amp;gt;
&amp;lt;/SOAP-ENV:Envelope&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Using these two, I was able to get the Efficy Session ID in the response header. Here is an example output from the same:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[anto@anto curl-soap]$ curl -i  --header &quot;Content-Type: text/xml; charset=utf-8&quot;   --data @request.xml   https://eua.efficytest.com/crm/SOAP?SS_ID=1
HTTP/1.1 200 OK
Cache-Control: max-age=0
Content-Type: text/xml; charset=UTF-8
Server: Microsoft-IIS/8.5
Set-Cookie: EfficySession=77EF504D-33890B88; expires=Wed, 27 Jun 2018 14:47:43 GMT; secure; HttpOnly
X-XSS-Protection: 0
Content: 
X-Powered-By: ASP.NET
X-Powered-By: ARR/3.0
Date: Wed, 20 Jun 2018 12:47:42 GMT
Content-Length: 622

&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
&amp;lt;SOAP-ENV:Envelope xmlns:SOAP-ENV=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot; xmlns:ns1=&quot;http://www.efficy.com&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xmlns:SOAP-ENC=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot; SOAP-ENV:encodingStyle=&quot;http://schemas.xmlsoap.org/soap/encoding/&quot;&amp;gt;  &amp;lt;SOAP-ENV:Body&amp;gt;    &amp;lt;ns1:logon&amp;gt;      &amp;lt;param0 xsi:type=&quot;xsd:string&quot;&amp;gt;mydbname&amp;lt;/param0&amp;gt;      &amp;lt;param1 xsi:type=&quot;xsd:string&quot;&amp;gt;mydbusername&amp;lt;/param1&amp;gt;      &amp;lt;param2 xsi:type=&quot;xsd:string&quot;&amp;gt;mydbpassword&amp;lt;/param2&amp;gt;    &amp;lt;/ns1:logon&amp;gt;  &amp;lt;/SOAP-ENV:Body&amp;gt;&amp;lt;/SOAP-ENV:Envelope&amp;gt;
[anto@anto curl-soap]$ 
&lt;/code&gt;&lt;/pre&gt;
</description>
<category>Errors</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3318/solved-raising-request-efficy-unexpected-incorrect-request</guid>
<pubDate>Tue, 19 Jun 2018 09:48:04 +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>how to get a file from Soap Request</title>
<link>https://overflow.efficy.io/?qa=3133/how-to-get-a-file-from-soap-request</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;i need to get a pdf file from a soap call to an external webservices.&lt;/p&gt;

&lt;p&gt;When i try to do it with soap ui,  i get a response like that :&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=12017686003718410389&quot; alt=&quot;screenshot from soapui&quot;&gt;&lt;/p&gt;

&lt;p&gt;When i click on the attachement, i can save it in .pdf, and i have a readable file.&lt;/p&gt;

&lt;p&gt;But,  i don't really know how i can do it in serverscript.&lt;/p&gt;

&lt;p&gt;i get a raw response like that.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.com/?qa=blob&amp;amp;qa_blobid=11489886934131395534&quot; alt=&quot;raw response&quot;&gt;&lt;/p&gt;

&lt;p&gt;Somebody have an idea on how to get this stream corectly from the soap response and put it in a pdf file ?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3133/how-to-get-a-file-from-soap-request</guid>
<pubDate>Tue, 08 May 2018 09:23:51 +0000</pubDate>
</item>
<item>
<title>Insert Remote file to new document through SOAP</title>
<link>https://overflow.efficy.io/?qa=2998/insert-remote-file-to-new-document-through-soap</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I have a client who would like to use Efficy standard SOAP API to insert voice recording files with link to contact. The client is using Remote files to store the attachments (not stored in Efficy's DB as BLOB).&lt;/p&gt;

&lt;p&gt;Does any one have an XML sample that needs to be used for this request please? and is there some documentation for FILES.KIND field? what are the possible values, i see in DB values 1 and 4, i suppose 1 for localy stored on DB and 4 for remote. right? but i searched for some documents that explain the possibilities of these values, but i couldn't find any.&lt;/p&gt;

&lt;p&gt;Thank you for your help in advance.&lt;br&gt;
Best Regards.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2998/insert-remote-file-to-new-document-through-soap</guid>
<pubDate>Fri, 23 Mar 2018 11:16:24 +0000</pubDate>
</item>
<item>
<title>How to update the contact profile picture using soap?</title>
<link>https://overflow.efficy.io/?qa=2515/how-to-update-the-contact-profile-picture-using-soap</link>
<description>&lt;p&gt;I've got a question about the Efficy Soap Wrapper for .Net. The profile picture of a user has to be updated using the efficy soap wrapper. What is the best way to do this?&lt;/p&gt;

&lt;p&gt;Besides that I would like to know how I can retrieve the file format (jpg/png/etc.). Is this information being saved in the database or do we need to retrieve this from the header in the binary data?&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=2515/how-to-update-the-contact-profile-picture-using-soap</guid>
<pubDate>Wed, 31 May 2017 15:20:38 +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>How do I get the CurrentUserID when creating a case from Outlook ?</title>
<link>https://overflow.efficy.io/?qa=1902/how-do-get-the-currentuserid-when-creating-case-from-outlook</link>
<description>&lt;p&gt;Hi everyone! &lt;/p&gt;

&lt;p&gt;At EasyCash they have created a new custom field &quot;Department&quot; which is mandatory. &lt;br&gt;
Then when they tried to save email from Outlook it did not work because that field was not filled in. &lt;br&gt;
I modified the workflow to set the current user's role as the &quot;department&quot;. &lt;br&gt;
My problem is that the department which is set is always the same, for every users. &lt;/p&gt;

&lt;p&gt;After investigation, I found out that when i call the CurrentUser() method, Efficy returns the value zero (0), but only when the email comes from Outlook. So i can not get the right K_ROLE. &lt;/p&gt;

&lt;p&gt;So my question is: &quot;How do I get the ID of the user which create that case from Outlook?&quot;&lt;/p&gt;

&lt;p&gt;Thanks, &lt;/p&gt;

&lt;p&gt;Prince&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1902/how-do-get-the-currentuserid-when-creating-case-from-outlook</guid>
<pubDate>Tue, 27 Sep 2016 10:09:13 +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>Exception message niveau 0: System.ApplicationException: SOAP Error: The remote procedure call failed</title>
<link>https://overflow.efficy.io/?qa=1614/exception-message-niveau-applicationexception-procedure</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have this error with the SOAP, when we tried to remove an element :&lt;br&gt;
&lt;em&gt;Exception message niveau 0: System.ApplicationException: SOAP Error: The remote procedure call failed&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Do you know what is the problem?&lt;/p&gt;

&lt;p&gt;kr,&lt;br&gt;
Cyril&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1614/exception-message-niveau-applicationexception-procedure</guid>
<pubDate>Fri, 13 May 2016 08:51:18 +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>How to delete Attachments/FILE via SOAP</title>
<link>https://overflow.efficy.io/?qa=1273/how-to-delete-attachments-file-via-soap</link>
<description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;I'm trying to delete a file (attachment) via SOAP.&lt;/p&gt;

&lt;p&gt;When executing the following SOAP request:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;efficy:api&amp;gt;
    &amp;lt;data id=&quot;0&quot; operation=&quot;delete&quot; entity=&quot;FILE&quot; keys=&quot;123&quot;/&amp;gt;
&amp;lt;/efficy:api&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I get the following &quot;answer&quot;:&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;Invalid Entity for Delete&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;I also tried entity=&quot;2&quot;, same effect. When logging in as the user i use to perform the SOAP request, i am able to delete the attachment without a problem. So, how can I delete a FILE entry?&lt;/p&gt;

&lt;p&gt;Thanks in advance,&lt;br&gt;
Stefan&lt;/p&gt;
</description>
<category>How to</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1273/how-to-delete-attachments-file-via-soap</guid>
<pubDate>Mon, 25 Jan 2016 17:26:10 +0000</pubDate>
</item>
<item>
<title>How do I read the content of the Field STREAM in FILES via SOAP?</title>
<link>https://overflow.efficy.io/?qa=1263/how-do-i-read-the-content-of-the-field-stream-in-files-via-soap</link>
<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;we need to return pictures stored in FILES using Efficy SOAP.&lt;br&gt;
A plain SOAP Call using CURL does not any content.&lt;/p&gt;

&lt;p&gt;Does anybody have some sample code?&lt;/p&gt;

&lt;p&gt;The documentation in &quot;Efficy - Microsoft .NET SOAP Proxy&quot; is at least not clear for us.&lt;/p&gt;

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

&lt;p&gt;Tim&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=1263/how-do-i-read-the-content-of-the-field-stream-in-files-via-soap</guid>
<pubDate>Thu, 21 Jan 2016 16:01:12 +0000</pubDate>
</item>
<item>
<title>API information</title>
<link>https://overflow.efficy.io/?qa=872/api-information</link>
<description>&lt;p&gt;Some questions:&lt;br&gt;
1. Do we have an API (for Efficy 2014) for third party software?&lt;br&gt;
2. Is there documentation?&lt;/p&gt;

&lt;p&gt;We need this, because one of my clients wants to talk to Efficy through an API.&lt;/p&gt;

&lt;p&gt;Please respond soon.&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=872/api-information</guid>
<pubDate>Tue, 20 Oct 2015 11:40:44 +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>Get DTSEARCH result from SQL</title>
<link>https://overflow.efficy.io/?qa=452/get-dtsearch-result-from-sql</link>
<description>&lt;p&gt;One of our client want to do something like that but without using the SOAP request.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;efficy:search entity=&quot;{Entity}&quot; method=&quot;DTSEARCH&quot; value=&quot;{String}&quot;&amp;gt;
 &amp;lt;datacontainer id=&quot;{Int}&quot;/&amp;gt;
&amp;lt;/efficy:search&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Do you know an other way by using native SQL search to get it or it's only generated by the DLL ?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=452/get-dtsearch-result-from-sql</guid>
<pubDate>Fri, 12 Jun 2015 13:53:58 +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>