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

PHP Soap Get Project List

$
0
0

Hi there..

New to this .. Got a connection to economic - but need a list of projects with their handles (to do a dropdown) 

 

Tried 

 
$projectHandles = $client->ProjectGroup_GetAll();
$projectDataObjects = $client->Project_GetDataArray(array('entityHandles' => $projectHandles))->Project_GetData();
 
And got an error 
 
 Call to undefined method stdClass::Project_GetData() in
 
anyone ?
 
/Lars
 
 
Edit:
The "play around till it works" - seems to bring results..
 
 
$projectHandles = $client->Project_GetAll()->Project_GetAllResult->ProjectHandle;
$projectDataObjects = $client->Project_GetDataArray(array('entityHandles' => $projectHandles))->Project_GetDataArrayResult->ProjectData;
 
seems to do the trick..
 

 


Answered: Create Time Entry

$
0
0

Hi Osomanden

Null data entities not allowed means you've sent in an empty entity.

Here's your XML from the logs:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://e-conomic.com"><SOAP-ENV:Body><ns1:TimeEntry_CreateFromData/></SOAP-ENV:Body></SOAP-ENV:Envelope>

While building your solution it is often a good idea to setup debug logging that logs your entire outgoing messages so you can get the full insight into what you actually transferred over the pipes.

A great tool for this is Fiddler, which is a free proxy tool.
They have a guide for using it with PHP here: 
http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/ConfigurePHPcURL

An activity must be specified

$
0
0

PHP Fatal error:  Uncaught SoapFault exception: [soap:Client] Economic.Api.Exceptions.IntegrityException(E04010): An activity must be specified

 

What does that mean (ActivityHandle)?

 

Activation code: $result = $client->TimeEntry_CreateFromData(array( "data"=>$invoice_data))->TimeEntry_CreateFromDataResult;

 

Array sent:

$invoice_data = array(
"Handle" => array("Id" => $invoice_project_id),
"Id"  => array("Number" => $invoice_project_id),
"ProjectHandle" => array("Number" => $invoice_project_id),
"EmployeeHandle" => array("Number" => $_SESSION["u_id"]),
"ActivityHandle" => array("Number" => $_SESSION["u_id"]),
"Date" => date("c"),
"Text" => "Ticket: ".$ticket_id."#".$followup_id." : ".$invoice_text,
"NumberOfHours" => str_replace(":",".",$_POST["additional_time"]),
"Approved" => TRUE,
"SalesPrice" => "0.0",
"CostPrice" => "0.0"
);

SOAP-ERROR: Encoding: object has no 'Id'

$
0
0
Hi.

I am trying to update debtor with Debtor_UpdateFromData.
I had a working code 1 year ago, but now it is complayning SOAP-ERROR: Encoding: object has no 'Id'

I cannot find any missing ID for the SOAP request.

Is there any way to debug and find the parent tag for this Id?

BR

Trond

Answered: Udviklerkonto

$
0
0
Hi Hedam

To make a developer agreement permanent please use the button on the frontpage of your developer agreement to contact the Apps Team. Make sure to include a few words about what you're building. Thanks.

Answered: Economic.Api.Exceptions.ValidationException(E04010): Argumen

$
0
0

Hi All

 

I too feel into this hole.

The documentation is a bit shakey on the parameter name: debtorHandle, everywhere else "D"ebtorHandle is with uppercase 

AND more importantly, it doesnt have the data array layer around it. And since the only create example readily available in PHP, is the Debtor_CreateFromData, it seems that quite a few of us gets caught out.
 
Simple solution would be to expand the PHP example, since most people using it is going to need it anyways.
 
 
Thomas G

Answered: Exception thrown when calling CashBookEntry_CreateFromData SOAP API

$
0
0

Hi Mikkel

Here's the XML you're submitting:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="http://e-conomic.com"><SOAP-ENV:Body><ns1:CashBookEntry_CreateFromData/></SOAP-ENV:Body></SOAP-ENV:Envelope>

For debugging purposes we recommend installing a proxy tool such as Fiddler to gain insight into what's actually being sent to the SOAP API.

setDueDate on Order does not set a correct due date

$
0
0
setDueDate on an order does not work correctly. It instead shows the data the order was created.

Should it not be possible to set a concrete Due Date on the order?

Order send in trail account

$
0
0

Hi,

i've a developer account.For testing purposes, using economic-api, i imported customer and product from a trial account and sent orders to the trial account which was working nicely. But from few days,when i try to export order to the ecnomic trial account i am getting the following error

Economic.Api.Exceptions.AuthorizationException(E03062): To use this feature you must be authorized to use orders (id=79c8d205-afb7-4604-a82e-082daf5a046c)

As a developer, i need to send orders to ecomomic to check whether it is working. How can i send order for tesing?

it is urgent.please let me know

Best Regards

sabbir

"Avdelning" section in Voucher Lines

$
0
0
Hi, so i wanted to add the information something like the department or section ("project" or cost place") on every voucher entry. How do i do that? Currently the voucher lines only accept account, amount, text currency. i enabled the avdelning on every voucher line entry but i have no idea how to access that field from the REST API. is there any way i can attach that information (project or costplace) on every voucher line? here is the screenshot of the voucher http://screencast.com/t/kwBkM6Cb Thank you for your help.

REST - Filters on customerGroup/supplierGroup attributes

$
0
0
I'm trying to filter all suppliers with a specific supplierGroupNumber and customers with a specific customerGroup, but I cannot seem to get anything but an error.
Example rest calls I have tried:

filter=customerGroup$eq:1

filter=customerGroupNumber$eq:1

filter=customerGroup.customerGroupNumber$eq:1

If I create a different filter, it works (fx fiter=barred$eq:True)

Answered: setDueDate on Order does not set a correct due date

Answered: Order send in trail account

$
0
0
Please ensure that you're using an AgreementGrantToken generated for an accounting agreement when connecting using tokens.
AgreementGrantTokens should not be generated with Developer and Administer credentials.
It is a bug that it is possible to generate an AgreementGrantToken while logged in as either and the possibility will be shut down again soon.

Answered: "Avdelning" section in Voucher Lines

$
0
0
Hi Roy

I've looked in the UI and I see no way to do this in the application? If it's possible, can you please post a screenshot of where you have this option?

Answered: REST - Filters on customerGroup/supplierGroup attributes

$
0
0
Demo of filtering on customerGroupNumber on /customers:
https://restdemo.e-conomic.com/index.html?path=customer-groups&filter=customerGroupNumber$eq:1

Filtering on supplierGroupNumber on /suppliers isn't available. Supplier Groups only exist inside the inventory module.

https://restdemo.e-conomic.com/index.html?path=suppliers&filter=supplierGroupNumber$eq:1
"allowedFilteringFields": [
       "supplierNumber",
       "name",
       "currency",
       "barred",
       "corporateIdentificationNumber",
       "email",
       "address",
       "zip",
       "city",
       "country",
       "bankAccount",
       "defaultInvoiceText"
   ]

Answered: REST api Cashbooks status

Answered: E-conomic Java Jar | connectwithtoken | cannot connect without appSecretToken

$
0
0
Hi
Do you get this when calling ANY method or just the Verify method?
Could you please check if this could be a bug in Verify as token connect nullifies the need for the verify method.

Please also try commenting out your X-EconomicAppIdentifier header as this isn't necessary either when using tokens. We sometimes see Java SOAP frameworks not being able to properly handle both including a cookie AND setting a custom header out of the box.

Answered: Daybook and currrency

$
0
0
Hi Theodor

When creating CashBook entries the property "AmountDefaultCurrency" is the amount in the base currency of the agreement.

"Amount" must be set to the amount selected in the "Currency" property.

An AmountDefaultCurrency of 0 is tecnhically invalid unless the entry is a 0-entry. Furthermore: Amount=X and AmountDefaultCurrency=0 is fully invalid and will mess up the accounting.

e-conomic uses AmountDefaultCurrency vs. Amount to calculate the exchange rate. So in short that is how you set the exchange rate via API.

ValidationException(E04010): The document may not be null

$
0
0

Im rewriting our connection to Economic, using token-based solution in .NET.

I'm getting this error when trying to create a orderLine:

 

Economic.Api.Exceptions.ValidationException(E04010): The document may not be null. (id=21922a75-9977-4437-8517-3c1542e4fcfe)

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ServiceModel.FaultException: Economic.Api.Exceptions.ValidationException(E04010): The document may not be null. (id=21922a75-9977-4437-8517-3c1542e4fcfe)

 

My Code:

 public bool SaveOrderLine(int orderNumber, string strProductNumber, decimal decQuantity, decimal decPrice)
    {
      bool rtnValue = false;
 
      OrderHandle objOrder = _session.Order_FindByNumber(orderNumber);
      
      OrderLineHandle objLineData = _session.OrderLine_Create(objOrder);
...
}

 

We didn't check for a document attribute in our previous solution, and niether can i find anything about this in the documentation 

 

Can anybody explain to me what i should do to fix this?

Answered: ValidationException(E04010): The document may not be null

$
0
0
It seems the objOrder is Null.. Although its the same solution as pre-token, there seems to be some difference in how the data received after a call..
Viewing all 2527 articles
Browse latest View live