Answers.Body: <p>From what I can tell this functionality is not available in core imports, which allow relationships to be imported as a side function (e.g. when importing contacts, you can specify relationships on the side). </p>
  
  <p>There is an extension available called "CSV GUI Import to api" which allows more targeted imports, including one directly to Relationships. </p>
  
  <p><a href="https://i.sstatic.net/s1fgo.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/s1fgo.jpg" alt="CSV Import to relationship"></a></p>
  
  <p>I think you need to use Internal Contact IDs (I tried to find how to do it with external IDs and couldn't manage it), as well as having other info specified:</p>
  
  <p><a href="https://i.sstatic.net/pZNOo.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pZNOo.jpg" alt="Relationship import fields"></a></p>
  
  <p>In the screenshot above (from the second field matching step), "Year" is a custom field that I added to a certain relationship type, and which can be imported to in this way. You can see the core date fields are also available.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-29T21:39:27.723Z
Answers.Text: Extension can be downloaded from https://github.com/eileenmcnaughton/nz.co.fuzion.csvimport
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-28T23:00:39.263Z
Answers.LastActivityDate: 2017-10-28T23:00:39.263Z
Answers.UserDisplayName: Laryn
Answers.Body: <p>Laryn's answer is good.  The other popular method is the command-line CSV import tool: <a href="https://civicrm.org/blog/jamie/the-new-and-improved-cliphp-now-a-new-way-to-interact-with-api-v3" rel="nofollow noreferrer">https://civicrm.org/blog/jamie/the-new-and-improved-cliphp-now-a-new-way-to-interact-with-api-v3</a></p>
  
  <p>If you had a file that looked like this:</p>
  
  <pre><code>contact_id_a,contact_id_b,relationship_type_id,custom_34
  4,8,2,1997
  5,12,2,2008
  etc.
  </code></pre>
  
  <p>You could import it with:</p>
  
  <p><code>php /path/to/civiroot/bin/csv/import.php -e Relationship --file /path/to/your.csv
  </code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-29T18:19:20.377Z
Answers.Text: I am already beyond this stage but it could still be helpful in the future. I prefer this one because no extension is needed and it runs from the command line.
Answers.UserDisplayName: ñull
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-28T00:01:55.327Z
Answers.LastActivityDate: 2017-11-28T00:01:55.327Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I am  prototyping and testing import from M$ Access. Up to now I could quite easily import relationships, but I am missing the way to import also the relationship core Start date and custom fields I created in some relationship types. It seems like contact import is not prepared for this, right? So the only other way would be writing custom import scripts using the API? Any hints or documentation are appreciated!</p>
  
Tags: <custom-fields><import><relationships>
Title: How do you import (custom) relationship fields?
ThreadText: # How do you import (custom) relationship fields?
  
  (Asked by: username_0 on 2016-02-23)
  
  I am prototyping and testing import from M$ Access. Up to now I could quite easily import relationships, but I am missing the way to import also the relationship core Start date and custom fields I created in some relationship types. It seems like contact import is not prepared for this, right? So the only other way would be writing custom import scripts using the API? Any hints or documentation are appreciated!
  
  **Tags:** custom-fields, import, relationships
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-10-28. Score: 4 | Accepted answer
  
  From what I can tell this functionality is not available in core imports, which allow relationships to be imported as a side function (e.g. when importing contacts, you can specify relationships on the side).
  
  There is an extension available called "CSV GUI Import to api" which allows more targeted imports, including one directly to Relationships.
  
  [![CSV Import to relationship](https://i.sstatic.net/s1fgo.jpg)](https://i.sstatic.net/s1fgo.jpg)
  
  I think you need to use Internal Contact IDs (I tried to find how to do it with external IDs and couldn't manage it), as well as having other info specified:
  
  [![Relationship import fields](https://i.sstatic.net/pZNOo.jpg)](https://i.sstatic.net/pZNOo.jpg)
  
  In the screenshot above (from the second field matching step), "Year" is a custom field that I added to a certain relationship type, and which can be imported to in this way. You can see the core date fields are also available.
  
  > **Comments:**
  > **username_2**: Extension can be downloaded from https://github.com/eileenmcnaughton/nz.co.username_2.csvimport  
  
  ---
  
  ### Answer by username_3 on 2017-11-28. Score: 2
  
  username_1's answer is good. The other popular method is the command-line CSV import tool: <https://civicrm.org/blog/jamie/the-new-and-improved-cliphp-now-a-new-way-to-interact-with-api-v3>
  
  If you had a file that looked like this:
  
  ```
  contact_id_a,contact_id_b,relationship_type_id,custom_34
  4,8,2,1997
  5,12,2,2008
  etc.
  
  ```
  
  You could import it with:
  
  `php /path/to/civiroot/bin/csv/import.php -e Relationship --file /path/to/your.csv`
  
  > **Comments:**
  > **username_0**: I am already beyond this stage but it could still be helpful in the future. I prefer this one because no extension is needed and it runs from the command line.  
  
  ---
  
  