Results 1 to 10 of 10

Thread: Assign CONTACTS in CASES!

  1. #1
    vfx
    vfx is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Assign CONTACTS in CASES!

    Is there a way to assign just a CONTACT to a CASE instead of ACCOUNT NAME?

    Thank You.

  2. #2
    SamuelAugy is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Paris (France)
    Posts
    238

    Default Re: Assign CONTACTS in CASES!

    You can create a relate field from module cases to contacts and modify layouts form cases to remove account and to add contact.

  3. #3
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: Assign CONTACTS in CASES!

    Hi vfx

    Remember that you need to make the account name optional:
    Add the attribute

    PHP Code:
    displayParams => array('required' => false
    To account_name field in the custom/modules/Cases/metadata/editviewdefs.php

    Cheers
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  4. #4
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Assign CONTACTS in CASES!

    Hello,

    If you just create a relate field in the Cases module, the link with the case does not appear in the Contacts detail view in the Cases submodule.

    Andopes is correct, you will want to make the Account Name field un-required. A workaround to is to create a case from using the Cases submodule in the Contact detail view. When you do this, the case is automatically linked to that Contact. You also have the option to link the Contact after creating the Case. In the Case detail view, there is a Contacts submodule where you can select any existing Contacts to attach to that case.
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  5. #5
    vfx
    vfx is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: Assign CONTACTS in CASES!

    Quote Originally Posted by andopes
    Hi vfx

    Remember that you need to make the account name optional:
    Add the attribute

    PHP Code:
    displayParams => array('required' => false
    To account_name field in the custom/modules/Cases/metadata/editviewdefs.php

    Cheers
    I couldn't find editviewdefs.php. There are detailviewdefs.php and quickcreatedefs.php. I hope there is a hack or perhaps a new version you can assign CONTACT instead of ACCOUNT.

  6. #6
    vfx
    vfx is offline Member
    Join Date
    Feb 2007
    Posts
    6

    Default Re: Assign CONTACTS in CASES!

    Quote Originally Posted by sugarcane
    Hello,

    If you just create a relate field in the Cases module, the link with the case does not appear in the Contacts detail view in the Cases submodule.

    Andopes is correct, you will want to make the Account Name field un-required. A workaround to is to create a case from using the Cases submodule in the Contact detail view. When you do this, the case is automatically linked to that Contact. You also have the option to link the Contact after creating the Case. In the Case detail view, there is a Contacts submodule where you can select any existing Contacts to attach to that case.

    I'd like to create cases and be able to assign CONTACT at the same time. I noticed your workaround too but that's another step. I can be forgetful sometimes.

  7. #7
    SamuelAugy is offline Sugar Community Member
    Join Date
    Sep 2007
    Location
    Paris (France)
    Posts
    238

    Default Re: Assign CONTACTS in CASES!

    To have an editviewdefs.php in custom/modules/Cases/metadata directory, go to the studio to edit the editview of cases module and click on save and publish. It will create this file on this directory

  8. #8
    WEB11 is offline Senior Member
    Join Date
    Mar 2009
    Location
    Washington, DC
    Posts
    30

    Default Re: Assign CONTACTS in CASES!

    I added the code above and it removed the red * from the field name but it stills asks for it when I try to save.


    Code:
    Original code:
    
    
                'name' => 'account_name',
                'label' => 'LBL_ACCOUNT_NAME',
    
    
    
    Replaced with:
    
                'name' => 'account_name',
                'displayParams' => 
                array (
                  'required' => false,
                ),
                'label' => 'LBL_ACCOUNT_NAME',

  9. #9
    kane.baker is offline Junior Member
    Join Date
    May 2009
    Posts
    3

    Default Re: Assign CONTACTS in CASES!

    Quote Originally Posted by vfx View Post
    I'd like to create cases and be able to assign CONTACT at the same time. I noticed your workaround too but that's another step. I can be forgetful sometimes.
    Did you ever figure out? I ask because your suggestion makes a lot of sense but am wondering how best to accomplish assigning contacts in cases in ONE step.

  10. #10
    shamimwilson is offline Sugar Community Member
    Join Date
    Mar 2009
    Location
    Banglore India
    Posts
    235

    Default Re: Assign CONTACTS in CASES!

    Quote Originally Posted by WEB11 View Post
    I added the code above and it removed the red * from the field name but it stills asks for it when I try to save.


    Code:
    Original code:
    
    
                'name' => 'account_name',
                'label' => 'LBL_ACCOUNT_NAME',
    
    
    
    Replaced with:
    
                'name' => 'account_name',
                'displayParams' => 
                array (
                  'required' => false,
                ),
                'label' => 'LBL_ACCOUNT_NAME',


    Hi,

    To make the account name in the case module not required

    go to custom/extension/modules/Cases/Ext/Vardefs/vardefs.ext.php

    If the above directory doesnot exist then create them

    add the following lines of code

    <?php

    $dictionary['Case']['fields']['account_name']['required']=false;
    ?>

    hope this will help you
    ShamimWilson
    shamim.797@gmail.com.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Retrieve id of Contacts and Cases created from web form
    By smcnally in forum Developer Help
    Replies: 0
    Last Post: 2007-11-16, 08:11 PM
  2. need option to assign multiple users in contacts
    By shirisha in forum Feature Requests
    Replies: 1
    Last Post: 2007-08-24, 10:36 AM
  3. Creating cases for contacts instead of accounts
    By ablair in forum General Discussion
    Replies: 7
    Last Post: 2007-08-15, 09:38 PM
  4. Assign Accounts AND Contacts?
    By abeck409 in forum Help
    Replies: 0
    Last Post: 2006-11-16, 04:11 PM
  5. Cases assigned to contacts
    By lalo in forum Feature Requests
    Replies: 2
    Last Post: 2005-02-07, 06:00 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •