Answers.Body: <p>You can use smarty to get contact details of the target of the activity.</p>
  <p><a href="https://civicrm.stackexchange.com/a/31516/8748">https://civicrm.stackexchange.com/a/31516/8748</a></p>
  <p>snippet:</p>
  <pre><code>{if $contact.activity_id}
    {crmAPI var='activityResult' entity='Activity' action='getsingle' return=&quot;target_contact_id&quot; id=$contact.activity_id}
    {crmAPI var='contactResult' entity='Contact' action='getsingle' return=&quot;phone,email&quot; id=$activityResult.target_contact_id}
    &lt;tr&gt;
      &lt;td&gt;Phone Number&lt;/td&gt;
      &lt;td&gt;{$contactResult.phone}&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Email&lt;/td&gt;
      &lt;td&gt;{$contactResult.email}&lt;/td&gt;
    &lt;/tr&gt;
  {/if}
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-28T10:25:06.060Z
Answers.Text: simple and efficient. Thanks Anatole
Answers.UserDisplayName: Guillaume Sorel
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-04-28T08:46:50.907Z
Answers.LastActivityDate: 2021-04-28T08:46:50.907Z
Answers.UserDisplayName: Anatole Allain
Answers.Body: <p>This extension could possibly help - <a href="https://civicrm.org/extensions/activity-tokens" rel="nofollow noreferrer">https://civicrm.org/extensions/activity-tokens</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-03-05T12:31:02.350Z
Answers.LastActivityDate: 2021-03-05T12:31:02.350Z
Answers.UserDisplayName: Anil
Body: <p>I want to send a reminder to the assignee of an activity and I want to add in the message the phone number (preventing the assignee to log into CRM and spare clicks).</p>
  <p>I found these tokens from <a href="https://github.com/civicrm/civicrm-core/blob/master/CRM/Core/SelectValues.php#L486" rel="nofollow noreferrer">here</a>:</p>
  <pre><code>{activity.activity_id}
  {activity.subject}
  {activity.details}
  {activity.activity_date_time}
  </code></pre>
  <p>and they work properly with CiviRules but they are not enough. It would be great to have extra tokens with e-mail, phone number and a few others.</p>
  <p>Are they available right now or could they be available? If needed we could write an extension.</p>
  
Tags: <activities><tokens>
Title: Which tokens are available for activity?
ThreadText: # Which tokens are available for activity?
  
  (Asked by: username_0 on 2021-03-05)
  
  I want to send a reminder to the assignee of an activity and I want to add in the message the phone number (preventing the assignee to log into CRM and spare clicks).
  I found these tokens from here:
  {activity.activity_id}
  {activity.subject}
  {activity.details}
  {activity.activity_date_time}
  
  and they work properly with CiviRules but they are not enough. It would be great to have extra tokens with e-mail, phone number and a few others.
  Are they available right now or could they be available? If needed we could write an extension.
  
  **Tags:** activities, tokens
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2021-04-28. Score: 2 | Accepted answer
  
  You can use smarty to get contact details of the target of the activity.
  https://civicrm.stackexchange.com/a/31516/8748
  snippet:
  {if $contact.activity_id}
    {crmAPI var='activityResult' entity='Activity' action='getsingle' return="target_contact_id" id=$contact.activity_id}
    {crmAPI var='contactResult' entity='Contact' action='getsingle' return="phone,email" id=$activityResult.target_contact_id}
    
      Phone Number
      {$contactResult.phone}
    
    
      Email
      {$contactResult.email}
    
  {/if}
  
  > **Comments:**
  > **username_0**: simple and efficient. Thanks Anatole  
  
  ---
  
  ### Answer by username_2 on 2021-03-05. Score: 2
  
  This extension could possibly help - <https://civicrm.org/extensions/activity-tokens>
  
  
  ---
  
  