Questions tagged [tokens]

Equivalent of mail merge fields. Facilitates to insert information from the database into an email or a letter that is different for every recipient.

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

tokens not working in CiviMail automated message subject lines

I have the same problem as in this post: How can I add Subscribe Message subject line token? But that post has no resolution. Users can sign up to as many as 5 mailing groups on our form, so can ...
  • 529
0 votes
0 answers
13 views

How to override token {action.resubscribe} for Mailings

I would need to override the value of the token {action.resubscribe} in the automated mailing message template when the contact is sent the unsubscribe confirmation email, as it doesn't contain the ...
0 votes
0 answers
16 views

Latest contribution token pulling data from previous contributions

I have a Civi rule that sends a notification email to staff for donations over $1,000. I include the tokens "latest contribution amount", "latest contribution date", and "...
  • 120
0 votes
1 answer
16 views

Send scheduled mailing fails due to deprecated function CRM_Utils_Token::getTokenDetails

My send scheduled reminder cron job has been failing consistently. The log file shows about a dozen of these errors every time send scheduled reminders fails: [warning] Deprecated function ...
  • 84
2 votes
2 answers
25 views

Tokens in a Reports Title and Format section?

Is it possible to use tokens in Report Title/Header/Footer? Gave it a quick try with {contact.first_name} and failed.
  • 1,555
1 vote
2 answers
16 views

Fuzion token {latestcurrentmembership.end_date} blank in scheduled reminder based on membership - works in mailings. Alternative?

We use the Fuzion Tokens extension and it's great! We have a membership expiration alert message template using {latestcurrentmembership.end_date} and it works perfectly well in mailings. However, in ...
0 votes
1 answer
15 views

contact.id token not working in email

I used to have no problem having a link in an email like ...signup.php/reply={contact.id} Today the token does not fill with the recipient's id. The same email has Dear {contact.first_name}, that ...
1 vote
1 answer
34 views

Last contribution tokens

I am trying to create a rule that will notify our CEO of donations over a certain amount. In the message template I want to include info about the donation. I'm choosing the tokens for "latest ...
  • 120
2 votes
1 answer
33 views

Using a Token to Pull Only the Year from a Date

I'm trying to set up membership renewal reminder letters, and instead of including the entire date that the member joined, we'd like it to just be the year. I have a token for "...
  • 21
2 votes
1 answer
29 views

Can I add an organisation's finance contact to the invoice

We have edited the workflow invoice template and have the name and address of the member organisation as the address block and would like to add the Member Organisation's Finance Contact display name ...
  • 151
1 vote
0 answers
25 views

Activity Tokens in SMS via Civi Rules

I'm trying to set up sms reminders for activities. And am trying to configure this with CiviRules. For example, a client has an initial assessment with our youth service. I want to send a reminder ...
  • 2,011
2 votes
1 answer
60 views

Best way to fix the 'Dear [display_name} problem

When supporters are emailed it would be more personal to start 'Dear Joanna Smith' rather than 'Dear Supporter'. Of course, sometimes we don't have a first name, and sometimes only an initial so ...
  • 4,515
1 vote
0 answers
14 views

Tokens containing HTML have the HTML escaped

I want to add the event description token to an event scheduled reminder. The event description is a rich text field. When I add the token to the reminder and send it out, all the HTML from the token ...
0 votes
0 answers
12 views

File custom field as token in Receipt Message

We know it is possible to get a file uri via api like this: $result = civicrm_api3('Contact', 'get', [ 'return' => ["custom_84"], 'custom_84' => ['IS NOT NULL' => 1], 'api....
  • 1,555
4 votes
4 answers
98 views

How to create a "token" from a custom field

I'm trying to create a token from a custom fields, is there a way to do this? My specific use case is that I want to have a custom field under Events that includes the Zoom event information (URL and ...
0 votes
1 answer
19 views

Error when editing any contact: Malformed token parameters ({contact.first_name|truncate:1:"":true})

Running latest CiviCRM on latest Drupal 7, php 7.4.28. This error was reported by one of our volunteers when trying to edit a contact yesterday. Logged in as Admin I can replicate on any contact, and ...
1 vote
1 answer
91 views

Date format for token {domain.now}

How can I configure the token {domain.now} to use the short date format? Currently it uses the "Complete Date and Time" format. The site is running 5.45.3. on Drupal 9
  • 345
1 vote
1 answer
41 views

Can I use tokens created with hook_civicrm_tokens to alter fields in SearchKit Displays?

I've written a SearchKit search with Contacts and Related Contacts, and wish to combine the names into one field on output. I know I can use the Combine Text field transformation to simply add the ...
3 votes
1 answer
160 views

What link/token would work in a Scheduled (renewal) Reminder that would allow a person with an existing recurring payment to click and cancel it

Scenario - scheduled reminders for auto-renew membership goes out It notifies folk that 'hey your membership will auto renew in xx days' but what if we want to include a link so they can cancel it? ...
  • 27.6k
1 vote
1 answer
96 views

Message template token no longer available / relevant

After updating to Civi version 5.45.1 we have this notice: You are using tokens that have been removed or deprecated. Please review your contribution_online_receipt message template and remove ...
0 votes
1 answer
42 views

Out of memory and Civi errors relating to templates following upgrade from 5.35.2 to 5.45.1

Wordpress 5.8.3, shared server from SiteGround. We decided to upgrade from CiviCRM 5.35.2 to 5.45.1 in the hope of resolving an issue preventing supporter registration on website. I'm now stuck on ...
3 votes
1 answer
28 views

Modify "Thank-you Screen" fields to support tokens?

I would like to display some data attached to an event registrant on the Thank-you page. Is there a way to enable Token parsing on the Thank-you Title, Introductory Text, and Footer Text? Example: Hey ...
  • 387
2 votes
1 answer
41 views

Can one include tokens within tokens in a Message Template?

I have written a custom Token which contains several standard paragraphs on how to make membership payments to our organisation, which will be included in several Message Templates related to email ...
1 vote
2 answers
48 views

Tokens in Mass Mail Attachements

How can I use tokens in Mass Mail attachements? For example, I would like to add .docx or .pdf as attachement that already contains tokens in text and then let CiviCRM replace them for each contact ...
4 votes
1 answer
76 views

Why aren't my tokens working in mosaico?

I have created a custom Drupal 8/9 module that defines hook_civicrm_tokens and hook_civicrm_tokenValues to provide tokens to CiviCRM. It works when not using mosaico, but fails (the tokens are ...
  • 6,430
1 vote
1 answer
18 views

How to not show label, when token value is empty?

I have a set of tokens that sometimes has values in them, and sometimes not. How can I send an email where labels only are visible when value is filled? Example: I want to send an event registration ...
  • 2,241
1 vote
1 answer
37 views

Tokens - Need Values, not Labels

Going round in circles on something and wonder if anyone can help. Civi 5.40.1 on Wordpress. We have a profile which allows the user to enter data about themselves into custom fields. E.g., from a ...
0 votes
1 answer
29 views

Checksum token in system email "Memberships - Receipt (on-line)" causes critical error

When using a checksum token in a receipt email like this: http://example.org/?page=CiviCRM&q=civicrm/contribute/transact&reset=1&id=IDNUMBER&{contact.checksum}&cid={contact....
  • 387
2 votes
1 answer
44 views

merge fields list in search kit

how to get ID of a relationship in Search Kit ?
2 votes
0 answers
36 views

No instantiation of Case tokens in mails sent by CiviRules

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, ...
  • 21
0 votes
2 answers
64 views

How to send Participant-Specific information via CiviMail

We are running a hybrid event where some participants are virtual via Zoom and some participants attend in person. We need to send out reminders and the zoom link to virtual attendees, and also want ...
2 votes
1 answer
40 views

Is it possible to create a token in hook_civicrm_tokenValues that retrieves the name of the creator of a non-mass-mailing?

One of our staff team has recently requested a new token be added to civi mailings that allows the name of the sender of the email to be automatically added (for use in the signature at the foot of ...
1 vote
2 answers
66 views

Which tokens are available for activity?

I want to send a reminder to the assignee of an activity and I want to add in the message the phone number (preventing the assignee to log into CRM and spare clicks). I found these tokens from here: {...
2 votes
0 answers
28 views

CiviMail tokens to share the public mailing URL on social media

As a site admin using CiviMail/Mosaico, is there an easy way to add links to share the mailing content on social media? I am guessing I could write HTML using a link such as: http://twitter.com/share?...
  • 3,271
4 votes
1 answer
80 views

Checksum expiration

How long is a URL-link using a checksum token from CiviCRM valid? And can you send multiple emails using same token? When does the expiration clock start ticking?
  • 2,241
0 votes
0 answers
50 views

Custom token for Events in scheduled reminder s

We tried to follow https://civicrm.stackexchange.com/a/10907/7846 from Noah Miller to use a custom event token in a scheduled reminder without success. We dumped all the variables used by the hook ...
  • 21
1 vote
1 answer
36 views

Memberships - Receipt (on-line) template: how to check if it is a subscription or a renew

I would customize the template Memberships - Receipt (on-line) in order to give a different message if it is a signup or a renewal. I try a lot of tokens, but no ones works: $receiptType $...
  • 121
2 votes
1 answer
35 views

How can I get at the Email address of a Contact Reference? CiviMail and Tokens question!

It's straight forward to insert the Name of a Contact Reference (custom field) in CiviMail using Tokens. Does anyone know of a way to get at the Email address belonging to that Contact Reference?
2 votes
1 answer
47 views

How to provide custom token for subscription related automated messages?

I'm trying to privide a token for mailing related automated messages. I followed the instructions about hook_civicrm_tokens and hook_civicrm_tokenValues but it does only work for "CiviMail" ...
1 vote
0 answers
63 views

Warning: array_search() expects parameter 2 to be array, null given in CRM_Contribute_BAO_Contribution::getContributionTokenValues()

Steps to reproduce: Search -> Find contribution Search for a contribution Choose "Email - send now" as action Choose an email template with a token. In our case we just use the token &...
1 vote
0 answers
46 views

Forward to Friend broken; customizing the form

I just switched a CiviCRM installation over to Amazon AWS's SES email service, which will ONLY send our from verified domain email addresses. The CiviMail forward-to-a-friend link form assumes the ...
  • 373
1 vote
0 answers
29 views

Employer ID token not working with Mosaico

I'm composing an email with Mosaico that requires the following tokens: {contact.display_name} {contact.contact_id} {contact.current_employer} {contact.current_employer_id} The first three tokens work ...
0 votes
1 answer
36 views

How can I link E-Mail greetings/Postal greetings to "formal" or "informal" communication style?

is there a way to link a defined E-Mail greeting or Postal greeting if the communication style "formal" or "informal" is selected? I thought it could work with CiviRules but we don'...
user avatar
0 votes
2 answers
74 views

Tokens missing in Webform Email Settings (and thus not populated in Emails received) (after upgrading)

Running Drupal 7.69 / CiviCRM 5.25.0 / PHP 7.3 After upgrading some Modules : Webform, Views Bulk Operations, i18n, and Content Access, Emails Tokens ([submission:completed_date:long], [submission:...
1 vote
1 answer
29 views

Fields from CiviGrant as tokens?

What is the best way of getting fields from grants available as tokens for mail/PDF-merge? No native tokens? Not available in form processor extension?
  • 2,241
0 votes
0 answers
21 views

Clicking a tokenized link for another contact leads to your activities being recorded as belonging to that user

This seems like a weird case that probably doesn't come up much, but it does seem to indicate something odd is happening. If you are logged and click on a link for a Drupal webform with contact and ...
  • 2,463
4 votes
0 answers
36 views

How can I add Subscribe Message subject line token?

When users sign up to several mailing lists via our webform, they receive automatic 'Subscribe Message' confirmation emails for double opt-in. If they have attempted to sign up to two groups at the ...
2 votes
1 answer
38 views

Token for Contribution custom field outputting "Array" for a Multi-Select custom field

I created a message template for an email that will be sent to our accounting when an online contribution is made - it has a table and I've inputted tokens that will put in data for the contribution. ...
0 votes
0 answers
63 views

Contact name Tokens for multiple relationships

I have a contact (individual) owner of several organization. He will pay the membership for all organizations. I need to send a contribution receipt showing that John Doe paid 100€ for ...
1 vote
1 answer
76 views

use of "Dear you" extension when there is no first/last name only email and custom name field

What if I don't have First name/last name but only a custom field called "full name" How to display that field or if thats missing display: "Supporter" instead?
  • 75