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
0answers
17 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
176 views

How can I chase up mailing list subscribers who don't confirm their opt-in?

When someone adds themselves to a group that is configured as a mailing list they get sent an email with a confirmation link. The email includes the token: {subscribe.url} We now have something like ...
3
votes
1answer
31 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?
1
vote
1answer
25 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 $...
0
votes
0answers
24 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 ...
2
votes
1answer
22 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
20 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
18 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
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 ...
0
votes
0answers
14 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
17 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 &...
5
votes
3answers
214 views

Is there a token for base url?

We are often caught by having links in Message Templates that work on live, but then incorrectly take us to the live site when testing on dev - which can result in confusion or worse, errors or ...
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 ...
4
votes
2answers
78 views

Can Legal Name be used as a token?

I need to use an organization's legal name for invoicing. I have already customized the invoice template for many other fields, but cannot see how to insert Legal Name as a token. I note this 10 year ...
1
vote
0answers
9 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 ...
0
votes
1answer
96 views

Email of membership receipt needs specific custom tokens added - how to find them?

I am trying to work with an existing CiviCRM setup I have stepped into. The automatic email of a donation or membership payment needs more features added. 1) The Company number 2) the type of ...
1
vote
0answers
23 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
21 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
30 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
28 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
14 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
40 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
49 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
50 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
87 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
69 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
4
votes
3answers
194 views

Is there a token for contribution type?

There seems to be tokens for all sorts of contribution things but not for the financial type. Maybe I'm missing it somewhere. We're doing tax letters and the type ends up being the fund the people ...
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
28 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 ...
1
vote
1answer
53 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
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}
4
votes
1answer
46 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 ...
1
vote
1answer
137 views

Can I use membership information in a mail?

We are using Memberships including some custom fields to save additional information (e.g. the name of a specific beneficiary supported through that individual membership). Mailings through CiviCRM ...
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
0answers
26 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, ...
2
votes
4answers
83 views

Handling null values in tokens in civimail (and elsewhere)

Has anyone developed an extension to handle null values in tokens? For example: Sending an email to a contact with no first name: Dear {first.name}, will end up as -> Dear , It appears that ...
2
votes
2answers
36 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
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....
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
68 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 ...