Validation Rule is not working when using a hardcoded ID #inSalesforce

Validation Rule is not working when using a hardcoded ID 


Note: Hardcoding is not recommended.


Make sure the hardcoded ID is 15 character ID (not 18)


AND(

ISCHANGED(OwnerId),

PRIORVALUE(OwnerId)='0055g00000AYpjXAAT'

)


Improve it:

AND(

ISCHANGED(OwnerId),

PRIORVALUE(OwnerId)='0055g00000AYpjX'

)

Comments