API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

An activity must be specified

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"
);
created Aug 18, 2016 by osomanden
0% Accept Rate

edited Aug 18, 2016 by osomanden
Q 4 A 0 C 1

Visma e-conomic A/S
...