3

我有 sugarcrm 实例,并想使用自定义 php 代码从中获取一些数据。

我为此使用 nusoap 客户端。我能够获取数据,但只想选择特定 id(record) 的数据。我正在做的是

$response = $client->call('get_entry_list',array('session'=>$session_id , 'module_name'=>'itf_Apartments', 'where'=>'itf_Apartments.id=2', 'order_by'=>'','offset'=>'','select_fields'=>array('name')));

但我没有得到任何结果。我的代码有问题吗???

4

4 回答 4

1

http://www.beanizer.org/site/index.php/en/Articles/Sugar-CRM-integration-with-custom-PHP-applications-I.html

Here you will find all answers.

于 2009-09-14T18:06:28.560 回答
0

您能否查看该实例的 sugarcrm.log 文件以查看其中是否有任何 SQL 错误?我打赌这个问题与“where”参数有关。

于 2011-08-07T02:12:24.097 回答
0

下面的代码是需要使用的代码,它与您在 sugarcrm 示例中获得的代码相同。

$proxy = new Soap客户端(' http://server.com/service/v2/soap.php?wsdl ',array('exceptions' => 0));

$session = $proxy->login(array('user_name'=> $user , 'password' => md5($pass)));


$query= " customer.id IN ( select id from customer where customer.id = '" . $id . "' and deleted = 0)";

$result= $proxy->get_entry_list($session->id , 'customer', $query ,'', 0 ,array('email', 'username','password', 'name') ,null, 1000, -1 ) ;
于 2013-09-28T06:06:50.110 回答
0

为什么不只使用 get_entry() ?

http://www.sugarcrm.com/forums/f6/problem-soap-get_entry-call-30248/

于 2011-10-26T17:20:24.213 回答