You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Schedule process not working for custom child object

in Sales 3 comments

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')

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!