官术网_书友最值得收藏!

Using external identifier deduping rules to update contacts

When data is imported to update contacts, CiviCRM has a set of rules to match contacts already in the database. By default, CiviCRM uses the e-mail address. If it finds a matching e-mail address it will update the matching contact. A problem will arise because not all of your contacts will have an e-mail address. So if we try to import some updates, only those contacts with an e-mail address will be updated.

In these situations we need to have a different unique identifier that we can let CiviCRM use to match records.

How to do it…

We will use the External Identifier field in CiviCRM as our unique identifier. This field has to have a unique value for each contact. This will provide us with a good alternative to e-mail addresses to match contact data.

  1. Navigate to Contacts | Find and Merge Duplicate Contacts.

    The screenshot shows the deduping rules that are available to use for each contact type:

    If we were importing data for individuals then CiviCRM would use the Email (reserved) rule that matches on e-mail addresses. So we need a different unique identifier for each contact that we can use instead of the e-mail address.

    Quite often legacy data will already have a unique identifier, such as a client ID or membership number. If you already have an existing unique identifier then it is a good idea to have mapped this to CiviCRM's External Identifier field when your data is first imported.

    If you do not have a unique identifier, then you can construct one using Google Refine.

  2. Click on Add Rule. The following screenshot is what you will find:
  3. Give the rule a name. Here we used Custom import.
  4. Select Unsupervised for Usage. Unsupervised rules are used for imports and entries through online forms such as event signups or contact information using profiles. Supervised rules are used when user information is added manually through the contact screen.
  5. Enter the external identifier as the first matching field with a weight of 10. Make the weight threshold to trigger the rule at 10. That's it. You can now use this rule to match contacts when you are importing data.

See also

主站蜘蛛池模板: 苍梧县| 双江| 酒泉市| 襄垣县| 许昌县| 桐柏县| 建平县| 常宁市| 汕尾市| 阳谷县| 哈巴河县| 莱阳市| 南乐县| 西藏| 蓝山县| 敦化市| 台江县| 得荣县| 阜新市| 施甸县| 西峡县| 惠州市| 固阳县| 桑植县| 乌兰察布市| 大余县| 武隆县| 共和县| 龙川县| 兴山县| 大竹县| 井陉县| 桐乡市| 广东省| 永仁县| 镇坪县| 斗六市| 广平县| 金山区| 涿州市| 武冈市|