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

  • CiviCRM Cookbook
  • Tony Horrocks
  • 393字
  • 2021-08-20 16:57:02

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

主站蜘蛛池模板: 江门市| 长子县| 周口市| 扎兰屯市| 白山市| 连平县| 浦东新区| 两当县| 文山县| 兴化市| 阿合奇县| 梨树县| 嘉定区| 宁乡县| 苍梧县| 师宗县| 汉寿县| 普宁市| 额敏县| 依兰县| 柳河县| 绥芬河市| 浙江省| 多伦县| 许昌县| 济源市| 讷河市| 延安市| 道孚县| 宜宾市| 昭平县| 盐池县| 双牌县| 锦州市| 资讯 | 阿尔山市| 乌兰察布市| 宁津县| 睢宁县| 买车| 华宁县|