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.
205
questions
2
votes
1
answer
212
views
Outdated tokens in use in message template
I have the following message after upgrading Civicrm to 5.66
"Outdated tokens in use
You are using tokens that have been removed or deprecated.
Please review your event_offline_receipt message ...
1
vote
1
answer
26
views
Webform submission token not displaying in confirmation
I have converted a simple create contact form from Drupal 7 to Drupal 9.
In the Drupal 7 form, the confirmation would display a button with a link to the newly created contact like so:
<p><...
0
votes
1
answer
39
views
Find or create token for field on related contact?
I administer a CiviCRM site for an education NGO.
I'd like to be able to customize emails to let people know the school board and region we think they are in, so they're certain which event they ...
0
votes
0
answers
10
views
Token {contact.address_primary.street_number} - how to get it working
Have tried the {contact.address_primary.street_number} token for addresses (after discovering "Street Address Parsing" does not work for custom locales, see: 1, 2, 3 ). However it doesn't ...
0
votes
0
answers
16
views
CiviRules, "Relationship change" trigger: how to retrieve the relationship type to show when I send an email
I created a rule triggered when "Relationship is changed". I'd like to send an email stating the relationship type. For example:
The relationship {relationship_type_id:label} between {...
2
votes
1
answer
28
views
$EventID is string, not int
I'm having issues with the scheduled reminder function. I have set up an email to be sent out 96 hours before the event start date. When configuring the reminders, the system throws errors in the cron ...
0
votes
1
answer
41
views
Outdated tokens in use
we have the following in the CiviCRM System Status, we tried to solve it with no luck, is it related to some template some where? Can you please help?
Please review your contribution_invoice_receipt ...
4
votes
0
answers
44
views
Calculating the difference between current date and case start date on searchkit
I am currently trying to find the number of days between the current date and the case start date using searchkit. I have tried the "Date between two dates" function on Searchkit, however it ...
0
votes
1
answer
35
views
CiviCRM Webforms - Webform submission value shows the field id instead of the value of the id
I have a problem with one of the fields in a notification email for CiviCRM Webforms.
I’m using a Drupal Webform which includes CiviCRM contact fields. These fields include a number of fields that ...
0
votes
1
answer
19
views
Is there a setting for Drupal Webform displaying raw token when they have no data to display
I am converting a Drupal 7 webform that uses two tokens in a text field's default data field to display data passed in via the URL e.g.
/myform?civicaseID=12345&sessionID=6789&cid1=9876&...
1
vote
1
answer
21
views
Providing Case Link on Message Template
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 ...
1
vote
1
answer
22
views
Are their tokens for expired memberships?
We are sending emails to our lapsed members, and would like to include additional data about their memberships. But all the tokens available seem to refer to "current memberships" (e.g. &...
1
vote
1
answer
25
views
Token for contribution.note field in message templates
I have reviewed past posts on this topic, but I'm not a coder so I'm hoping someone can make this straight forward for me. I.e. what code do I need to use, where do I put that code, etc.
We'd like to ...
2
votes
0
answers
41
views
Is there a way to send an opt-in reminder (with a subscribe link to click) to people whose group status is pending?
I have the same problem that was described here in 2017: How can I chase up mailing list subscribers who don't confirm their opt-in?
I am wondering if anyone has found a solution. To summarize the ...
0
votes
1
answer
52
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 ...
0
votes
1
answer
24
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
19
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 "...
0
votes
1
answer
31
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 ...
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
vote
2
answers
22
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
27
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
36
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 ...
3
votes
2
answers
60
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 "...
2
votes
1
answer
33
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 ...
1
vote
0
answers
27
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
votes
1
answer
68
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 ...
1
vote
0
answers
22
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 ...
4
votes
4
answers
169
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
21
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
145
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
1
vote
1
answer
54
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
164
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?
...
2
votes
1
answer
148
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
53
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
35
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 ...
2
votes
1
answer
45
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
50
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
88
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 ...
1
vote
1
answer
19
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 ...
1
vote
1
answer
45
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
31
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....
2
votes
1
answer
46
views
merge fields list in search kit
how to get ID of a relationship in Search Kit ?
2
votes
0
answers
38
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, ...
0
votes
2
answers
75
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
44
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
76
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
30
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?...
4
votes
1
answer
96
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?
0
votes
0
answers
53
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 ...
1
vote
1
answer
39
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
$...