Results 1 to 3 of 3

Thread: Case Number on new case

  1. #1
    jgrimaldos is offline Sugar Community Member
    Join Date
    Nov 2009
    Posts
    26

    Default Case Number on new case

    Hi, I'm trying to send info to a Call Logging app via SOAP using logic hooks, however, when creating a new case, the case number is out of bounds of the atfer_save hook... is there any way to retrieve that number when creating a new case?

  2. #2
    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: Case Number on new case

    Once SugarCRM doesn't manage the case number, db does that task, the case number only is available after_retrieve.

    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.

  3. #3
    jgrimaldos is offline Sugar Community Member
    Join Date
    Nov 2009
    Posts
    26

    Default Re: Case Number on new case

    OK, I could work around that issue: on after_save, I query the DB with my $bean->id and retrieve the proper case_number

    Now I should hijack my own thread, hehehe... how could I know, from inside a logic_hook, which account is currently on session?

    Nevermind: using the modified_user_id on the bean in after_save is all I need.
    Last edited by jgrimaldos; 2011-09-09 at 10:15 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2011-07-08, 01:21 AM
  2. Case number always 0 (zero)
    By BigWil in forum Help
    Replies: 4
    Last Post: 2011-03-01, 10:04 PM
  3. Case number in case emails
    By rexykik in forum Feature Requests
    Replies: 0
    Last Post: 2006-06-22, 02:15 PM
  4. Case ID Number
    By ahirsh in forum Help
    Replies: 1
    Last Post: 2006-03-01, 03:06 PM

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
  •