- Learning Salesforce Visual Workflow and Process Builder(Second Edition)
- Rakesh Gupta
- 122字
- 2021-07-09 20:57:33
Solution 1 - using Apex
We can't achieve this goal by the Workflow rule. For this, we have to write an Apex class that implements the Schedulable interface for the class and then use Schedule Apex to run it on a regular basis. The following is the code for this Apex class:
global class SendChatterEmail implements Schedulable
{
global SendChatterEmail (){
// Batch Constructor
}
// Start Method
global Database.QueryLocator start(){
/* Use SOQL query to get the records you want to operate upon
select Id, fullPhotoUrl from User where isactive = true AND FullPhotoUrl like '%photo/005%'*/
}
// Execute Logic
global void execute(){
// perform the operation
}
global void finish(){
// Logic which we want to execute at finish
}
}
推薦閱讀
- 中國國民經濟核算體系修訂問題研究
- 金融科技(FinTech)發展的國際經驗和中國政策取向(中國金融四十人論壇書系)
- Citrix XenApp? 7.5 Desktop Virtualization Solutions
- 金融保險集團內部審計創新與實踐
- Azure Strategy and Implementation Guide
- Microsoft Dynamics NAV Financial Management
- 審計實務案例與實訓教程
- 成功通過PMP(第3版)
- 傳習集2
- Stata統計分析與行業應用案例詳解(第2版)
- 審計定價問題研究
- 圖解經濟博弈論(圖解經濟學叢書)
- 中國重點經濟領域統計分析
- 規范內部審計的28個技巧
- Windows Server 2016 Administration Fundamentals