Answers.Body: <p>There is an example here: <a href="https://github.com/dlobo/org.civicrm.module.cividiscount/blob/master/README.md" rel="nofollow noreferrer">https://github.com/dlobo/org.civicrm.module.cividiscount/blob/master/README.md</a></p>
  
  <p>You need to specify the entity and format the api string as JSON.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-12-02T08:39:30.640Z
Answers.LastActivityDate: 2016-12-02T08:39:30.640Z
Answers.UserDisplayName: Aidan
Body: <p>I'd like to use CiviDiscount to create an automatic discount based on a custom data field on the contact record.</p>
  
  <p>Looking at the options for the Automatic Discount, there is a field called "Specify api string for advanced filter" but when I put a value into this field and save, it isn't actually saved. I'm not sure if this is because the strong is wrong, or something else.</p>
  
  <p>I was testing with a group value as this using the same advanced value that is used when creating contact reference fields:</p>
  
  <p>action=get&amp;group=532</p>
  
Tags: <api><cividiscount>
Title: CiviDiscount "Specify api string for advanced filter"
ThreadText: # CiviDiscount "Specify api string for advanced filter"
  
  (Asked by: username_0 on 2016-12-01)
  
  I'd like to use CiviDiscount to create an automatic discount based on a custom data field on the contact record.
  
  Looking at the options for the Automatic Discount, there is a field called "Specify api string for advanced filter" but when I put a value into this field and save, it isn't actually saved. I'm not sure if this is because the strong is wrong, or something else.
  
  I was testing with a group value as this using the same advanced value that is used when creating contact reference fields:
  
  action=get&group=532
  
  **Tags:** api, cividiscount
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-12-02. Score: 2
  
  There is an example here: <https://github.com/dlobo/org.civicrm.module.cividiscount/blob/master/README.md>
  
  You need to specify the entity and format the api string as JSON.
  
  
  ---
  
  