Body: <p>Based on the results of this question (<a href="https://civicrm.stackexchange.com/questions/24232/membership-renewal-reminders-not-sending-for-upgraded-memberships/24233#24233">Membership Renewal Reminders not Sending for Upgraded Memberships</a>) we switched our Scheduled Reminders to be activity based. </p>
  
  <p>Now, the {membership.type} token shows up blank in the scheduled emails. How can we fix this?</p>
  
  <p>We tried using <a href="https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken" rel="nofollow noreferrer">https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken</a> but the token for 'Latest Membership Type' seems to pick a membership based on the end date, and because we have two memberships present on some records (connected to two orgs), this will not always produce the correct token.</p>
  
  <p>Thanks for your help!</p>
  
  <p>CiviCRM 4.7.30 / Drupal 7</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-11T19:45:23.563Z
Comments.Text: My understanding is the core token for membership will only get filled when it is in a 'membership context' and hence won't work in the Activity context. Shame our civitoken extension doesn't work for your use case. I expect this will require some development and hopefully someone points you in the right direction
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-11T19:48:14.280Z
Comments.Text: petednz would it be possible to modify https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken/blob/master/tokens/latestcurrentmembership.inc to exclude one membership type from the 'latest' list? if so, it would work
Comments.UserDisplayName: Zachary
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-04-11T19:50:40.253Z
Comments.Text: sounds reasonable to me at a conceptual (non-code) level for your specific situation. Sing out if you want some paid support to achieve this if you need and can't get help here or on Chat.
Comments.UserDisplayName: petednz - fuzion
Tags: <tokens><scheduled-reminders>
Title: {membership.type} token not being filled out/sent in activity based scheduled reminders
ThreadText: # {membership.type} token not being filled out/sent in activity based scheduled reminders
  
  (Asked by: username_0 on 2018-04-11)
  
  Based on the results of this question ([Membership Renewal Reminders not Sending for Upgraded Memberships](https://civicrm.stackexchange.com/questions/24232/membership-renewal-reminders-not-sending-for-upgraded-memberships/24233#24233)) we switched our Scheduled Reminders to be activity based.
  
  Now, the {membership.type} token shows up blank in the scheduled emails. How can we fix this?
  
  We tried using <https://github.com/eileenmcnaughton/nz.co.username_1.civitoken> but the token for 'Latest Membership Type' seems to pick a membership based on the end date, and because we have two memberships present on some records (connected to two orgs), this will not always produce the correct token.
  
  Thanks for your help!
  
  CiviCRM 4.7.30 / Drupal 7
  
  **Tags:** tokens, scheduled-reminders
  
  > **Comments:**
  > **username_1**: My understanding is the core token for membership will only get filled when it is in a 'membership context' and hence won't work in the Activity context. Shame our civitoken extension doesn't work for your use case. I expect this will require some development and hopefully someone points you in the right direction  
  > **username_0**: username_1 would it be possible to modify https://github.com/eileenmcnaughton/nz.co.username_1.civitoken/blob/master/tokens/latestcurrentmembership.inc to exclude one membership type from the 'latest' list? if so, it would work  
  > **username_1**: sounds reasonable to me at a conceptual (non-code) level for your specific situation. Sing out if you want some paid support to achieve this if you need and can't get help here or on Chat.  
  
  ---
  
  ## 0 answers
  
  