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) »
  • Cases where Client is an organisation
Pages: [1]

Author Topic: Cases where Client is an organisation  (Read 2991 times)

marcus.liberman

  • Guest
Cases where Client is an organisation
March 26, 2009, 10:01:21 am
Hi.

I am new to CiviCRM and to the open source world, so forgive inappropriate or dumb questions, or using the wrong mechanisms to look for help.

We are looking at CiviCRM including CiviCase to provide a new solution for supporting our offices worldwide. A key requirement is creating a directory of Courses running in volunteer organisations all round the world. The Case module seems to be a good fit for this, but I seem to have hit a snag that someone might be able to help with?

We would need an organisation to be a client of the case for each course - so that the course lists under the Case tab for that organisation. At present it is possible to set up a Case with an organisation as client, but then when I want to add other case roles onto the case (to show volunteer individuals who are associated with the course (leader, admin, etc.) it appears to let me add them, but they do not appear to register in the DB, as they then do not show up on the record (but they do show up if the client is an individual).

Is this part of the design of case that makes it impossible to use Case in this way, or am I doing something wrong, or is there some config I can do?

Any help greatly appreciated

Marcus

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Cases where Client is an organisation
March 26, 2009, 03:32:53 pm
Hi Marcus - Frankly we had not anticipated the use case your describing and had assumed that the client of a case would always be an individual. The good news is that the basic schema and code architecture does not impose this limitation - but in a quick test I could replicate that there is some logic in the code which is preventing Case Roles from being saved if the client is an organization (even when the relationship type correctly specifies that "contact type b" is an organization (I used the pre-configured "Volunteer is" relationship in my test).

It would be helpful for us to understand a bit better why the Case model seems a good fit for your Courses (rather than CiviEvent events for example).

Making the "org as client" flow work MIGHT not be a big deal. Do you have PHP skills in your organization that might be able to work w/ us on this?
Protect your investment in CiviCRM by  becoming a Member!

marcus.liberman

  • Guest
Re: Cases where Client is an organisation
March 27, 2009, 01:13:54 am
Hi Dave

Thanks very much for a very prompt response & for the good news that the this might not be too big a deal.

Here's the application for us.

We maintain a directory of where an 'introduction to christianity' course developed by us is running in local churches all around the world. There are now thousands of such courses running. Local churches notify us that they are running the course (which they would typically run once, twice or three times a year. They tell us who the admin is on the course (our primary contact), who leads it, who leads the church, where the course runs, and how often it runs (plus a few other details like what variety, what language it runs in, etc.) We then run a 'Find A Course' site (currently written in Drupal) to allow enquirers to find a local course.

We have local offices in a number of countries that have limited tools at present to manage their CRM and their local country directory and we are looking at Civi as the tool to do the CRM and CiviCase to hold the directory. We think Case because we do not manage the events themselves and do not manage participants, we simply want to record an instance of the course running, link in to that the course administrator (as a role) as well as possibly other roles such as course leader, and then had assumed a few custom fields linked to a basic 'set up' activity to capture other details of the course. But to make the course show up against the church that is hosting it we wanted to make the client the church org. I am sure you appreciate that volunteers change regularly, and the administration gets passed on, but a church tends to remain, so it seemed most sensible to make it the client.

So that's the scenario. We would be open to using events to keep instances of courses, but we do also run events too (training events for local churches) so we would need to be able to segregate event types very clearly, and that just seemed a little less tidy. But open to your thoughts.

We do have some PHP skills in house (from our Drupal implementation) and would definitely intend to work with you an a Case fix if that seems appropriate. In fact our longer term plans (if I get the go-ahead for this) would probably lead us to contributing other dev efforts as we have a few areas where we might want to grow Civi's capability.

Let me know your thoughts & thanks in advance

Marcus

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Cases where Client is an organisation
March 27, 2009, 10:27:54 am
Marcus - Chatted some internally about this. We're not sure if supporting "organization as client" is an appropriate direction for CiviCase or not. On some level each specific activity in a case is an interaction between individuals - and the current architecture forces the activity "target" to be the client.

We'd definitely be interested in hearing from other folks about use cases for this model.

For now, I think your options are:
* Use events - and segment them by event type. Add appropriate custom fields for the "Local Courses" event type to record other info you need to track. You can potentially use the new custom field option hook to have one of the fields store / lookup org contacts to assign as "Church running this course" and lookup / assign individuals as course admin etc.

* Debug / work through the obstacles in using CiviCase w/ the organization as client model. Caveat on this being that patches to put this in core may or may not be accepted - partially depending on the magnitude / nature of code changes.
Protect your investment in CiviCRM by  becoming a Member!

marcus.liberman

  • Guest
Re: Cases where Client is an organisation
March 27, 2009, 11:28:04 am
Thanks Dave.

Your thoughts on how to use the event module are very helpful and we will definitely explore them. I had not got as far in my thinking. Your ideas on use of the custom field option hook to make the links to orgs and individuals are great.

Of course what I love so much about the case module is that the roles already show up reciprocally in the individual or org's relationship tabs, so you see immediately how the person is involved in courses. This is really important to us. So I think we will sort out resources to look at the scale of the work to make the change.

Just a quick comment on your thoughts about 'organisation as client' for CiviCase, I would just mention that our current (commercial) software has a case module that is very flexible in its application, and the supplier finds it is a key differentiator for them in the not-for-profit sector. Their clients are membership organisations, professional bodies, etc. and so often there is some kind of process involving people, organisations, dates and activities such as tribunals, application processes, etc. which many more standard data models do not allow for. Case, if made really flexible, can provide solutions to many of these scenarios. I fully appreciate you already have a vision and roadmap for Case in mind, and I am coming in to this late in the day. But I did want to mention it.

Thanks again for your help. Will post back with findings sometime soon.
« Last Edit: March 27, 2009, 11:35:17 am by Marcus »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Cases where Client is an organisation
March 31, 2009, 03:05:24 pm
An update on some conversations we've had with Andrew Clarke and the team at Physician Health Program - British Columbia (who have been the primary sponsors and "domain experts" working with us on CiviCase)....

"I think it (supporting organizations as clients) makes a lot of sense...There do seem to be a lot of organizations out there who have other organizations as clients.   I actually try to get return-to-work case managers to think in those terms: the whole department/work unit is their client, not just the employee who is off work."

Other than fixing the code to allow assigning Case Roles where either the client or the role-holder is an organization... I think you will need to look at the way the target contact for case activities is handled. Currently this is hard-wired so that the target contact is always the client. I imagine that when the client is an organization - many case activities will involve interactions between the case manager or service provider and an individual who is associated with the client organization. If so, you would need to change the target contact ("With .... ") field from view-only to an auto-complete select (similar to the Reported by field) - with the default value set to the client contact record. This select should be limited to contacts who have an existing role in the case (which means they have a relationship to the client and the relationship record includes this case's case id).

The "good news" is that if you move this forward and submit a properly coded patch - I don't see any reason why this extension wouldn't be accepted into the core codebase. :-)
« Last Edit: April 01, 2009, 06:47:57 am by Dave Greenberg »
Protect your investment in CiviCRM by  becoming a Member!

marcus.liberman

  • Guest
Re: Cases where Client is an organisation
April 01, 2009, 03:26:38 am
Hi Dave

Thanks for the background work you are doing on this and good to hear that the original sponsor team approve of this potential development. As you have seen I am trying to find a developer to do the work & submit for inclusion.

I understand where the team are coming from with their suggestion about opening up the 'with contact' field to be more flexible. I have already submitted a requirements document to those that have replied but I can see the value in what they are saying. Let's see how we get on with responses, and potentially we can include this too, but given that there is also an ability to assign the case to an individual, I am not sure (for us anyway) that this is a day 1 requirement. But there is other stuff we would like to do afterwards, and this could be included in that I am sure.


PTense

  • Guest
Re: Cases where Client is an organisation
April 06, 2009, 04:57:24 am
This implementation makes a lot of sense to me. I am currently in the process of moving my organization over to CiviCRM, and CiviCase is a huge incentive.

In particular, we hope to use it to track and follow leads for advertising for our magazine. In this case, we really do prefer to have cases tied to organizations (ie, the potential advertising organization) rather than to an individual.

Looking forward to seeing this -- and the rest of civicrm -- progress!

(BTW - I registered to post this comment!)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • Cases where Client is an organisation

This forum was archived on 2017-11-26.