Body: <p>I am trying to send emails (with case tokens) with CiviRules but I do not get the tokens instantiations.</p>
  <p>The environment: I use CiviRules, Compucorp CiviCase. I have activated email Api extension, Civicase tokens.  And I have the last available versions. I am on Wordpress 5.7.1. And CiviCRM 5.36.</p>
  <p>The rule: Trigger of the rule is &quot;case activity added&quot;, mails are sent to target of this activity and to a role (case coordinator) of the case. In the mails templates I have case tokens (subject and custom fields).</p>
  <p>The result: Rule is triggered, mails are actually sent to the activity target and the role. The role is therefore recognized (he gets the mail, without the tokens instantiation). Case Tokens are not resolved.
  When I send the mail (same template) manually inside the case, then the result is ok.
  Very puzzling!</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-06-09T14:09:25.853Z
Comments.Text: I'm dealing with same issue here! If you have any solution please share.
Comments.UserDisplayName: jmaureiram
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-11-07T15:19:23.250Z
Comments.Text: I have not solved the issue and I try to find a workaround with some code (api template mail). Still a struggle.
Comments.UserDisplayName: Gdn
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-01-21T09:48:19.753Z
Comments.Text: I ended up coding all the emails I wanted to automate.
Comments.UserDisplayName: Gdn
Tags: <civicase><tokens><civirules>
Title: No instantiation of Case tokens in mails sent by CiviRules
ThreadText: # No instantiation of Case tokens in mails sent by CiviRules
  
  (Asked by: username_0 on 2021-05-05)
  
  I am trying to send emails (with case tokens) with CiviRules but I do not get the tokens instantiations.
  
  The environment: I use CiviRules, Compucorp CiviCase. I have activated email Api extension, Civicase tokens. And I have the last available versions. I am on Wordpress 5.7.1. And CiviCRM 5.36.
  
  The rule: Trigger of the rule is "case activity added", mails are sent to target of this activity and to a role (case coordinator) of the case. In the mails templates I have case tokens (subject and custom fields).
  
  The result: Rule is triggered, mails are actually sent to the activity target and the role. The role is therefore recognized (he gets the mail, without the tokens instantiation). Case Tokens are not resolved.
  When I send the mail (same template) manually inside the case, then the result is ok.
  Very puzzling!
  
  **Tags:** civicase, tokens, civirules
  
  > **Comments:**
  > **username_1**: I'm dealing with same issue here! If you have any solution please share.  
  > **username_0**: I have not solved the issue and I try to find a workaround with some code (api template mail). Still a struggle.  
  > **username_0**: I ended up coding all the emails I wanted to automate.  
  
  ---
  
  ## 0 answers
  
  