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

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
}
}
主站蜘蛛池模板: 曲麻莱县| 梅河口市| 天津市| 会同县| 丹东市| 邢台县| 万安县| 浑源县| 眉山市| 喀喇沁旗| 洛扎县| 芦溪县| 富蕴县| 梁山县| 普宁市| 临夏市| 马关县| 迭部县| 安塞县| 阿城市| 抚远县| 晋江市| 清远市| 元谋县| 百色市| 什邡市| 新津县| 铜川市| 晋中市| 安泽县| 澜沧| 隆子县| 景德镇市| 黄石市| 济宁市| 永定县| 大港区| 自治县| 修武县| 繁昌县| 静乐县|