现在位置:
首页 > Salesforce > 正文
salesforce执行apex job的两种方法
方法一,立即执行:
- YourScheduleApexClass s=new YourScheduleApexClass();
- s.excute(null) ;
方法二:定时执行
- SchedulerClassName sch = new SchedulerClassName();
- String cronExpression = '0 30 8 1 * * '; // 8:30am every 1st day of the month
- System.schedule('EVP Dashboard', cronExpression, sch);
============ 欢迎各位老板打赏~ ===========
与本文相关的文章
- · Salesforce VisualForce 使用apex:actionFunction调用后台方法
- · Filter Picklist Values Based on Record Type in Lightning
- · How to Call Salesforce API from Lightning Component
- · salesforce lightning icon
- · apex highlight userDefineLang for notepad++
- · 详解 Salesforce 15 和 18 位的ID
- · Salesforce Test class注意事项
- · salesforce Milestone clock is not running
- · salesforce apex traced the number of query
- · salesforce antscript无法拉取完整的profile
- · salesforce lightning report取URL参数
- · salesforce test class用现有数据测试