官术网_书友最值得收藏!

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
}
}
主站蜘蛛池模板: 枞阳县| 沙湾县| 武川县| 会理县| 衡水市| 如皋市| 双流县| 大冶市| 阜阳市| 襄樊市| 吉林市| 临夏市| 武功县| 巴青县| 开平市| 开平市| 柏乡县| 和平区| 香格里拉县| 手游| 江安县| 太和县| 桃园市| 松原市| 钟山县| 辽宁省| 达孜县| 荃湾区| 上饶市| 色达县| 麻阳| 吉安县| 阳新县| 汕尾市| 龙川县| 监利县| 洛阳市| 剑河县| 郎溪县| 台州市| 邓州市|