Answers.Body: <p>The Note is stored separately, so you can get it via chaining:</p>
  
  <pre><code>$result = civicrm_api3('Relationship', 'get', array(
    'sequential' =&gt; 1,
    'relationship_type_id' =&gt; 6,
    'api.Note.get' =&gt; array(
       'entity_table' =&gt; "civicrm_relationship",
       'entity_id' =&gt; "\$value.id",
    ),
  ));
  </code></pre>
  
  <p>To do that with the API explorer, use the Chain API Call button and enter the note parameters as JSON: <code>{'entity_table':'civicrm_relationship', 'entity_id':'$value.id'}</code></p>
  
  <p><a href="https://i.sstatic.net/BJeLk.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BJeLk.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-30T20:22:10.187Z
Answers.Text: Thanks a lot, updated my code accordingly that fixed it. Saved me much work.
Answers.UserDisplayName: ñull
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-30T14:17:46.460Z
Answers.LastActivityDate: 2017-11-30T14:17:46.460Z
Answers.UserDisplayName: Aidan
Body: <p>I tried this in the 4.7.25 demo but the same is valid for 4.6.33. </p>
  
  <ol>
  <li>Using the web GUI I added a test description and test note to an existing relationship </li>
  <li>With API browser I listed relationships with Relationship get to see the content of this relationship. </li>
  <li>I only see the description listed not the note. Neither does Notes appear in the "Fields to return", nor can it be chosen as a filter Parameter. </li>
  </ol>
  
  <p>Does this mean that Relationship Notes are not supported by the API? If so, how should report this? As a bug? A missing feature?</p>
  
Tags: <api><relationships>
Title: How to api access relationship notes?
ThreadText: # How to api access relationship notes?
  
  (Asked by: username_0 on 2017-11-30)
  
  I tried this in the 4.7.25 demo but the same is valid for 4.6.33.
  
  1. Using the web GUI I added a test description and test note to an existing relationship
  2. With API browser I listed relationships with Relationship get to see the content of this relationship.
  3. I only see the description listed not the note. Neither does Notes appear in the "Fields to return", nor can it be chosen as a filter Parameter.
  
  Does this mean that Relationship Notes are not supported by the API? If so, how should report this? As a bug? A missing feature?
  
  **Tags:** api, relationships
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-11-30. Score: 3 | Accepted answer
  
  The Note is stored separately, so you can get it via chaining:
  $result = civicrm_api3('Relationship', 'get', array(
    'sequential' => 1,
    'relationship_type_id' => 6,
    'api.Note.get' => array(
       'entity_table' => "civicrm_relationship",
       'entity_id' => "\$value.id",
    ),
  ));
  
  To do that with the API explorer, use the Chain API Call button and enter the note parameters as JSON: {'entity_table':'civicrm_relationship', 'entity_id':'$value.id'}
  
  > **Comments:**
  > **username_0**: Thanks a lot, updated my code accordingly that fixed it. Saved me much work.  
  
  ---
  
  