Body: <p>We tried to follow <a href="https://civicrm.stackexchange.com/a/10907/7846">https://civicrm.stackexchange.com/a/10907/7846</a> from Noah Miller
  to use a custom event token in a scheduled reminder without success.
  We dumped all the variables used by the  hook civicrm_tokenValues ($values, $cids, $job, $tokens and $context) but we could not get the event_id even if Noah says it is available.</p>
  <pre><code>$event_id = CRM_Utils_Array::value('event.event_id', $values)
  </code></pre>
  <p>stays null.</p>
  <p>So is it possible to use a custom event token in a scheduled reminder and if yes, how do we get the $event_id ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-16T16:40:21.483Z
Comments.Text: What entity are you using for the scheduled reminder?
Comments.UserDisplayName: RebeccaTregenna
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-17T13:57:46.363Z
Comments.Text: For my test, I tried "Event Name" but in production, it will be event type...
Comments.UserDisplayName: cfab
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-12-17T14:17:40.553Z
Comments.Text: Event type is not working either...
Comments.UserDisplayName: cfab
Tags: <civievent><tokens><scheduled-reminders>
Title: Custom token for Events in scheduled reminder s
ThreadText: # Custom token for Events in scheduled reminder s
  
  (Asked by: username_0 on 2020-12-15)
  
  We tried to follow https://civicrm.stackexchange.com/a/10907/7846 from Noah Miller
  to use a custom event token in a scheduled reminder without success.
  We dumped all the variables used by the  hook civicrm_tokenValues ($values, $cids, $job, $tokens and $context) but we could not get the event_id even if Noah says it is available.
  $event_id = CRM_Utils_Array::value('event.event_id', $values)
  
  stays null.
  So is it possible to use a custom event token in a scheduled reminder and if yes, how do we get the $event_id ?
  
  **Tags:** civievent, tokens, scheduled-reminders
  
  > **Comments:**
  > **username_1**: What entity are you using for the scheduled reminder?  
  > **username_0**: For my test, I tried "Event Name" but in production, it will be event type...  
  > **username_0**: Event type is not working either...  
  
  ---
  
  ## 0 answers
  
  