Answers.Body: <p>If you are using Drupal then you can create Relationships at same time as Membership purchase via the Webform CiviCRM module</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-27T03:55:26.960Z
Answers.LastActivityDate: 2018-01-27T03:55:26.960Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>You can set type of relationship to be used for a membership type. So when a membership is purchased the contact will have relationship with the organization automatically and also will be set to inactive when membership is expired or cancelled.</p>
  
  <p><a href="https://i.sstatic.net/BvzKs.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BvzKs.png" alt="enter image description here"></a></p>
  
  <p>You can also check documentation for more information at <a href="https://docs.civicrm.org/user/en/latest/membership/defining-memberships/" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/latest/membership/defining-memberships/</a> (search keyword - Relationship Type)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-20T21:55:40.323Z
Answers.Text: I saw that, but it doesnt seem to fit for my needs. I dont want a relationship with an "organization" but with another contact. The relationship start and end date should also match the membership dates
Answers.UserDisplayName: Nuno Donato
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-22T10:25:28.733Z
Answers.Text: The question asks about creating a relationship when a membership is created.  The option highlighted above uses existing relationships but does not create relationships.
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-01-20T16:48:16.103Z
Answers.LastActivityDate: 2018-01-20T16:48:16.103Z
Answers.UserDisplayName: Pradeep Nayak
Body: <p>I'm using CiviCRM to manage sponsors of children in India for an NGO. I'm configured it and set up some custom fields in order to have the children(contact) connected to the membership.</p>
  
  <p>So far so good, I can generate reports to see payments due, etc.</p>
  
  <p>The problem is, I can not work the other way around, that is, seeing which children don't have sponsors.</p>
  
  <p>My guess to solve this was to use Relationships, as I could then report and filter on that. But I've not been able to automatically create a relationship between sponsor-child when adding the membership. (doing it manually would be really tiring for the people who manage this).</p>
  
  <p>Is it possible?
  Any other ideas on how I could go about this?</p>
  
  <p>thanks in advance</p>
  
Tags: <civimember><civireport><relationships>
Title: Can I link memberships to relationships automatically?
ThreadText: # Can I link memberships to relationships automatically?
  
  (Asked by: username_0 on 2018-01-20)
  
  I'm using CiviCRM to manage sponsors of children in India for an NGO. I'm configured it and set up some custom fields in order to have the children(contact) connected to the membership.
  
  So far so good, I can generate reports to see payments due, etc.
  
  The problem is, I can not work the other way around, that is, seeing which children don't have sponsors.
  
  My guess to solve this was to use Relationships, as I could then report and filter on that. But I've not been able to automatically create a relationship between sponsor-child when adding the membership. (doing it manually would be really tiring for the people who manage this).
  
  Is it possible?
  Any other ideas on how I could go about this?
  
  thanks in advance
  
  **Tags:** civimember, civireport, relationships
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2018-01-27. Score: 0
  
  If you are using Drupal then you can create Relationships at same time as Membership purchase via the Webform CiviCRM module
  
  
  ---
  
  ### Answer by username_2 on 2018-01-20. Score: 0
  
  You can set type of relationship to be used for a membership type. So when a membership is purchased the contact will have relationship with the organization automatically and also will be set to inactive when membership is expired or cancelled.
  
  [![enter image description here](https://i.sstatic.net/BvzKs.png)](https://i.sstatic.net/BvzKs.png)
  
  You can also check documentation for more information at <https://docs.civicrm.org/user/en/latest/membership/defining-memberships/> (search keyword - Relationship Type)
  
  > **Comments:**
  > **username_0**: I saw that, but it doesnt seem to fit for my needs. I dont want a relationship with an "organization" but with another contact. The relationship start and end date should also match the membership dates  
  > **username_3**: The question asks about creating a relationship when a membership is created.  The option highlighted above uses existing relationships but does not create relationships.  
  
  ---
  
  