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) »
  • Addressee and postal and email greetings not created on import
Pages: [1]

Author Topic: Addressee and postal and email greetings not created on import  (Read 1312 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Addressee and postal and email greetings not created on import
January 20, 2011, 05:30:04 am
Hello there,

Trying to understand why the addressee fields and postal and email greeting fields are not populated when I import contacts.  Is there a way to set these fields so they use the default setting on import?

At the moment it seems that once a client has imported a load of contacts (this specific client has an import that he runs regularly every two weeks) he has to then run three bin scripts

sites/all/modules/civicrm/bin/UpdateGreeting.php?ct=Individual&gt=email_greeting
sites/all/modules/civicrm/bin/UpdateGreeting.php?ct=Individual&gt=postal_greeting
sites/all/modules/civicrm/bin/UpdateGreeting.php?ct=Individual&gt=addressee

Not sure that there is a use case for this?  Shall we change it so this happens automatically on import? Or maybe there is a setting or something similar I am missing.

Background research says that greetings and addressee are now set for profiles http://issues.civicrm.org/jira/browse/CRM-5922.  I can't remember what happens with the API, but can investigate if that is helpful.

Cheers,
Michael
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Addressee and postal and email greetings not created on import
January 20, 2011, 05:32:14 am
Quote
On a more fundamental level, I'm wondering why there is a need for UpdateGreeting.php - I'm wondering why we can't just create/update the greetings and addressee fields on each create/update call on a contact.

This is done because of efficiency reasons. Greetings and addressee fields may also contain tokens etc. So if we evaluate them during import, it will slow down import process considerably. Hence we decided to have this external script.

Kurund
Found this reply helpful? Support CiviCRM

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Addressee and postal and email greetings not created on import
January 20, 2011, 06:16:45 am
OK - but I don't think the current solution is good enough.  It would be OK if the import is just used very rarely, but not in those cases when it is used on a weekly basis.

In the weekly case, asking the clients to call three scripts after each import is really not cool.

And the alternative of setting it up on a cron to be run every five minutes seems a bit of a waste of resources.

How about adding an option (similar to mapping).  Seems that if you can look up mapping then you can populate greetings.

Another thought.  You don't necessarily need to update the greetings one by one.  You could always run those three scripts on succesful completion of the import if that speeds things up.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Addressee and postal and email greetings not created on import
January 20, 2011, 06:38:09 am
I think this is specific use case. So may be make a page with update script links and get client to run it after import??

Kurund
Found this reply helpful? Support CiviCRM

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: Addressee and postal and email greetings not created on import
January 20, 2011, 08:17:00 am

for now: you can do this as a postProcess hook for your client on the summary page and run the three other urls (or call the needed functions)

I think there will always be a tradeoff as to how much configuration you can/should add to the UI.

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

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Addressee and postal and email greetings not created on import
January 21, 2011, 09:11:33 am
Quote
I think there will always be a tradeoff as to how much configuration you can/should add to the UI
agreed - though of course in an ideal world this shouldn't have to be a config option - it should happen as part of the import
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Addressee and postal and email greetings not created on import

This forum was archived on 2017-11-26.