Results 1 to 2 of 2

Thread: Alert when a record expires

  1. #1
    shailendra001's Avatar
    shailendra001 is offline A Prolific Poster
    Join Date
    Oct 2008
    Location
    Bangalore India
    Posts
    255

    Default Alert when a record expires

    Hi all!

    my objective is to set a work flow for records if they expires --- like a PNA no of client expires , on 12/20/2009 and user have to renew its client PNA --- can we create a work flow that send a alert message or Email to users before one month or before some days of expire that PAN no ----


    Thanks and Regards
    Shailendra

  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: Alert when a record expires

    Hi Shailendra

    You can create a Scheduled Task which runs every day.
    This one can look for expired PNA no and send an email to some specific user.

    Basically you need to:
    1. Edit the file modules/Schedulers/_AddJobsHere.php
    1.1. Add a new element into $job_status, like 'runAlertExpiredPNA';
    1.2. Create a function whose name is the same you added into $job_status;
    1.3. This function needs to include a script, like modules/Accounts/AlertExpiredPNA.
    2. Create the script modules/Accounts/AlertExpiredPNA, this one will perform the logic
    3. Go to Admin -> Schedulers and create a new one pointing to this new task, set up the frequency
    4. Make sure the cron into your operating system work properly
    5. Configure your cron to trigger the cron.php of your sugarcrm installation, as explained into Schedulers ListView

    Regards
    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.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 2009-12-30, 09:43 AM
  2. Updating Record through SOAP
    By darcy.rippon in forum Developer Help
    Replies: 0
    Last Post: 2008-09-22, 09:03 PM
  3. Replies: 4
    Last Post: 2008-08-08, 12:51 PM
  4. alert generation workflow
    By Systems Navigator in forum Developer Help
    Replies: 0
    Last Post: 2008-01-23, 12:40 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
  •