We're intending to use an event's participant ID as a pseudo-registration code, i.e. a quick way for us to correlate who shows up to events. Because of that, we are asking our event participants to know their participant ID when they arrive.

So far, we've adapted the ThankYou.tpl event registration confirmation page to show the user their participant ID by adding the following:

<p><strong>{ts 1=$participantIDs.0}Your registration number is: %1{/ts}</strong></p>

and we've adjusted the template for the event registration email to show $participantID as well (inside Mailings -> Message Templates -> System Workflow Messages -> Events - Registration Confirmation and Receipt (on-line)).

Now, we'd like to add that value on to a reminder message. We've set up the reminder template under Mailings -> Message Templates -> User driven messages and are able to get the reminders to send correctly, but it's not clear how to get the participant ID to show up. It's certainly not listed within the available tokens.

Is there a way to add a participant id to a template there? Can I link participant_id to the available tokens in some way?

  • was there a reason giving them their Contact ID would not have worked?
    – petednz - fuzion
    Mar 25, 2021 at 22:10

1 Answer 1


Unless writing an extension implementing token processor its not possible to fetch the participant id in reminders.

If you familiar with smarty and the contact will have only one participant for a event than you can try below snippet in your reminder message template

{capture assign=eventID}{event.event_id}{/capture}
{capture assign=contactId}{contact.contact_id}{/capture}

{crmAPI var='result' entity='Participant' action='getvalue' sequential=0 return="id" event_id=$eventID contact_id=$contactId}
{foreach from=$result.values item=participant}
 Participant Id - {$participant.id}
  • So I tried something akin to that, not sure I included sequential=0, however... when I put that in the template editor it just rendered that code. Is there a place in the filesystem where these templates get stored? Or would I potentially need to hop into the the database and edit where the template it stored? Any thoughts are greatly appreciated!!! Mar 26, 2021 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.