SalesForce Interview questions


Total available count: 39
Subject - SalesForce
Subsubject - SalesForce

How to schedule batch apex in minutes/hours?

To schedule the batch class in minutes/hours, we should use the System.schedule() method.  which will take 3 parameters Job Name, Chrome Expression, and schedulable class instance name respectively.

? ?/*** Scheduling in minutes or hours ***/
SchedulableClass sc = new SchedulableClass();
DatetimesysTime = System.now();
sysTime = sysTime.addminutes(6);
? String chron_exp = '' + sysTime.second() + ' ' + sysTime.minute() + ' ' +
sysTime.hour() + ' ' + sysTime.day() + ' ' + sysTime.month() + ' ? ' +sysTime.year(); ? ? ? ? ? ?
System.schedule('Dep Update'+sysTime.getTime(),chron_exp, sc);

 




Next 5 interview question(s)

1
What are the types of Collections available in Apex?
2
What is the difference between non-static and static?
3
What is difference between Action support and Action function?
4
What are context variables in triggers?
5
What are different type of Triggers?