Answers.Body: <p>Yes you can do some comparison in CiviRules using the Field Value Comparison condition. Assuming that your external ID is a custom field (in CiviCRM an external identifier has to be unique....) you might be able to work your way through. It might mean you have to develop a specific condition though.</p>
  <p>And please note that the &quot;link them together as a partner organization&quot; is an action, not a condition :-) And it will definitely be bespoke development, but possible.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-20T08:00:07.653Z
Answers.Text: thanks Erik. I managed in a different way but this was an opportunity to discover the Field Value Comparison and use it in the future.
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-19T16:04:14.873Z
Answers.LastActivityDate: 2020-08-19T16:04:14.873Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>Is there a way to compare Fields in CiviRule? I need a rule that adds a relationship based on the identity of a field. Something like &quot;compare if new contact has an external ID that already exists and then link them together as partner organizations&quot;.</p>
  <p>Is this possible?</p>
  <p>(I found this <a href="https://civicrm.stackexchange.com/questions/20323/search-comparing-two-date-fields">old post</a> back to '17)</p>
  
Tags: <civirules>
Title: Compare fields in CiviRule?
ThreadText: # Compare fields in CiviRule?
  
  (Asked by: username_0 on 2020-08-19)
  
  Is there a way to compare Fields in CiviRule? I need a rule that adds a relationship based on the identity of a field. Something like "compare if new contact has an external ID that already exists and then link them together as partner organizations".
  
  Is this possible?
  
  (I found this [old post](https://civicrm.stackexchange.com/questions/20323/search-comparing-two-date-fields) back to '17)
  
  **Tags:** civirules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-08-19. Score: 1
  
  Yes you can do some comparison in CiviRules using the Field Value Comparison condition. Assuming that your external ID is a custom field (in CiviCRM an external identifier has to be unique....) you might be able to work your way through. It might mean you have to develop a specific condition though.
  
  And please note that the "link them together as a partner organization" is an action, not a condition :-) And it will definitely be bespoke development, but possible.
  
  > **Comments:**
  > **username_0**: thanks Erik. I managed in a different way but this was an opportunity to discover the Field Value Comparison and use it in the future.  
  
  ---
  
  