Answers.Body: <p>To make this work I’m pretty sure you’ll need CiviCRM Entity module. We’ve used that to create Drupal accounts after/when a Contact purchases a Membership.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-03T11:52:43.643Z
Answers.LastActivityDate: 2018-07-03T11:52:43.643Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I would like to create a Drupal Rule to award Drupal userpoints upon a civicrm contribution being added to a member record through membership sign up.</p>
  
  <p>Ideally the points awarded are dependent on which price field (price set) is selected, ie bronze member = 10 userpoints, silver member = 20 userpoints etc</p>
  
  <p>I have been playing around with rules but can't seem get this one...any pointers would be most appreciated.</p>
  
  <p>(pasted from answer/comment)</p>
  
  <p>I thought it would be a simple rule. When a contribution is saved, of a specific type userpoints are added to the record. But no...</p>
  
  <p>So far...I created a price set with the required price options for both membership and contribution.</p>
  
  <p>Then went to Drupal Rules and made various attempts at setting up a rule to award userpoints on either signing up to a membership or making a payment. A combination of the following;</p>
  
  <p>In terms of the event I have tried; after saving a new civicrm contribution, after saving a civicrm price field, price field value etc</p>
  
  <p>Condition: I have tried Data comparison, entity is of type, list contains item etc based on price field id, price field value id</p>
  
  <p>Action; Award user points.</p>
  
  <p>Non of the above (or combinations) have given me a result when adding a contribution or membership to the user record.</p>
  
  <p>So I'm pretty much lost. Help...!!!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2018-07-03T02:48:26.073Z
Comments.Text: maybe you could clarify what you have tried so folk understand what sort of effort / attempts you have made
Comments.UserDisplayName: petednz - fuzion
Tags: <contributions><drupal-rules>
Title: Award Drupal User points after contribution
ThreadText: # Award Drupal User points after contribution
  
  (Asked by: username_0 on 2018-07-03)
  
  I would like to create a Drupal Rule to award Drupal userpoints upon a civicrm contribution being added to a member record through membership sign up.
  
  Ideally the points awarded are dependent on which price field (price set) is selected, ie bronze member = 10 userpoints, silver member = 20 userpoints etc
  
  I have been playing around with rules but can't seem get this one...any pointers would be most appreciated.
  
  (pasted from answer/comment)
  
  I thought it would be a simple rule. When a contribution is saved, of a specific type userpoints are added to the record. But no...
  
  So far...I created a price set with the required price options for both membership and contribution.
  
  Then went to Drupal Rules and made various attempts at setting up a rule to award userpoints on either signing up to a membership or making a payment. A combination of the following;
  
  In terms of the event I have tried; after saving a new civicrm contribution, after saving a civicrm price field, price field value etc
  
  Condition: I have tried Data comparison, entity is of type, list contains item etc based on price field id, price field value id
  
  Action; Award user points.
  
  Non of the above (or combinations) have given me a result when adding a contribution or membership to the user record.
  
  So I'm pretty much lost. Help...!!!
  
  **Tags:** contributions, drupal-rules
  
  > **Comments:**
  > **username_1**: maybe you could clarify what you have tried so folk understand what sort of effort / attempts you have made  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2018-07-03. Score: 1
  
  To make this work I’m pretty sure you’ll need CiviCRM Entity module. We’ve used that to create Drupal accounts after/when a Contact purchases a Membership.
  
  
  ---
  
  