[Vtigercrm-developers] creating potentials through webservice gives database error
Alan Lord
alanslists at gmail.com
Wed Mar 30 09:52:48 GMT 2016
On 30/03/16 10:46, lucia digirolamo wrote:
> $recorddata = array(
> 'potentialname' => 'test',
> 'related_to' => '3x95460', // (moduleId x recordId) such as
> 3x95460
> 'closingdate' => date('Y-m-d'),
> 'sales_stage' => 'Closed Lost',
> 'amount' => '2000',
> 'contact_id'=>'4x97106',
> );
Are your wsids correct? "3" in some of my systems is for the FAQ module
and "4" is for Quotes. Check your table vtiger_ws_entity - these are
*not* the same as the tabid.
Also you have no assigned_user_id field - which is _always_ mandatory.
Al
More information about the vtigercrm-developers
mailing list