<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>AWAL_BlockForNonBaUsers</fullName>
    <active>true</active>
    <errorConditionFormula>AND(
    RecordType.DeveloperName = &quot;AWAL&quot;,
    NOT($Permission.AWAL_Bypass_VRs),
    NOT($Permission.AWAL_AllowBAStageUpdates),
    ISCHANGED(StageName),
    OR(
        ISPICKVAL(StageName, &quot;With BA (Short Form)&quot;),
        ISPICKVAL(StageName, &quot;With BA (Long Form)&quot;)
    )
)</errorConditionFormula>
    <errorDisplayField>StageName</errorDisplayField>
    <errorMessage>Only allowed BA users with permission can edit the stage when it reaches &quot;Passed to BA&quot;.</errorMessage>
</ValidationRule>
