Questions tagged [relationships]

Relationships link different contacts or organisations with each other. The are listed in a contacts `Relationships` tab.

Filter by
Sorted by
Tagged with
1
vote
0answers
108 views

Smart Group create/alter via API

What would be the best way of batch Smart Group creation using Relationships data, where Organisation name, taken from Individual Relationship data, should become a Smart Group title and all ...
2
votes
2answers
47 views

Batch create relationships

We have 2 relationship types : A and B. We have about 500 contacts with A-relationships already set, and for each we need to create a B-relationship with the same contact. For example : We already ...
3
votes
2answers
190 views

Find Contacts with no Relationships

Have tried using API, but $result = civicrm_api3('Contact', 'get', array( 'return' => "id", 'contact_sub_type' => array('!=' => "Parent"), )); gives zero results, while Search ...
1
vote
0answers
94 views

Why do I have an error when trying to update relationship using CiviCRM API

Since this morning I'm running into something strange when using the API to update a relationship. Here is my code : CRM.api3('Relationship', 'create', { "sequential": 1, "id": 11, "...
2
votes
0answers
78 views

Family Membership not inherited by related contacts

We have two sites recently updated to 4.6.8 and are experiencing issues with family memberships, where the related party is not getting a new membership when the other renews. Are there any changes ...
7
votes
2answers
119 views

How to change the direction of a relationship type with existing data

I have made an organisation / individual relationship type as an a_b relationship while it should be a b_a relationship to be consistent with the existing relationships like employer of which always ...
3
votes
2answers
154 views

Relationship created by API does not add Membership until edited/updated

CiviCRM 4.6.8 I'm using Relationship.create in a civicrm post hook to create an inherited membership. My membership type is set to use this relationship. However after that API call is successful, ...
1
vote
2answers
44 views

Bug: adding new contact through relationship limited to subtype

I have a custom relationship type that is has contact B limited to a contact sub-type. Now when I go to a contact to create add this custom relationship and use as related contact New individual ...
2
votes
1answer
156 views

Creating other relationships for memberships on behalf of an organization

Having trouble with memberships created on behalf of an organization that need a different relationship type than Employee of/Employer. I have a suspicion I'm simply approaching it the wrong way. We ...
1
vote
1answer
37 views

Membership not extended to all related contacts

Because a membership type was in use, I wasn't able to edit its relationship properties via the CiviCRM GUI. So I did it in MySQL (by editing membership_type_id and membership_direction fields in ...
2
votes
2answers
247 views

Create a Drupal View with MULTIPLE CiviCRM relationships?

I have read the answers to this question: How to create a Drupal View with multiple CiviCRM relationships? and it has helped me to create a Drupal view that links an individual to a household, but ...
5
votes
2answers
123 views

How can I regenerate memberships shared by relationship?

Is there a way to do a one-time purge and regenerate of all memberships that are shared by a relationship? (I would be okay if it required doing some SQL directly in the database as long as it didn't ...
2
votes
1answer
64 views

Relationships not available on household imports

We have an import that we do a few times a year that I set up about 2 years ago. Until today, it's never had an issue. We are using v4.6.3, and the last time we did it we were using a 4.5.x version. ...
1
vote
1answer
29 views

after i use api to update the database results not immediately showing

I'm running into an issue with the api. I use the following call to write to the relationships datatable $result = civicrm_api3('Relationship', 'create', array( 'sequential' => 1, '...
1
vote
1answer
163 views

Update custom field from other custom data

I'm trying to use a php hook to automatically create a relationship between two contacts. Let me set the stage for you. Meeting Extender: a custom data set that extends the meeting activity(activity ...
2
votes
2answers
136 views

How do I find civicrm field names for import?

I want to import memberships, but civi isn't finding the membership type. How do I find out the field names (such as membership_type) for each membership? This problem has cropped up for other ...
2
votes
1answer
49 views

Should civicrm_post hook receive populated Relationship object following relationship enable/disable in UI?

I'm porting some code using Civi hooks from Civi 4.4 to 4.6 . The code needs to know when a relationship becomes active or inactive, regardless of how that happens, including via the enable/disable ...
0
votes
2answers
45 views

Relationships are shown twice

I am using CiviCRM 4.5.5 with Drupal 7. When I go to add a relationship the custom relationships show up twice. Please help. Thanks, Josh
7
votes
2answers
268 views

Add relationship on profile submission

Currently there is no a way to add relationship to a profile on submission. Meaning when someone submits a new profile that a relationship be attached to that contact. This question outlines how it ...
6
votes
1answer
267 views

Batch Update Relationships

Is there a way to batch update relationships, specifically the type of relationship along with the start and end date? I don't see the fields to add to a profile to do a batch update. I also don't ...
2
votes
1answer
50 views

Custom contact reference field with “New Organization”

I would like to create a custom contact reference field (for CiviGrants) that also has the ability to add a new contact on the fly. It should be like the default Contact field used in (for example) ...
5
votes
2answers
297 views

Can I customize the contact relationship tab to show custom fields?

I have a relationship type with some custom fields. Is there any way to customize the relationship tab under a contact, to display those custom fields? Instead of the default Start/End/City/State/...
2
votes
1answer
418 views

Importing relationships

I have a set of custom relationships I need to import against, but the import mapping dropdowns are only showing the three default relationships: Employee of.. Family member is.. Household member is.....
1
vote
4answers
62 views

How to create a relationship if a contact marked with multiple subtype?

I have 3 contact subtypes. Contributing member Volunteers Patron some of members have multiple subtypes associated to their record. When I try to create a relationship of a "Patron" with a contact ...
1
vote
2answers
200 views

Cloudflare kills dashboard + Relationship tab error. Any ideas?

Drupal 6.36; CiviCRM 4.5.8 I am experiencing two problems after making changes to my site. Not sure if the problems are related. I will start troubleshooting but any guidance would be very helpful. ...
2
votes
0answers
33 views

Cannot add relationship: search does not work - always yields “None found” [closed]

After upgrading to 4.6 (Joomla installation), I can no longer add a relationship (i.e., share address with another contact, as in a household). When typing anything into the 'share with' contact field,...
6
votes
1answer
167 views

How can I make a contact the case manager of several cases with the same client contact?

Our organization is trying to use CiviCase as a ticketing system. So we have one case type, the "Ticket". We can have multiple Tickets open for the same client. However, I can't assign the same ...
2
votes
4answers
109 views

Linking spouse relationship information

I am very new to this, and am a user and work for a charity and have very little experience in this field and would really appreciate some advice! I want to print labels to post invitations to all our ...
6
votes
3answers
176 views

How to export all children of a family?

Our organization has families defined by relationships (but not put into households) and is looking to print a directory with a column of family members: NAME FAMILY Bob ...
8
votes
3answers
651 views

How to create a Drupal View with multiple CiviCRM relationships?

I would like to create a Drupal View showing an organization and several individuals who are related to the organization in different relationships. The wording on the CiviCRM Drupal relationships ...
2
votes
2answers
46 views

Adding custom roles to Case “Add role” function

I've tried this on a couple of instances, but if I have a Case I want to add role to, the list is restricted to the core roles that come with CiviCRM and none of my custom roles based on custom ...
2
votes
1answer
59 views

Are there any dangers to editing a membership type directly in the database?

We have a membership type that is shared by relationship. However, after the membership type was created, we needed to share it by a new relationship type. I edited the membership type directly in the ...
4
votes
1answer
119 views

Why can I not add relationships?

Freshly installed on latest Wordpress, I am simply not able to add relationships to contacts. I have created one contact of type ORGANIZATION and one of type INDIVIDUAL and no matter what I try, I ...
5
votes
4answers
270 views

How do I create a profile listing of multiple-record user relationships?

I am trying to generate a profile that lists and allows the user to edit his employment/education history in their Drupal My account page. I was hoping to get something similar to what is described in:...
3
votes
2answers
109 views

How to decide between using a custom Relationship and using a custom Contact Reference field?

This is admittedly open-ended any may just depend too much on use-case. I am looking for advice on when it is preferable to create a custom Contact Reference field instead of just creating a custom ...
3
votes
3answers
212 views

How do I set up custom permissive relationships?

I am currently using D7.35 and Civi4.4.14 We have custom relationships on our Civi installation. What I would like them to do is give the individual permission to view and edit the organisation which ...
1
vote
1answer
51 views

How do I automatically make roles inactive when case is resolved

CiviCRM Version 4.5.6 Looking at some case types (it seems to work for other case types) where after case status has been changed to "resolved," case roles remain active. Is there a way to ...
5
votes
1answer
119 views

What is the best way to add a contact to existing membership using relationships?

I'm having trouble with adding additional contacts to memberships (CiviMember). The goal is to add spouse, partner, sibling, etc. to an existing membership. The membership type is our own custom type, ...