2011-02-07 98 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); 

喜歡這種方式,我們可以插入值,以自定義字段

相關問題