The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
48 views

How to remove the row from a Visual force page using Apex Scheduler class?

I am Saving dates in 2 fields like follow, Using Visual force page and controller to enter multiple Row's, now i want to delete a row if the End Date is Passed Today, Can any one help me how to ...
1
vote
1answer
36 views

How can I query the class which the schedule job will call

I am trying to get the name of the schedule / batch classes called by the schedule job Trying this select Id,CronJobDetailId,CronJobDetail.Name, ...
5
votes
1answer
186 views

Does Test.stopTest() ensure a System.Schedule/Database.Batchable completes in a test?

I am struggling to successfully test some code that is essentially the same as the code here Apex test class for schedulable class that checks for 5 batches running already. I can get the ...
4
votes
1answer
424 views

Scheduling Batch class

How to schedule the batch for every two hours per day? I try like this String schedule = '0 0 1/2 * * ?'; System.schedule('Jobname',schedule,new SampleTracking()); but i don't know it ...
3
votes
1answer
23 views

Stopping sheduled reports by freezing user account

When a user account in Salesforce is frozen (using the freeze feature) does this prevent them getting scheduled reports that they would normally have received? For example, UserA has a role ...
-1
votes
1answer
56 views

How can I Schedule the sales report on yearly…?

I generate a yearly sales report that I want to schedule it to my manager yearly. But in salesforce schedule runs I found daily,weekly, monthly options. Is there any option to schedule the report to ...
2
votes
1answer
101 views

need help with exception failure when scheduling a send via SOAP API in PHP

I'm trying to create a scheduled send definition and I receive the following exception: [StatusMessage] => Exception occurred during [ScheduleEmailSendDefinition] ErrorID: 540318960 This is the code ...
1
vote
1answer
63 views

Best Practices: Scheduled Reports

We are having issues with tons of different users trying to schedule reports, and it is causing others to not be able to schedule their reports because only 2 reports can be scheduled in 1 hour. I am ...
0
votes
1answer
67 views

want to schedule multiple queries with multiple time frequencies

want to schedule multiple queries with multiple time frequencies query1: want to schedule for every 1 hours query2: want to schedule for every 6 hours query3: want to schedule for every 12 hours ...
2
votes
1answer
693 views

How to specify the below in System.schedule Method in salesforce

I want to write in apex code below of the following to use in System.schedule Method. For Daily i can use this String sch = '0 0 00 ? * MON-FRI'; How would I schedule a job with the following ...
0
votes
0answers
44 views

Creating trigger based on LastLoginDate of Account Owner

I have to create a trigger based on LastLoginDate of a record owner.I have some doubts regarding use of trigger event before update. Suppose user is not Logging in for some days , will the trigger ...
5
votes
2answers
650 views

Deleted scheduled jobs still appearing?

I have a legacy process that has created about 2000 scheduled jobs over 12 months. They are all appearing in the Scheduled Jobs list in the UI. However, when I query the CronTriggers object, I see ...
5
votes
1answer
2k views

Apex cron job command to schedule an apex job to run every 4 hours daily

I have a requirement where i need to run an apex batch job every 4 hours daily monday to friday and all months in a year. I looked at the apex cron job documentation to be setup using code snippets in ...
2
votes
2answers
938 views

How to access a VF page as PDF within trigger/scheduled APEX

I have run into yet another problem due to restrictions placed by Salesforce. So apparently we cannot make a call to a Visualforce page using getContent() from within a Apex trigger. Currently we ...
1
vote
1answer
40 views

Is there a way to schedule two reports at the same hour?

When I schedule a report to execute in a hour, for example 8:00 AM. I cannot schedule another report in this same hour. I want to do it for two or more reports.
1
vote
1answer
400 views

Workflow limits in response to API calls

Are there limitations on the number of workflow rules that can be triggered simultaneously for my org? Here's the situation. My company is running as Unlimited with between 100 - 200 users. My ...
2
votes
1answer
2k views

Schedule the recurrance of an apex job [duplicate]

Is there any way through which i can schedule my apex job at the desired time recurring daily. I also want this job to recur after every 15 minutes sometimes. I went through some links including ...
3
votes
1answer
486 views

Changing time of schedule task

I have a schedule task configured in force.com. I want to change the time it runs. I go to set up / monitoring / schedule jobs. But I only see the option to delete it. Is there any to make a change ...
6
votes
2answers
852 views

Session ID from scheduled jobs

Here's the scenario. I have a remote application which is invoked from an HTTP callout. In this callout, I am passing the session ID. The application can then do its stuff without needing a ...
0
votes
1answer
107 views

Scheduling Report Emails to clone of “Customer Portal Manager Custom” profile not working

Scheduling Report Emails to clone of Customer Portal Manager Custom profile is not working. This cloned profile has both, Run Reports and Export Reports, enabled, not that it should matter because: ...
3
votes
1answer
143 views

Too many script statements (in a patch org only - OK in dev org)

I have a schedulable class in my managed application. (I feel that some of the code I am about to discuss is not good code so in my defence I want to clarify that I did not write this code - I just ...
1
vote
1answer
148 views

Schedule reports based on field change

Is there a way to track individual field changes in a visual force page/build a report that shows the fields have not been updated for a while? All I want to do is keep emailing the user until a ...
5
votes
3answers
1k views

Linking CronTrigger sObjects to Scheduled Jobs listings

When using System.schedule to add apex jobs to the scheduled jobs listing it creates a CronTrigger sObject containing the expression determining when the job is set to run. However this CronTrigger ...
8
votes
4answers
1k views

Viable design for multiple batch jobs

I've recently run across multiple needs to execute multiple different batch jobs at the same time, and almost immediately hit the (somewhat inexplicable) SFDC limit of 5 batch jobs queued at once. ...