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

DCL condition is not working as per drop down for Resource object

Accepted answer
32
Views
1
Comments
in Sales 1 comment

Summary:

We have created Resource DCL field in custom object.

We need to see in DCL drop down Email address of the Resource not Name of the Resource

Content (required):

DCL condition


def var_ObjView2 = newView('Resource')

def view_criteria2 = newViewCriteria(var_ObjView2)

def row_searchValue2 = view_criteria2.createRow()

def criteria2 = row_searchValue2.ensureCriteriaItem('EmailAddress')

criteria2.setOperator('IsNot')

criteria2.setValue(null)

view_criteria2.insertRow(row_searchValue2)

var_ObjView2.appendViewCriteria(view_criteria2)

var_ObjView2.executeQuery()

while(var_ObjView2.hasNext())

{

def row2 = var_ObjView2.next()

def resourceEmail = row2.getAttribute('EmailAddress')

return resourceEmail


}

But this is not returning anything from field

Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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