- CiviCRM Cookbook
- Tony Horrocks
- 383字
- 2021-08-20 16:56:59
Adding a time-limited relationship
Relationships are a central feature of CiviCRM. For example, you may run an organization that has contacts related to it because they are volunteers, or you may have individual contacts that are the children of other contacts who are their parents. Some relationships are time-limited. For example, the chair of an organization may have a one year fixed term of office.
How to do it…
In this recipe we will set up a time-limited relationship between two contacts using the following steps:
- Navigate to Administer | Customize Data and Screens | Relationship Types and click on Add relationship:
- Set Relationship Label-A to B to
Chair
. - Set Relationship Label-B to A to
Chair is
. - Set Contact Type A to Individual.
- Set Contact Type B to Organization.
- Set a suitable description in the Description field.
- Check if the relationship is enabled.
- Save the relationship.
- Navigate to an individual contact, click on the Relationship tab, and add the relationship.
- Select the relationship type Chair and select the contact to relate to. CiviCRM autocompletes your entry from the organizations available in the database.
- Enter a start date and an end date for the relationship and add a description.
- Navigate to Administer | System Settings | Scheduled Jobs and enable and set the Disable Expired Relationships job.
How it works…
Contact Type A is set to Individual. Contact Type B is set to Organization. This means that only individuals can be chairs of organizations.
The Disable Expired Relationship job checks the dates on relationships and disables them if they have expired. This requires cron in order to function properly.
There's more…
You can allow the two related contacts to be able to view and edit each other's records by using the checkboxes below the Notes field. For example, you could allow the chair to be able to edit the organization record. This would also require the individual contact to have an active account on your CMS and permission to access their CiviCRM contact dashboard.
Note
Relationships become available for use in CiviCRM core functions such as importing, exporting, and searching data. They are also used in creating membership types.
See also
- The Setting up cron using cPanel recipe in Chapter 1, Setting Up CiviCRM
- Find more about CiviCRM relationships at http://book.civicrm.org/user/current/organising-your-data/relationships/
- 通信網(wǎng)絡(luò)基礎(chǔ)與設(shè)備
- Cisco OSPF命令與配置手冊
- GPS/GNSS原理與應(yīng)用(第3版)
- 物聯(lián)網(wǎng)檢驗(yàn)檢測技術(shù)
- 光纖通信系統(tǒng)與網(wǎng)絡(luò)(修訂版)
- 一本書讀懂物聯(lián)網(wǎng)
- Implementing NetScaler VPX?
- 圖解物聯(lián)網(wǎng)
- 信息技術(shù)安全評(píng)估準(zhǔn)則:源流、方法與實(shí)踐
- 加密與解密實(shí)戰(zhàn)全攻略
- 互聯(lián)網(wǎng)視覺設(shè)計(jì)(全彩慕課版)
- 網(wǎng)絡(luò)設(shè)備配置與調(diào)試項(xiàng)目實(shí)訓(xùn)
- Oracle ADF Faces Cookbook
- 互聯(lián)網(wǎng)下一站:5G與AR/VR的融合
- MPLS網(wǎng)絡(luò)設(shè)計(jì)權(quán)威指南