Attachment Validation Not working
Summary:
I am written attachment validation.
Like user should not allow to delete attachment in custom object.
below is my code
def allattach = Attachment
while(allattach.hasNext())
{
def attachRow = allattach.next()
def docId = attachRow.AttachedDocumentId
if(docId==null)
{
return false
}
}
but it is not working as expect
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):
Tagged:
0