salesforce 开发文档

本文介绍了一种使用Scheduler进行定时任务的实现方式,包括不同时间间隔的任务刷新机制,并展示了如何通过Batch处理来执行这些任务。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

System.schedule('审批历史15分刷新', '0 15 * * * ?', newProjectApprovalScheduler());                                

System.schedule('审批历史30分刷新', '0 30 * * * ?', newProjectApprovalScheduler());

System.schedule('审批历史45分刷新', '0 45 * * * ?', newProjectApprovalScheduler());

 

Scheduler写法

Scheduler中添加batch(批处理)

globalwithsharingclass SchedulerRunSendMessageBatch implements Schedulable

{

    globalvoid execute(SchedulableContext sc)

    {

        BatchSendMessage bcrbatch = new BatchSendMessage();

         Database.executeBatch(bcrbatch);

    }

}


☆ 资源说明:☆ [Packt Publishing] Salesforce CRM 权威管理手册 第2版 英文版 [Packt Publishing] Salesforce CRM The Definitive Admin Handbook 2nd Edition E Book ☆ 图书概要:☆ A comprehensive guide for the setup configuration and customization of Salesforce CRM Overview Updated for Spring "13 this book covers best practice administration principles real world experience and critical design considerations for setting up and customizing Salesforce CRM Analyze data within Salesforce by using reports dashboards custom reports and report builder A step by step guide offering clear guidance for the customization and administration of the Salesforce CRM application Connect users with people and share business information using Salesforce Chatter Learn to extend the functionality of the Salesforce CRM application through the use of the platform and technologies such as Visualforce Improve the user experience of users in Salesforce CRM by providing additional functionality using external applications from the AppExchange ☆ 出版信息:☆ [作者信息] Paul Goodey [出版机构] Packt Publishing [出版日期] 2013年07月24日 [图书页数] 426页 [图书语言] 英语 [图书格式] PDF 格式">☆ 资源说明:☆ [Packt Publishing] Salesforce CRM 权威管理手册 第2版 英文版 [Packt Publishing] Salesforce CRM The Definitive Admin Handbook 2nd Edition E Book ☆ 图书概要:☆ A comprehensive guide for the setup configuration and customization of Salesforce CRM Ove [更多]
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值