Quantcast
Channel: e-conomic Global API Forum
Viewing all 2527 articles
Browse latest View live

E-conomic, what function to edit text in Bank reconciliation


Internal error - Entry_GetDataArray

$
0
0

Hey,

Recently I have started receiving an "internal error" in a call to Entry_GetDataArray which has worked fine in the past.

Code snippet (SerialNumber interval provided: 1 to 10001)

 var entries = service.Entry_FindBySerialNumberInterval(serialNumberFrom, serialNumberTo); // return about 6800 entries.
            if (entries.Count() > 0)
            {
                
                var entriesData = service.Entry_GetDataArray(entries); // this fails
                writeEntriesToDB(entriesData, GetConnectionStringStage(), company);
            }
 
            return entries.Count();

Error:

{"Economic.Api.Exceptions.EconomicApiSystemException(E00000): An internal error has occurred. (id=15958cca-d038-4d41-8ede-ee84fe8b57b0)"}

Stacktrace:

 
Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
 
Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at EconomicsApp.EconomicsWS.EconomicWebServiceSoap.Entry_GetDataArray(Entry_GetDataArrayRequest request)
   at EconomicsApp.EconomicsWS.EconomicWebServiceSoapClient.EconomicsApp.EconomicsWS.EconomicWebServiceSoap.Entry_GetDataArray(Entry_GetDataArrayRequest request) in c:\users\novataris\documents\visual studio 2015\Projects\EconomicsApp\EconomicsApp\Service References\EconomicsWS\Reference.cs:line 154766
   at EconomicsApp.EconomicsWS.EconomicWebServiceSoapClient.Entry_GetDataArray(EntryHandle[] entityHandles) in c:\users\novataris\documents\visual studio 2015\Projects\EconomicsApp\EconomicsApp\Service References\EconomicsWS\Reference.cs:line 154773
   at EconomicsApp.Entry.getEntries(EconomicWebServiceSoapClient service, Int32 serialNumberFrom, Int32 serialNumberTo, String company) in c:\users\novataris\documents\visual studio 2015\Projects\EconomicsApp\EconomicsApp\Entry.cs:line 35
   at EconomicsApp.Entry.getEntries(EconomicWebServiceSoapClient service, String company) in c:\users\novataris\documents\visual studio 2015\Projects\EconomicsApp\EconomicsApp\Entry.cs:line 23
   at EconomicsApp.Program.Main(String[] args) in c:\users\novataris\documents\visual studio 2015\Projects\EconomicsApp\EconomicsApp\Program.cs:line 38
   at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
   at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
   at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

X-AgreementGrantToken?

$
0
0

This might just be me that are stupid ;-)

I can get the code below to work fine with demo values for AppSecretToken and AgreementGrantToken - but what do I place there in a real senario?

I can see my AppSecretToken at secure.e-conomic.com/ as I have a developer account. But where do I get AgreementGrantToken??
 

The documentation states:

YOUR_AGREEMENT_GRANT_TOKEN    This identifies the grant issued by an agreement, to allow your app to access their data

This really does not help in knowing what value I have to use.

I can guess from some reading that I might need a real e-connomic account before I can proceed as the documentation at https://www.e-conomic.com/developer/connect does not work with the developer account as https://secure.e-conomic.com/secure/api1/requestaccess.aspx?appId=<Public App Token> return: Only Danish, Swedish and Norwegian agreements are supported. when I try to use the developer account.

So I guess that I need to pay for a 'real' account before I can actually test anything?

Another question - what is allowed with the developer account. E.g. How much can I test like in the real world, can I for example issue invoices etc.

Think that you try hard with the documentation but the real experience is lagging a bit behind as the start curve is a bit high. Need standard examples (had to find one in the forum for PHP and restful). Need a simple guide to get up and running (see above). Might be that there is a guide somewhere, but I returned to this project after some month and are unable to find it again. E.g. the information is all over the place ;-)

 

<?
$service_url = 'https://restapi.e-conomic.com/employees';
       $curl = curl_init($service_url);
       //$curl_post_data = array(
       curl_setopt($curl, CURLOPT_HTTPHEADER, array(
'X-AppSecretToken:demo',
            'X-AgreementGrantToken:demo',
'Content-Type:application/json'
            ));
       curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
       curl_setopt($curl, CURLOPT_GET, true);
       //curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data);
       $curl_response = curl_exec($curl);
       curl_close($curl);
 
       $json = json_decode($curl_response);
 
  print "<pre>";
  print_r($json);
  print "</pre>";
?>

 

 

Answered: X-AgreementGrantToken?

$
0
0
Hi,

Cyril is right about having to create a demo account. This is a full account that you can do everything with. They exist in our production evironment alongside all our paid subscriptions.

If you need to use it for longer than 1 month then you need to contact our app team and tell them about the integration you are creating and why you need a permanent test account. They will help you out with that.

Answered: Internal error - Entry_GetDataArray

$
0
0
Hi Casper,

I can see that we had an internal server error. I am unsure exactly what the problem is at this time, but I have added a bug to our backlog so we can address it.

Answered: Account_GetDataArray - Input array cannot be null error

$
0
0
Hi Greg,

I can see you are trying to connect to the Reviso API. This is no longer part of e-conomic, so your request does not exist in our logs, and I cannot see what is going wrong.

You need to contact Reviso at https://www.reviso.com/developer

This endpoint is only available for agreements with an international ledger

$
0
0
Hi I am trying to create a voucher entry of type (finance-voucher)  however, the api is returning a message

This endpoint is only available for agreements with an international ledger

I am currently using the demo danish agreement. my question is,

how do you turn on the agreement to support an international ledger?

i am building an API client that interface with RESTAPI and currently i am trying to create simple journal entries of finance type.

 

Any help is greatly appreciated.

 

Thank you.

Answered: Anvende API via PHP


Answered: Hi i need a example script for doing rest api calls in php

Answered: E-conomic, what function to edit text in Bank reconciliation

$
0
0
Hi ossedk

This should be on your CashBookEntry_CreateFromDataArray when you set the "Text" property.

Answered: This endpoint is only available for agreements with an international ledger

$
0
0
Hi Roy

The REST API does not currently support cashbooks for DK and NO agreements.
Swedish agreements use International Ledger and therefore have access to using REST when creating ledger entries through that ledger system.

International Ledger is not available outside Swedish agreements.

To interact with and create cashbook entries for DK and NO agreements you must currently use SOAP and CashBookEntry_CreateFromData / CashBookEntry_CreateFromDataArray

SUM with negative numbers

$
0
0
Hello,

I am working on Mac  X Yosemite Office Mac 2011.

so when i export in Excel negative numbers from my dayboob and when i want to calculate the Sum it will appear 0 insteat of the correct numeber.

Please can someone help me.

NOMA AFANA

HDI NIGER ACCOUNTANT

NIGER REPUBLIC

WEST AFRICA

Answered: SOAP API: API Key for non partner app

Adding Product Name to Invoice Line using REST API

$
0
0

Hi there

Is it possible to add the Product Name to the invoice lines using the REST API?

I got everything else working, but are not able to add this crucial information to the invoice lines.

I'm trying something like this in the POST request:

[..]

'product' => array(
'productNumber' => '1',
'name' => 'Test Product'
),

[..]

best regards

Anders

 

 

Not able to see sale tab in e-conomic developer account

$
0
0
Hello i had created my account on e-conomic as a developer account before 2 month. That time there was a sales tab. But now i am not able too see sales tab in e-conomic developer account. I want to test my application. Is there any way help me please.

Answered: How to create "text lines" with QuotationLine_CreateFromData (SOAP)

$
0
0
Hi Hoyer

When creating text lines on sales documents you only set the text.
This does not mean that SOAP accepts missing elements though. Instead of "0" try using xsi:nil when you need to define a field as null.

Answered: CurrentInvoice_FindByOrderNumber missing?

$
0
0
Hi Hoyer

CurrentInvoice_FindByOrderNumber would be exactly the method if such one existed. Alas it does not.
We recommend using the field "OtherReference" and _FindByOtherReference which is supported across all 4 sales documents types (Quotation, Order, CurrentInvoice, Invoice) as well as on REST /invoices.

Locating a draft invoice based on the originating order number is not supported though. Only once booked is this available.

OrderNumber not returned from CurrentInvoice_GetData

$
0
0

The field 

<OrderNumber>int</OrderNumber>

is returned from Invoice_GetData

but not from

CurrentInvoice_GetData

:-(

 

Suggested reading for developers of any REST api

Answered: Changing the $ sign and removing Freight and adding TAX

$
0
0

Hi Kees

Is your issue related to e-conomic APIs or are you looking for general coding help?
I might suggest you use stackoverflow.com as it is quite a bit more vibrant forum for general coding questions.

Regarding sharing your code I suggest you use something like codepen.io so people can read your code without having to handle files.

Viewing all 2527 articles
Browse latest View live