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

How to put validation for the Attachment

edited Oct 30, 2019 2:45PM in Sales 4 comments

Summary

The Lead should not be Converted to agreement without an attachment

Content

Hi All,

 The lead should not be converted to agreement (custom object) without an attachment

I tried the below script its not working.Kindly help me on this requirement.

 

if (LeadStatus_Custom_c == 'CONVERTED')
{
   def attachVO=Attachment
  if(!attachVO.hasNext())
  {
  throw new oracle.jbo.ValidationException("You are not allow to covert the Agreement without Attachment")
    
   
}
}

 

Regards,

Deepak

Version:
19B
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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