Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
12 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 ...
0
votes
1answer
13 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
24 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
1answer
16 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 ...
3
votes
0answers
18 views

How can I send an event-specific PDF certificate to participants via email?

Using Civirules and the PDF Creation API extension I can send an email with an attached PDF containing tokenised content to a contact based on a specified trigger and conditions. What I want to do is ...
0
votes
1answer
26 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 ...
2
votes
0answers
26 views

Contribution tokens for receipts

We're trying to create online receipts for Memberships, Contributions and Events and we would like to include the contribution source, and payment instrument for in the receipts. The question is, is ...
4
votes
1answer
43 views

Feature request: Make Checksum tokens easier to use

Checksum tokens are arguably one of the coolest yet most overlooked features of CiviCRM. It allows you to send targeted emails for donations, membership and event registration in a way that ...
3
votes
1answer
30 views

Is there a way to update the contact.addressee field in batches?

I have about 50,000 contacts to update and I have a scheduled update greeting job set up (based on this post Update addressee values for all contacts after modifying Addressee Type Options - thanks ...
0
votes
1answer
19 views

Relationship Type “name” as Drupal [Rules] Token in Civicrm Entity module

Is it possible to retrieve Relationship Type Name in addition to an ID as Rules Token in Drupal 7? It would add some value to "Create/Edit Relationship" Rules action: we could use it in emails, like "...
0
votes
1answer
31 views

Following a CiviCRM checksum link doesn't populate civicrm tokens but logging in populates the tokens.

Example use case: You want to link a user to a page and populate some information about them (e.g. display an online membership card): [current-user:civicrm-contact:display-name] [current-user:...
0
votes
1answer
30 views

bulk email to two addresses - tokens don't work

We have separate records for students and parents in our database. All student records include both their personal emails (if they offer one) and their parent's email. We would like to send emails to ...
0
votes
0answers
22 views

Email with token to cell in excel file

We are trying to send an email that inserts a token from an imported Excel file to a specific URL for each member. It does not run, just gets stuck. Where can I go to find details about setting up and ...
5
votes
0answers
48 views

How to use Contribution Token {contribution.amount_level}?

The contribution tokens contain the token {contribution.amount_level}. I find this tokens via find contributions -> Email send now I was hoping this token would return information about the Price Set ...
0
votes
0answers
23 views

{membership.type} token not being filled out/sent in activity based scheduled reminders

Based on the results of this question (Membership Renewal Reminders not Sending for Upgraded Memberships) we switched our Scheduled Reminders to be activity based. Now, the {membership.type} token ...
3
votes
1answer
23 views

Update addressee values for all contacts after modifying Addressee Type Options

I have updated the tokens in my Addressee Type Options (at Administer > Communications > Addressee Formats), and now CiviCRM is now generating my desired addressee values each time I save contacts. ...
1
vote
1answer
13 views

creating summary token for same donor but different categories

I'd like to send out to our donors a summary of all their contributions in the past year. I am using a token that summarizes the total donation amount for the past year. The issue is we have ...
1
vote
0answers
19 views

Custom token to get the FROM Address

I'm writing a custom token in order to expose in the mail body the selected FROM address. Is this possible?
1
vote
3answers
43 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 ...
1
vote
0answers
48 views

Documentation on using CiviCase tokens

Civicase Tokens Extension does not have documentation. I am trying to use the tokens to do a print/merge of case information. The print page is blank. Any suggestions? Have case tokens been used ...
1
vote
2answers
51 views

{domain…} tokens not parsed in regular mail?

Is it me, or are the {domain...} tokens not parsed in a private (non-civimail) mail ? Like, when sending a mail from a contacts page ? If it isn't me, then the documentation here is wrong ? https://...
1
vote
1answer
54 views

Displaying Transaction Id in Thank you letter

I am trying to create thank you letters grouping the transactions by contact. I am creating a table to display the contribution information but I am running into a problem with Transaction ID. since ...
1
vote
1answer
11 views

Drupal Views using over ride feature with civicrm fields - token

I am wonder whether someone can help explain how to use the Override feature for CiviCRM fields in views. For example, I have a field in Civi which is a file field... when i add it to a view it shows ...
1
vote
2answers
171 views

Smarty Custom Variable / Token Array

We've written a custom token to pull a piece of custom data off of any open cases. The token works as an imploded variable. I'd like to be able to use the token as an array as well (so I can run a for ...
2
votes
1answer
36 views

Format Tokens Using HTML?

Is it possible to format the display results of a token? For instance, if the token is (contact.phone), is it possible to make the resulting phone number bold or a specific color?
0
votes
1answer
60 views

membership tokens not showing for mail in CiviMail

Using CiviCRM 4.7.24 and WordPress 4.8.2. I'm trying to send an email with membership information in it. It works fine with a Print to PDF, but not with an email. I am using Find Membership to get ...
1
vote
2answers
44 views

Using event.balance token

I'm having trouble getting the event.balance token to display properly in emails. I've tried {event.balance} (which breaks Smarty so it doesn't send the email) and {$event.balance} (which is returned ...
1
vote
0answers
23 views

How to use a scheduled reminder to alert an administrator when a membership expires?

I want to set up a simple scheduled reminder that fires an email to an administrator (only - not to the expiring member as well) to alert them to the fact that a membership has just expired. I'm ...
2
votes
1answer
39 views

Insert tokens for related contacts in CiviMail

Is it possible to insert tokens for related contacts into a CiviMail message? For example the mailing is going to John Smith but we would like to include his spouses name and address? Spouse is the ...
3
votes
1answer
38 views

Is there a token for the email used in a CiviMail mailing?

I'd like to include text in my mailings like: This email was sent to [contact.the_email_used_by_mailing] ... I am aware that I can use [contact.email] to bring in the primary email, but what if ...
3
votes
1answer
78 views

Tracking links that have been added via tokens

I have created a token using hook_civicrm_tokenValues that inserts content into a CiviMail. The content includes URLs that we want to track. As I understand it (and I don't understand it very well) ...
3
votes
1answer
105 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 ...
1
vote
1answer
58 views

Drupal User ID Token

In civicrm contact summary we see Contact ID / User ID, where User ID refers to the drupal. I will need to customize a token for this User Id which I am supposed to use in civimail. Here in this link ...
0
votes
2answers
33 views

civicrmHooks.php no longer invoked under Joomla and CiviCRM 4.7.20

This is related to Invoking hook_custom_tokens and hook_custom_tokenValues in Joomla which used to work. It has now appeared to have stopped working which means that the custom tokens handled by ...
0
votes
1answer
56 views

Profile pic not displayed in civimail

As per the requirement I'm trying to get the token values of the custom fields like name, date of birth,country, profile pic etc in the civimail .But when the email is sent.The profile picture is not ...
0
votes
0answers
31 views

Image not displayed in civimail

I have added the custom field group personal info and added few fields which also includes profile picture field. Now the field is available in token list but when email is sent, the image is not ...
3
votes
2answers
83 views

Can't get action token {action.unsubscribeUrl} to work in Welcome automated message

I've been trying to add unsubscribe and optout functionality to the default "Welcome Message" email template you find under Administer, Header, Footers, and Automated Messages. I don't have HTML ...
1
vote
0answers
49 views

Use of tokens in Events - Online Registration Intro Text and Confirmation email

We have events over multiple days. The Intro Text on the confirmation screen and the confirmation email only show start date and time and end date and time. Registrants don't see the specific dates ...
1
vote
2answers
146 views

Event invoice (receipt) - custom tokens

Can anyone provide guidance how to create tokens for custom participant fields, to be added into a Contribution Invoice Receipt for event registrations? Our tax system requires that VAT registration ...
1
vote
1answer
64 views

Civimail token not recognized

I have a question, I am running Drupal 7.54 and CiviCRM 4.7.18. I have created an html template with 3 tokens (from Mailings->New Mailing) {contact.first_name} and the two required which are {domain....
0
votes
1answer
35 views

Why can't I get tokens inserted in to HMTL or Text fields of System Template Messages

Clicking on the Token under Tokens has zero effect
1
vote
2answers
96 views

CiviMail token for sender signature

Is there a token for email sender's signature? I need the email generated from template to be signed by the person who is sending the email.
2
votes
1answer
28 views

avoiding tracking of some links

The doc's give this example: "you may wish to avoid tracking who has clicked on the "how to deal with drug issues" link on a specific mailing". Is there a way of specifying which link(s) are not to ...
2
votes
1answer
119 views

Custom Email Greeting token doesn't work

I've done a custom email greetings that have this structure: {capture assign=l}{contact.preferred_language}{/capture} {capture assign=g}{contact.gender}{/capture} {if $l=="en_US"}Dear {elseif $l=="...
4
votes
1answer
48 views

How to populate the tokens used for a Scheduled Reminder in the Activity

Scheduled Reminders allow one to "Record activity for automated email" which is great. But if tokens are used in the Reminder, these are not populated in the Activity that is created. How would one ...
3
votes
1answer
54 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 ...
0
votes
3answers
87 views

Need Token Help for System Message Template

CiviCRM 4.7.15 for WordPress Mailings\Message templates\System Message Templates editing an offline Membership template This template gets emailed whenever selects Edit or Renew under Memberships ...
3
votes
1answer
51 views

Token For Custom Websites Types

I have added a new website types (Administer> Customize Data and Screens> Dropdown Options> Website Types) called 'Portfolio' and want to add it on my CiviMail Message Templates using a token. I have ...
4
votes
1answer
38 views

token for country iso code

the token {contact.country} returns the full name of the country, I'd need the iso code (eg "FR" instead of "France"). Am I missing the obvious and is there a {contact.country_iso} hidden somewhere ?...
1
vote
0answers
73 views

Custom Contribution Fields in Message Templates

I've been trying to get my custom contribution fields to be visible in my thank you/receipt message template and I think I am close but not quite there. I have enabled the CIVICRM_MAIL_SMARTY flag in ...