<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged remote-api</title>
<link>https://overflow.efficy.io/?qa=tag/remote-api</link>
<description>Powered by Question2Answer</description>
<item>
<title>When inserting mail through JSON API, is it possible to fill MEMO with body of Mail</title>
<link>https://overflow.efficy.io/?qa=6342/when-inserting-mail-through-json-possible-fill-memo-with-body</link>
<description>&lt;p&gt;When inserting mail through JSON API, is it possible to fill MEMO with body of Mail just like the Outlook addin does this ?&lt;/p&gt;

&lt;p&gt;Meaning : Is there a function in Efficy that does this or does the customer need to extract the body from the .eml file and then set the MEMO field in the normal (API) way ?&lt;/p&gt;
</description>
<category>Efficy Integrations</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6342/when-inserting-mail-through-json-possible-fill-memo-with-body</guid>
<pubDate>Wed, 03 Nov 2021 09:04:14 +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 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>how to request via json api both a file name and it's contents by a key</title>
<link>https://overflow.efficy.io/?qa=5328/how-to-request-via-json-api-both-file-name-and-its-contents-key</link>
<description>&lt;p&gt;When I use the following json to request an attachment to a document, the response contains the byte stream (base64 encoded), but not the name of the attachment, and not the mime type. In addition, I need to know the key of the document; only the key of the attachment is not sufficient.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[
{
&quot;@name&quot;: &quot;edit&quot;,
&quot;entity&quot;: &quot;Docu&quot;,
&quot;key&quot;: 684362,
&quot;closecontext&quot;: true,
&quot;@func&quot;: [
{&quot;@name&quot;: &quot;attachment&quot;, &quot;key&quot;: &quot;888274_0&quot;}
]
}
]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Preferably it would be possible to request the file name, mime type, and contents of an attachment only by it's key. Can this perhaps be accomplished by an array of requests?&lt;/p&gt;

&lt;p&gt;Thanks in advance.&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5328/how-to-request-via-json-api-both-file-name-and-its-contents-key</guid>
<pubDate>Mon, 02 Mar 2020 07:08:17 +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>
</channel>
</rss>