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 CiviCase (Moderator: Dave Greenberg) »
  • CiviCampaign in CiviCase activity
Pages: [1]

Author Topic: CiviCampaign in CiviCase activity  (Read 1174 times)

FadeOUT

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 0
  • IT Development at UK Charity
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.14
  • MySQL version: 5.1.57-community
  • PHP version: 5.3
CiviCampaign in CiviCase activity
July 24, 2012, 06:18:47 am
Hello all,

Is it possible, can someone tell me, to include a Campaign Name field in an Activity, such that an activity can be associated with a campaign?

Thanks..!

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: CiviCampaign in CiviCase activity
July 24, 2012, 06:30:43 am

It is possible since an activity has a campaign field.

Most likely civicase is a bit unaware of civicampaign and hence the code has not been implemented there to include the campaign fields

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

FadeOUT

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 0
  • IT Development at UK Charity
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.14
  • MySQL version: 5.1.57-community
  • PHP version: 5.3
Re: CiviCampaign in CiviCase activity
July 24, 2012, 06:33:33 am
So the only way is to write custom code..?

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: CiviCampaign in CiviCase activity
July 24, 2012, 06:39:55 am

I would write a patch for the CiviCase code and submit it back so that it can be incorporated in a 4.3+ version

But yes, u'll need to write code for this for now. would be useful to other folks and help with campaign getting into more parts of the codebase

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

FadeOUT

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 0
  • IT Development at UK Charity
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.14
  • MySQL version: 5.1.57-community
  • PHP version: 5.3
Re: CiviCampaign in CiviCase activity
July 24, 2012, 06:43:36 am
Well, I'd certainly like to contribute... I'll have to delve further into the code! Thanks  :)

FadeOUT

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 0
  • IT Development at UK Charity
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.14
  • MySQL version: 5.1.57-community
  • PHP version: 5.3
Re: CiviCampaign in CiviCase activity
July 25, 2012, 02:25:43 am
For our usage, I think the ideal would be to be able to associate a campaign with a case; i.e. to have a non-required drop-down selection of CiviCampaign name within the Add Case screen of CiviCase. Is there a good way of finding out if anyone else has the same kind of requirements? Or indeed of getting some pointers as to how to approach that type of modification?

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: CiviCampaign in CiviCase activity
July 25, 2012, 09:26:39 am

1. You'll need to modify the schema to add a campaign_id FK to civicrm_case table (and also the upgrade script)

2. Once the above is done, you can probably add this to the "open case" form for cases. Should be relatively easy to do, you can copy similar code from the contribution pages

ping us on irc if u need help getting started. Might also want to read: http://book.civicrm.org/developer/

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

FadeOUT

  • I post occasionally
  • **
  • Posts: 69
  • Karma: 0
  • IT Development at UK Charity
  • CiviCRM version: 4.1.3
  • CMS version: Drupal 7.14
  • MySQL version: 5.1.57-community
  • PHP version: 5.3
Re: CiviCampaign in CiviCase activity
July 26, 2012, 12:42:26 am
Thanks, Lobo  :) I'll get my head around this thing eventually  ;D

petednz

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4899
  • Karma: 193
    • Fuzion
  • CiviCRM version: 3.x - 4.x
  • CMS version: Drupal 6 and 7
Re: CiviCampaign in CiviCase activity
October 07, 2013, 08:16:16 pm
Just wondering if anything ever came of this - i can see a use case for this - but i can probably just step around with a custom field on Cases - but good to see i am not the only one wondering.
Sign up to StackExchange and get free expert advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

pete davis : www.fuzion.co.nz : connect + campaign + communicate

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • CiviCampaign in CiviCase activity

This forum was archived on 2017-11-26.