2011-02-07 32 views
0

你好朋友,我为联系人创建了一些自定义字段。我如何将值插入到自定义字段中。我试图用params传递自定义值。但它没有插入。如何插入该值。 请帮助我。如何在civicrm中插入自定义字段值?

+0

你能后的代码输入PARMS,你试过吗? – 2011-02-07 09:39:25

回答

0

//定义联系人和初始主位置

$params = array(
       'first_name' => 'Dan', 
       'custom_{put your custom filed id here}' => "custom field value1", 
       'custom_{put your custom filed id here}' => "custom field value2" 
       ); 
$contact =&civicrm_contact_create($params); 
print_r($contact); 

喜欢这种方式,我们可以插入值,以自定义字段

相关问题