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

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
}
}
主站蜘蛛池模板: 康乐县| 三门峡市| 松潘县| 漾濞| 沙河市| 庆安县| 神木县| 石嘴山市| 大港区| 静安区| 东乌珠穆沁旗| 陆良县| 且末县| 衡南县| 禹州市| 林西县| 永吉县| 山阴县| 曲靖市| 潞城市| 民丰县| 南召县| 石楼县| 樟树市| 南开区| 乌兰察布市| 乌什县| 外汇| 当涂县| 临沧市| 天水市| 崇阳县| 泸水县| 平潭县| 林甸县| 海门市| 芜湖县| 政和县| 平顶山市| 德保县| 靖西县|