导入ABSL;导入AP.CRM.Global;
var CurrrentDate = Context.GetCurrentSystemDate();
var query = Opportunity.QueryByElements;
var p = query.CreateSelectionParams();
p.Add(query.SalesForecastExpectedProcessingDatePeriod.EndDate," I"," LT",CurrrentDate);
p.Add(query.Status.LifeCycleStatusCode," I"," EQ"," 1");
p.Add(query.Status.LifeCycleStatusCode," I"," EQ"," 2");
var res = query.ExecuteFromDB(p);
foreach(var Opp in res)
{
Opp.Name.content ="停滞的机会。自动关闭";
Opp.Stop();
}
嗨,
请评估您是否可以使用MDR(质量数据运行)功能,而不是使用工作流规则进行评估,在这种情况下,可以使用ABSL代码首先过滤所有机会,然后使用操作" STOP"关闭机会。
您可以根据客户数据量安排每月或每周MDR。
https://blogs.sap.com/2016/05/17/how-to-schedule-a-batch-job-using-mdr-in-c4c/
谢谢
Saurabh
一周热门 更多>