Answers.Body: <p>This is a bit tricky to answer, because there are three different token processors in CiviCRM.  The Smarty processor, the legacy token processor, and the new <code>Civi\TokenProcessor</code> processor.</p>
  
  <h3>Legacy Processor (aka <code>CRM_Utils_Token</code>)</h3>
  
  <p>For most messages - quick emails, PDFs, etc. - you're using the legacy token processor.  You can find most of these tokens in <a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/SelectValues.php#L486" rel="noreferrer">CRM_Core_SelectValues</a>.  Note that contacts will provide all exportable fields as tokens, minus the ones explicitly excluded in that file.</p>
  
  <p>You can also add tokens via extensions, so this isn't a complete list.  Note that with the legacy token processor, you can only add new contact tokens.</p>
  
  <h3>TokenProcessor</h3>
  
  <p>Currently, TokenProcessor is only available with Scheduled Reminders and Flexmailer.  Work is currently underway to bring TokenProcessor support to the rest of CiviCRM, which will allow you to use more fields, and define custom tokens that are based on contributions/activities/etc.  In the next month or so, I'd expect to see support for TokenProcessor for emails sent with Email API (i.e. CiviRules), along with PDFs/emails generated from activities, with contribution PDFs/emails not far behind.</p>
  
  <h3>Smarty</h3>
  
  <p>Smarty tokens are available only in System Workflow messages, and the tokens vary on a per-template basis.  You can also enable Smarty token processing if you're not using Flexmailer and/or Mosaico by adding <code>define( 'CIVICRM_MAIL_SMARTY', 1 );</code> to your <code>civicrm.settings.php</code>.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-23T23:07:26.247Z
Answers.Text: That is great information to know - I had figured this was something in flux. I am looking for scheduled reminders, specifically the membership stuff, so will dig into the TokenProcessor
Answers.UserDisplayName: Corey Burger
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-24T11:12:52.370Z
Answers.Text: Small update: the new TokenProcessor is used for PDF's from an Activity Search
Answers.UserDisplayName: Aidan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-23T20:08:46.177Z
Answers.LastActivityDate: 2020-02-23T20:41:47.010Z
Answers.LastEditDate: 2020-02-23T20:41:47.010Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>Worth noting the the <a href="https://civicrm.org/extensions/nzcofuzioncivitoken" rel="nofollow noreferrer">Extended tokens extension</a> offers some other ones</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-17T10:28:15.737Z
Answers.Text: The provided link leads to "page not found".
Answers.UserDisplayName: Pierre François
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-17T22:35:24.593Z
Answers.Text: Try https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-24T07:43:56.037Z
Answers.LastActivityDate: 2020-02-24T07:43:56.037Z
Answers.UserDisplayName: petednz - fuzion
Answers.Body: <p>There's the list in the user guide: <a href="https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#available-tokens" rel="nofollow noreferrer">https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#available-tokens</a></p>
  
  <p>It should be mostly complete.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-23T23:06:13.903Z
Answers.Text: Thanks, but that seems to be missing the membership. tokens that are used in the TokenProcessor
Answers.UserDisplayName: Corey Burger
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-17T10:27:19.310Z
Answers.Text: I am also missing the contribution tokens in that list.
Answers.UserDisplayName: Pierre François
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-02-23T19:16:20.167Z
Answers.LastActivityDate: 2020-02-23T19:16:20.167Z
Answers.UserDisplayName: Demerit
Body: <p>Is there a list of tokens that are available anywhere? Is it stored in some db table I haven't seen?</p>
  
  <p>CiviCRM 5.20.2 on Wordpress</p>
  
Tags: <tokens>
Title: Is there a list of tokens anywhere?
ThreadText: # Is there a list of tokens anywhere?
  
  (Asked by: username_0 on 2020-02-23)
  
  Is there a list of tokens that are available anywhere? Is it stored in some db table I haven't seen?
  
  CiviCRM 5.20.2 on Wordpress
  
  **Tags:** tokens
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2020-02-23. Score: 6
  
  This is a bit tricky to answer, because there are three different token processors in CiviCRM. The Smarty processor, the legacy token processor, and the new `Civi\TokenProcessor` processor.
  
  ### Legacy Processor (aka `CRM_Utils_Token`)
  
  For most messages - quick emails, PDFs, etc. - you're using the legacy token processor. You can find most of these tokens in [CRM\_Core\_SelectValues](https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/SelectValues.php#L486). Note that contacts will provide all exportable fields as tokens, minus the ones explicitly excluded in that file.
  
  You can also add tokens via extensions, so this isn't a complete list. Note that with the legacy token processor, you can only add new contact tokens.
  
  ### TokenProcessor
  
  Currently, TokenProcessor is only available with Scheduled Reminders and Flexmailer. Work is currently underway to bring TokenProcessor support to the rest of CiviCRM, which will allow you to use more fields, and define custom tokens that are based on contributions/activities/etc. In the next month or so, I'd expect to see support for TokenProcessor for emails sent with Email API (i.e. CiviRules), along with PDFs/emails generated from activities, with contribution PDFs/emails not far behind.
  
  ### Smarty
  
  Smarty tokens are available only in System Workflow messages, and the tokens vary on a per-template basis. You can also enable Smarty token processing if you're not using Flexmailer and/or Mosaico by adding `define( 'CIVICRM_MAIL_SMARTY', 1 );` to your `civicrm.settings.php`.
  
  > **Comments:**
  > **username_0**: That is great information to know - I had figured this was something in flux. I am looking for scheduled reminders, specifically the membership stuff, so will dig into the TokenProcessor  
  > **username_2**: Small update: the new TokenProcessor is used for PDF's from an Activity Search  
  
  ---
  
  ### Answer by username_3 on 2020-02-24. Score: 1
  
  Worth noting the the [Extended tokens extension](https://civicrm.org/extensions/nzcofuzioncivitoken) offers some other ones
  
  > **Comments:**
  > **username_4**: The provided link leads to "page not found".  
  > **username_3**: Try https://github.com/eileenmcnaughton/nz.co.username_3.civitoken  
  
  ---
  
  ### Answer by username_5 on 2020-02-23. Score: 1
  
  There's the list in the user guide: <https://docs.civicrm.org/user/en/latest/common-workflows/tokens-and-mail-merge/#available-tokens>
  
  It should be mostly complete.
  
  > **Comments:**
  > **username_0**: Thanks, but that seems to be missing the membership. tokens that are used in the TokenProcessor  
  > **username_4**: I am also missing the contribution tokens in that list.  
  
  ---
  
  