Results 1 to 5 of 5

Thread: Writing a Cron Job for Reminders

  1. #1
    vanipriya is offline Senior Member
    Join Date
    Jun 2010
    Posts
    35

    Default Writing a Cron Job for Reminders

    Hi,
    I would like users to receive a reminder 1 week, 2 days and 1 day before any of their tasks,calls, meetings are due.

    Probably a consolidated list that says :
    These tasks are due today :
    a,b,c
    These tasks are due tomorrow :
    x,y,z
    These tasks are due this week
    p,q,r



    I think this has to be done using a cron job thats scheduled to run everyday. I'm totally new to writing scripts of such kind. Can somebody give some tips as to how such a cron job is written?

    Thanks

  2. #2
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Writing a Cron Job for Reminders

    Hi,

    You will need to create a script which runs everyday by scheduler.

    If you script name is myscript.php and lies into mymodule, in admin > Schedulers > Create Scheduler
    in Job you should write http://yourdomain.com/index.php?modu...ction=myscript
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  3. #3
    vanipriya is offline Senior Member
    Join Date
    Jun 2010
    Posts
    35

    Default Re: Writing a Cron Job for Reminders

    Thanks. I guessed as much.
    My probs is I've never written such scripts before. Is there any pointer to write such a script for SugarCRM ? I would like to know what functions to use in one such.

  4. #4
    davidboris is offline Sugar Community Member
    Join Date
    May 2010
    Posts
    1,113

    Default Re: Writing a Cron Job for Reminders

    Hi,

    You can build your own set of functions in your own script! It will be independent.
    So you can play with that, the way you want.
    Thumbs up.

    Skype ID - david__boris

    SugarForge Projects:

    WYSIWYG now in studio!(Version 1.1 is out now!)

    Sugar Feeds on your personalized home pages like iGoogle, My Yahoo!, etc.

    Fab Tools! > Dashlet Not Followed Opportunities for past six Months

  5. #5
    vanipriya is offline Senior Member
    Join Date
    Jun 2010
    Posts
    35

    Default Re: Writing a Cron Job for Reminders

    Ok Let me rephrase my question.

    Is there some kind of guide, which tells what files to include within the function in order to get the right details?
    I perfectly know the algorithm.. but Im still not that experienced in writing a function as good on my own.. any pointers to do this.. Any help to go about this is appreciated ...

    Thanks in advance..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. writing record to accounts_opportunities
    By wwhitman in forum Developer Help
    Replies: 3
    Last Post: 2009-10-30, 07:28 PM
  2. need help for writing custom script
    By subhajit in forum Developer Help
    Replies: 3
    Last Post: 2009-05-29, 12:07 PM
  3. Writing replacement for contact_by_email
    By malcolmpdx in forum Help
    Replies: 0
    Last Post: 2009-05-15, 10:24 PM
  4. Writing custom modules
    By wyred in forum Developer Help
    Replies: 10
    Last Post: 2006-07-03, 11:13 PM
  5. Replies: 8
    Last Post: 2006-05-31, 09:26 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
  •