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 Attachments

Accepted answer
12
Views
4
Comments
edited Oct 29, 2019 1:03PM in General Functional Discussions 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

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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