Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- Regarding Schedule jobs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Regarding Schedule jobs
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-15-2012 11:46 AM
Hi All,
I have a schedule job of email alerts for task due date. It runs every day at 7.00am and checks for task over dues. If I created a record at 1.00pm with the overdue coondition satisfying then do I get a mail instantaneously or I get mail when the scheduled job run tomorrow at 7.00 and sees this as overdue and maile me?
Solved! Go to Solution.
Re: Regarding Schedule jobs
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-15-2012 11:49 AM
if it's a scheduled batch job sending these emails then the email would be fired on the next 7am firing of the job. you wouldn't get anything immediate unless a trigger or workflow rule fires the email instead of the scheduled job. i think.
Certified Salesforce Developer
Re: Regarding Schedule jobs
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-15-2012 11:59 AM
Thanks Rob. But I need to see now if its actually working. My condition of due date is activity date -2. So I have created a task with due date 17th and Scheduled the job every day at 7.00am. SO could you give me any idea of what I need to do to get an isnstant result.. Do I need to change the scheduled job time?
Re: Regarding Schedule jobs
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-15-2012 12:07 PM
just kick off your schedulable job with something like the below in the developer console to test it. where it says 24 in red...that means the job will start at 24 minutes after the start of the hour. so if it's 3:06 pm now, just change that 24 to a 7, and the job will run at 3:07
testJob s = new testJob();
string sch = '0 24 * * 1-12 ? *';
system.schedule('job1',sch,s);
Certified Salesforce Developer

