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
1
vote
1answer
14 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
1answer
26 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
1answer
19 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
1answer
31 views

merge fields list in search kit

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

How do I remove the time from the token {contribution.receive_date}

It seems that after updating to CiviCRM 5.36.1 the token {contribution.receive_date} is now showing the time along with the date so that the format looks like this: February 8th, 2021 3:58 PM Is there ...
2
votes
0answers
25 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
1answer
30 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
1answer
21 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
2answers
40 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
0answers
25 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
votes
1answer
43 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
0answers
40 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
1answer
28 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 $...
2
votes
1answer
24 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?
0
votes
0answers
24 views

TokenProcessor container is created but functions aren't called on event dispatch

I'm following the example in the docs. But having figuring out why the registered functions aren't getting called. Here's my code (well part of it anyway): function example_civicrm_container($...
2
votes
1answer
28 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" ...
0
votes
0answers
17 views

tokens in email invoice personal message

When emailing invoices, there is a message field described as "If you would like to add personal message to email please add it here." How can I use tokens in that message. It is essentially ...
1
vote
0answers
23 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
0answers
44 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 ...
1
vote
0answers
25 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
1answer
26 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'...
0
votes
2answers
43 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
1answer
22 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?
0
votes
0answers
20 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 ...
4
votes
0answers
23 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
1answer
32 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
0answers
48 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
1answer
54 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?
5
votes
2answers
48 views

Listing Groups in a mail template

I'm creating an email template to be used to confirm a contact's membership status, and I would like to include a list of the Groups (representing Committees in our case) that the contact belongs to. ...
2
votes
2answers
58 views

Sending organisation custom tokens to individual

I want to use CiviMail to bulk mail key individual contacts from member organisations and want to include tokens in their email to remind them of the information we currently hold on their ...
2
votes
2answers
134 views

CiviCase + CiviRules + Tokens

I would like to trigger an email to a particular Role on a Case (not the Client) when a Case Status is changed. Is this possible? I've added the CiviCase Tokens Extension, and I can create a message ...
0
votes
3answers
94 views

Is there a list of tokens anywhere?

Is there a list of tokens that are available anywhere? Is it stored in some db table I haven't seen? CiviCRM 5.20.2 on Wordpress
2
votes
1answer
26 views

Content aggregator for delivering Drupal 8 and CiviMail

There were at least two solutions for this in D7, Eileen's CiviToken extension and Pogstone's Content Token extension Wondering if anyone has used or knows of something that will provide this for D8. ...
3
votes
1answer
38 views

Issue with CK editor <wbr> tag appearing in Token

In the CK editor, when I add a token and look at the source code, the wbr/> tags appear in the token breaking the token. I have a feeling this crept in after I enabled Smarty for email. Does anyone ...
0
votes
1answer
87 views

Is it possible to access contribution tokens in hook_civicrm_tokenValues?

I’m trying to make a custom token to present grouped donations in a thank you letter in a friendlier format. If I use the ‘Group contribution by contact’ option the {contribution.total_amount} and {...
1
vote
1answer
30 views

Extra Decimal Places on Fuzion Token 'Latest Membership Fee'

Sending a Civimail built with Mosaico utilizing Fuzion Token 1.5 {latestcurrentmembership.allfee} The amount should be $69.00 on a test record but the email reads: 69.000000000 Any suggestions? Was ...
1
vote
1answer
37 views

Permissions help with using action.forward token in an email

I want to add a forward to a friend at the bottom of an email. When recipient clicks they see the "enter up to 5 email address" page however if they are a non-authenticated user they get a Undefined ...
4
votes
1answer
64 views

Token for {$totalAmount|crmMoney}?

I want to use in a Mosaico template a token for the contribution and I found in a system template this string: {$totalAmount|crmMoney}. I tried to use it in my new template but it doesn't show in the ...
2
votes
0answers
46 views

How to change the date format for a mailing token for a custom date field

We have a date field, custom, set to be dd-mm-yyyy but when we add a token for that custom field in a mailing it comes out as yyyy-mm-dd hh:mm:ss How do we change this
4
votes
1answer
54 views

Empty token default values -- core or extension support?

I want to provide a default value for tokens when the value is empty, on a per-use basis -- e.g., something like {contact.first_name?Friend} would print the contact's First Name if it's not empty, ...
5
votes
2answers
57 views

Do any token extensions provide a token for "age" rather than just DOB?

Age is displayed on a contact record but only DOB is a token available in message templates. Are there any extensions that make age available for use? I've not been able to locate anything.
2
votes
2answers
47 views

Membership tokens missing after upgrade to civi v5

I would like to use the membership.fee token in a mail. However, it isn't displayed in the list of tokens the mailer view offers and it's not working when I use it manually. I saw a suggestion to use ...
3
votes
1answer
56 views

Can i use CiviToken in Custom Fields

Can i use CiviToken (https://github.com/eileenmcnaughton/nz.co.fuzion.civitoken) as Default Values in CiviCRM Custom Fields the same way Drupal lets you use it. Thanks
1
vote
0answers
39 views

How to get {mailing.viewUrl} & {contact.checksum} to work together?

So, both tokens work fine when sending mailings.. however, whenever I view the mailing in the browser by using the {mailing.viewUrl} token.. any url I have in the mailing that uses the {contact....
3
votes
2answers
50 views

Is it possible to use CiviCRM tokens in external services?

Maybe this is a dumb question, but I'm quite new to CiviCRM. Is it possible to use CiviCRM tokens in external services? Let's say for example that I would like to use another mailing service instead ...
1
vote
1answer
88 views

CiviMail "View in Browser" Link Error

I am on civi 5.14.2 drupal 7.x flexmailer & mosaico 2.x installed. It used to be working so far and all of a sudden it stopped working!! This email was sent using "traditional" link. Any ...
2
votes
1answer
47 views

Token Example Module

I am working on an extension that is going to use a custom token from Drupal content. I found the great example blog post from CiviCRM 4.1 but it appears that in CiviCRM 4.7 tokens switched to using ...
1
vote
2answers
57 views

Use CiviCRM tokens in Drupal welcome e-mails?

I have a site set up using a Drupal rule to create a new user account when a new membership is created. The new account creation triggers a Drupal welcome e-mail to the user, as defined in the Drupal ...
2
votes
1answer
86 views

Workflow and Automation

I'm trying to figure out how to do automated workflows. This is an example of one such process: Member fills in a request to host an event using Caldera Forms (at the moment). I currently have some ...
1
vote
0answers
37 views

Problems inserting action tokens with default wysiwyg HTML editor

CiviCRM 5.14.0 This is a new site and I am testing inserting action tokens in emails. If I use the link symbol in the wysiwyg, it inserts double-quotes around the link but the {aciont.reply} already ...