Answers.Body: <p>My guess is that you're sending emails out using CiviMail or the &quot;send mail to contacts&quot; search action.  This won't pick up the membership ID, because a contact can have multiple memberships and there's no way to know which to use.</p>
  <p>I believe at present the only way (in CiviCRM core) to use the membership ID token is when using Scheduled Reminders (**Administer menu &gt;&gt; Communications &gt;&gt; Scheduled Reminders).  There's ongoing work to use the new token processor in other areas of CiviCRM, which would allow using this token elsewhere.</p>
  <p>If you only have one active membership per contact, you can install <a href="https://civicrm.org/extensions/fuzion-tokens" rel="nofollow noreferrer">Fuzion Tokens</a>, which has a &quot;latest membership ID&quot; token.  This works for contacts because it eliminates the ambiguity of which membership is meant.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-02-04T13:09:39.463Z
Answers.LastActivityDate: 2021-02-04T13:09:39.463Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>CiviCRM 5.33.2, Drupal 7.78.  Using example tokens found in the CiviCRM docs at &quot;Tokens and mail merge/Checksum for Contribution Pages for Membership Renewals&quot; to create an email to go out, I am struggling to claim a victory.  The example I am using looks something like this in my email template...</p>
  <p><a href="https://oursite.org/civicrm/contribute/transact?reset=1&amp;id=5&amp;%7Bcontact.checksum%7D&amp;cid=%7Bcontact.contact_id%7D&amp;mid=%7Bmembership.id%7D" rel="nofollow noreferrer">https://oursite.org/civicrm/contribute/transact?reset=1&amp;id=5&amp;{contact.checksum}&amp;cid={contact.contact_id}&amp;mid={membership.id}</a></p>
  <p>...but the membership.id does not get picked up when the mail goes out.  The contact.contact_id seems to grab the correct information, but the url ends with &quot;&amp;mid=&quot; with no value filled in.</p>
  <p>Help please!</p>
  
Tags: <civicontribute><civimail>
Title: Trying to get New Member, Member Renewal Contribution working
ThreadText: # Trying to get New Member, Member Renewal Contribution working
  
  (Asked by: username_0 on 2021-02-03)
  
  CiviCRM 5.33.2, Drupal 7.78. Using example tokens found in the CiviCRM docs at "Tokens and mail merge/Checksum for Contribution Pages for Membership Renewals" to create an email to go out, I am struggling to claim a victory. The example I am using looks something like this in my email template...
  
  [https://oursite.org/civicrm/contribute/transact?reset=1&id=5&{contact.checksum}&cid={contact.contact\_id}∣={membership.id}](https://oursite.org/civicrm/contribute/transact?reset=1&id=5&%7Bcontact.checksum%7D&cid=%7Bcontact.contact_id%7D&mid=%7Bmembership.id%7D)
  
  ...but the membership.id does not get picked up when the mail goes out. The contact.contact\_id seems to grab the correct information, but the url ends with "∣=" with no value filled in.
  
  Help please!
  
  **Tags:** civicontribute, civimail
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-02-04. Score: 1 | Accepted answer
  
  My guess is that you're sending emails out using CiviMail or the "send mail to contacts" search action. This won't pick up the membership ID, because a contact can have multiple memberships and there's no way to know which to use.
  
  I believe at present the only way (in CiviCRM core) to use the membership ID token is when using Scheduled Reminders (\*\*Administer menu >> Communications >> Scheduled Reminders). There's ongoing work to use the new token processor in other areas of CiviCRM, which would allow using this token elsewhere.
  
  If you only have one active membership per contact, you can install [Fuzion Tokens](https://civicrm.org/extensions/fuzion-tokens), which has a "latest membership ID" token. This works for contacts because it eliminates the ambiguity of which membership is meant.
  
  
  ---
  
  