I am running a script that throws an error when I set a field that has Unique Value Validation on it. A dialogue comes up with my custom dialog and it give me an option to
Yes (add it)
No (don't add it)
After this I set a variable to Get (Last Error). It only shows the 504 error if I click No. I want to be able to click Yes and have the script still catch the error. How can I do this. If I click yes then Get (Last Error) = 0 and that is not what I want.