How to put validation for the Attachment
Summary
The Lead should not be Converted to agreement without an attachmentContent
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:
0