Answers.Body: <p>You're missing the <code>cid=</code> in the url. It looks like you have the casetokens extension installed - you could try <code>{case_roles.client_contact_id}</code> or maybe <code>{case_roles.client_id}</code>?</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-03T15:12:49.117Z
Answers.Text: Thank you. This works perfectly!
Answers.UserDisplayName: Cas
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-07-02T13:08:21.713Z
Answers.LastActivityDate: 2023-07-02T13:08:21.713Z
Answers.UserDisplayName: Demerit
Body: <p>Upon assigning a role on a case, I wish to be able to send an email to the role. The email should include a link to the case. However, I am having trouble identifying what should the link be. The link that I am inputting is usually redirecting me to the wrong case. Could someone help me with this issue that I am facing? The following is a screenshot of the url that I have tried:
  <a href="https://i.sstatic.net/Wkhhf.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Wkhhf.png" alt="Message Template" /></a></p>
  
Tags: <civicase><tokens><message-templates>
Title: Providing Case Link on Message Template
ThreadText: # Providing Case Link on Message Template
  
  (Asked by: username_0 on 2023-07-02)
  
  Upon assigning a role on a case, I wish to be able to send an email to the role. The email should include a link to the case. However, I am having trouble identifying what should the link be. The link that I am inputting is usually redirecting me to the wrong case. Could someone help me with this issue that I am facing? The following is a screenshot of the url that I have tried:
  [![Message Template](https://i.sstatic.net/Wkhhf.png)](https://i.sstatic.net/Wkhhf.png)
  
  **Tags:** civicase, tokens, message-templates
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2023-07-02. Score: 0 | Accepted answer
  
  You're missing the `cid=` in the url. It looks like you have the casetokens extension installed - you could try `{case_roles.client_contact_id}` or maybe `{case_roles.client_id}`?
  
  > **Comments:**
  > **username_0**: Thank you. This works perfectly!  
  
  ---
  
  