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

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"
);

Viewing all articles
Browse latest Browse all 2527

Trending Articles