Schedule process not working for custom child object
Summary:
Schedule process not working for custom child object
Just i am checking to set value via schedule process but its showing retry status.
def Currentdate = today()+90
println("date1"+Currentdate)
println("today()"+today())
def vo = newView("Product_Qualified_c");
def vc = vo.createViewCriteria();
def vcr = vc.createRow();
def vci = vcr.ensureCriteriaItem("ExpirationDate_c");
vci.setOperator("=");
vci.setValue(Currentdate);
vc.add(vcr);
vo.appendViewCriteria(vc);
vo.setMaxFetchSize(10 as short);
vo.executeQuery();
def count1=vo.getEstimatedRowCount()
println('count ' + count1);
while(vo.hasNext())
{
//println('hi1 ');
def row1 = vo.next();
//def Region = row1.getAttribute('Region_c')
def TLA = row1.getAttribute('TLANumber_c')
Tagged:
0