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 (Moderator: Dave Greenberg) »
  • Wanting Organization representative to be able to add contacts...update Org
Pages: [1]

Author Topic: Wanting Organization representative to be able to add contacts...update Org  (Read 710 times)

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Wanting Organization representative to be able to add contacts...update Org
July 03, 2012, 09:37:38 pm
Hi,

I searched quite extensively for a way to do the following, but without success.  It seems I will need to do some customization or use hooks or something, but I need a push or two in the right direction:

I need for a main representative, or you could say "primary contact" , to be able to sign up his/her organization (thinking "on behalf of" here), and also be able to add additional employees for his/her organization - managing the employee contact records as well as the organization record.

So a workflow may be:

1) Representative creates a new Membership, with "On behalf of" Org Membership profile
    (Membership signup page also creates Joomla user, and has another profile for the representative contact info)
    This membership creation also creates the "Employee of" / "Employer of" relationships, and the representative can update the Organization    record.

2) Representative receives email confirming new membership.
3) Representative also receives email to activate their Joomla user account.
4) Representative activates and logs into the Joomla CMS front-end
5) Representative is presented with a User Menu, with an option to access his/her CiviCRM contact info

How now can this representative add more contacts for the Organization, and how can he/she access the Organization record?

All this without being able to view/access other Organizations or their contacts?

Thanks for any help!

Craig

Erik Hommel

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1773
  • Karma: 59
    • EE-atWork
  • CiviCRM version: all sorts
  • CMS version: Drupal
  • MySQL version: Ubuntu's latest LTS version
  • PHP version: Ubuntu's latest LTS version
Re: Wanting Organization representative to be able to add contacts...update Org
July 04, 2012, 12:46:39 am
I have not gone into a lot of depth reading your description so it is a quick answer :-)
My first idea would be to create a specific group for the representatives. Then create a profile that enables members of this group to see their organizations. In Drupal I would use OG module to settle the access etc, not sure how this is done in Joomla.

OK, use buildForm hook to add specific options and fields to the profile to enable the representative adding contacts, and use the API to get the contacts in the database!
Consultant/project manager at EEatWork and CiviCooP (http://www.civicoop.org/)

tso2085

  • I post occasionally
  • **
  • Posts: 75
  • Karma: 0
  • CiviCRM version: 4.7.15
  • CMS version: Joomla 3.6.5
  • MySQL version: 5.5.37
  • PHP version: 5.5.30
Re: Wanting Organization representative to be able to add contacts...update Org
July 04, 2012, 12:26:21 pm
Erik,

Thank you for your reply.  A few points of clarification so as I understand...

To maybe add to my use case:  I have several levels of membership, and some of the membership organizations may have 20-30 contacts that need to be granted access to the front-end Joomla CMS content, as well as self-service changing of their CiviCRM contact info, or signing up for an event, etc.  The organization representative, or primary contact you might say, would be responsible for creating the initial org contacts, and deleting those that left, etc. , and also keep the organization data updated.

The result of what I am looking for is a self-service type of workflow.

When a representative of an organization signs up for membership on behalf of that organization, you suggest that a group is created (automatically in a hook?), and then assign the representative to that group?   Then, as part of that group he/she has permission to add new contacts and manage the organization contact info based on that group?  If this is the case, then I also have to programatically create the ACL?
<starting to get out of my comfort zone>

So can you provide more specifics about what you mean by   
Quote
use buildForm hook to add specific options and fields to the profile to enable the representative adding contacts, and use the API to get the contacts in the database
  ?

Thanks again!!

NOTE:  It seems like this would be a common scenario - 1 person that manages a membership of many contacts.  Is there no functional way in CiviCRM to do this today?  Are there plans to add this in the core?  I would think most companies using CiviCRM would want as much self-service capability as possible.

Craig

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: Wanting Organization representative to be able to add contacts...update Org
July 05, 2012, 10:10:09 am

As erik mentioned you can potentially do this via hooks and custom extensions.

Would be really good if your org can help build this extension into civicrm so others can benefit. Would definitely be a very useful feature

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 (Moderator: Dave Greenberg) »
  • Wanting Organization representative to be able to add contacts...update Org

This forum was archived on 2017-11-26.