Hi expert,
how can i create a script for to blocking adding of document once the first 2 letter in the UDF (code1) e.g. TG625 is not much into 2 code in the distrution rule (Carrier) TG
please see image below for your reference:

Thank You
Regards
Silent