CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • mailing labels : organisation main contact from relationship ?
Pages: [1]

Author Topic: mailing labels : organisation main contact from relationship ?  (Read 510 times)

ehanuise

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 2
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.17
  • MySQL version: 5.1.49-3
  • PHP version: 5.3.3-7+squeeze3
mailing labels : organisation main contact from relationship ?
April 05, 2012, 07:51:59 am
Hi all.

I've received the following request : when printing mailing labels, organisations only have the organisation name. We'd like to add the main contact (person name) as well.
All organisations have a relationship 'main contact', or 'current employer' to the individual acting as main contact for the organisation.

I didn't find anything related to the relationships in the mailing label tokens, so I guess i'm looking at the wrong place.

How can this be done ?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: mailing labels : organisation main contact from relationship ?
April 05, 2012, 11:52:48 am

You can potentially do this via a custom token. So create a custom token called main_contact and implement the token / tokenValues hook

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • mailing labels : organisation main contact from relationship ?

This forum was archived on 2017-11-26.