Answers.Body: <p>It seems that <strong>Fetch CiviCRM entity by property</strong> action loads anything else but ID, so, in order to get a full Relationship Type, one may want to use  another action with almost the same name has been used ( <strong>Fetch entity by id</strong>) which loads Relationship Type by its ID from any Relationship. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-17T09:22:42.500Z
Answers.LastActivityDate: 2018-07-17T09:22:42.500Z
Answers.UserDisplayName: yurg
Body: <p>Is it possible to retrieve Relationship Type Name in addition to an ID as Rules Token  in Drupal 7? It would add some value to "Create/Edit Relationship" Rules action: we could use it in emails, like "Hello mr. Dow, congrats, you're Organizaton Boss of The Company now" instead of "Mr. Dow, you are [Relationship ID] of The Company". I'd like to provide a patch for <a href="https://www.drupal.org/project/civicrm_entity" rel="nofollow noreferrer">civicrm_entity</a> but not sure where to start from. Any advise, please?  </p>
  
  <p><em>Cross-posted here: <a href="https://www.drupal.org/project/civicrm_entity/issues/2986112" rel="nofollow noreferrer">https://www.drupal.org/project/civicrm_entity/issues/2986112</a></em></p>
  
Tags: <drupal><relationships><tokens><civicrm-entity><drupal-rules>
Title: Relationship Type "name" as Drupal [Rules] Token in Civicrm Entity module
ThreadText: # Relationship Type "name" as Drupal [Rules] Token in Civicrm Entity module
  
  (Asked by: username_0 on 2018-07-16)
  
  Is it possible to retrieve Relationship Type Name in addition to an ID as Rules Token in Drupal 7? It would add some value to "Create/Edit Relationship" Rules action: we could use it in emails, like "Hello mr. Dow, congrats, you're Organizaton Boss of The Company now" instead of "Mr. Dow, you are [Relationship ID] of The Company". I'd like to provide a patch for [civicrm\_entity](https://www.drupal.org/project/civicrm_entity) but not sure where to start from. Any advise, please?
  
  *Cross-posted here: <https://www.drupal.org/project/civicrm_entity/issues/2986112>*
  
  **Tags:** drupal, relationships, tokens, civicrm-entity, drupal-rules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-07-17. Score: 0 | Accepted answer
  
  It seems that **Fetch CiviCRM entity by property** action loads anything else but ID, so, in order to get a full Relationship Type, one may want to use another action with almost the same name has been used ( **Fetch entity by id**) which loads Relationship Type by its ID from any Relationship.
  
  
  ---
  
  