I am trying to create a BPM on attachments. I have created a Pre-Processing record on XFileRef.Update. I want to prevent users from adding shortcuts as attachments. I cannot seem to get the BPM to work with any type of conditional I use.
I have a BPM that checks to see if it’s a local drive or a mapped drive, it’s an In-Transaction Data Directive on XFileRef, seems to work for us. Here’s a screenshot of the setup, maybe you can tweak it to check for shortcuts files.
I got it to show a message. I used an In-transition data directive. But it still allows the user to attach the file, after clicking OK. How do i stop the attachment?
You need use the Raise an Exception to flow control to abort the current code block and exit from the BPM.
This is a code controlled example:
if(lastUnderScore + 1 == PartNum.Length)
{
throw new Ice.BLException(“Add manufacturer to end of part number”);
}
else