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
2
votes
1answer
17 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
15 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
16 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
13 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
15 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
8 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
22 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
20 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
28 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
17 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
27 views

How to add pre-existing case id to webform

Similar to contact id, I find that it would often be beneficial to add the case id to a webform for email submitted via a webform. Is there a token or a work-around to add the case id for pre-existing ...
0
votes
0answers
17 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
18 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
31 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
12 views

there is an error in your request - civimail opt-out from browser

I have started receiving opt-out error messages from users who try opting out of bulk mailing. This only happens if user views email following the {mailing.viewUrl} token. The opt-out link works if it ...
0
votes
0answers
38 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 ...
0
votes
0answers
14 views

Tokens are not populated in the mail sent by webforms

After upgrading to 5.24.4, then 5.25.0, Tokens are empty in the mails sent by webforms : e.g. : [submission:date:long], [submission:user],[submission:values],[submission:url] The mail only contains : ...
1
vote
1answer
47 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
47 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
48 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 ...
1
vote
2answers
82 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
62 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
17 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
27 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
45 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
26 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 ...
0
votes
1answer
25 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
45 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
24 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
48 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
54 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
32 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
46 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
33 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
45 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
65 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
39 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
40 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
64 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
34 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 ...
2
votes
2answers
115 views

Fuzion tokens for membership start and end date

I want to use Fuzion tokens in an attachment letter (an insurance certificate) and I need to show up start and end date for this certificate. It's easy for name and everything related to contact or ...
1
vote
1answer
52 views

How to use Contact name if nickname is not present in bulk mail?

I need to send an email with Nickname as first preference, if that not present then use Contact name. Cant figure out what token to use? I have tried this but seems not rendering correctly in email: ...
1
vote
2answers
125 views

Token information not pulling through to Mailing Template

Really hoping you can help with this. We had a security update on Civi yesterday which appears to have caused an issue with how one of our tokens is pulling through to a mailing template. We used a ...
0
votes
1answer
76 views

Email greeting token not working with mosaico

Building a mailing with mosaico Contact email greeting not showing in final mail (shows in html preview) mail sent as test and as mailing. No greeting in either. d 7.66 c 5.10.3 other contact ...
0
votes
1answer
41 views

How can I include Employer in display name?

I have tried this but doesn't work. Can anyone suggest a correct token format please? Thanks {contact.first_name}{ }{contact.last_name}{ }{contact.current_employer}
2
votes
1answer
283 views

How to create tokens for custom fields (participant, individual, organisation)

Drupal 7, Civi 5.12 I have created custom fields for civievent bookings (to be used for Participants, Individual, Organization). Is there an easy way for a non developer to create tokens for these ...
2
votes
0answers
31 views

Custom Tokens TOKEN_REGISTER not getting invoked

CiviCRM 5.9.1 Drupal 7.61 Trying to create custom tokens using "hook_civicrm_container", TOKEN_REGISTER is getting set as well as TOKEN_EVALUATE function in $container variable but TOKEN_REGISTER ...
1
vote
1answer
37 views

CiviContribute - convert amounts into words

Is there a plugin that would populate a field with a word amount of a contribution total? Using such a token can make a letter more personalized. Similar to the SpellNumber formula in Excel. I.e. $240....
2
votes
1answer
29 views

Contact ID Token for Sort Name

I have a client who wants to use the the contact id as an identifier in the Individual Sort Name Format. Basically they want to see "Smith, John (6548)" in search results because they want to use the ...
2
votes
2answers
48 views

Can custom Tokens for pledges be created?

I need to include the amount pledged and the amount they need to pay (which are different values) within an email I'm sending from CiviMail to let our pledgers know when/how to pay and how much. This ...