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

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
28 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, ...
4
votes
1answer
29 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
24 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
31 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
19 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
43 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
27 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 idea what ...
2
votes
1answer
22 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
25 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
51 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
29 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
81 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 ...
0
votes
0answers
13 views

Country name token instead of countryID in Webform mail

I'm populating a webform email and it looks like there is no token in the submitted data for the country name. There is one for the countryID. Is there a solution for this? Ta
1
vote
1answer
32 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
76 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
39 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
31 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
131 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
30 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
35 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
28 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
37 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
33 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
53 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
69 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
68 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
35 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
23 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
43 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
37 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 ...
4
votes
0answers
100 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
25 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
26 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
15 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
24 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?
2
votes
4answers
63 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
67 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
66 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
71 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
16 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
216 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
43 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
74 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
62 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
24 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
44 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
44 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
88 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
130 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 ...