Skip to main content
Tomasz Indyk (Company) 님이 #Formulas에 질문했습니다

Hi,

I've a case where I have to add opportunity to change checkbox (checbox__c) to false only for 2 profiles (profile 1 and profile 2) when status on my objectABC__c is Coller OR Power

 

is it possible to do this using validation rule ?

답변 5개
  1. 2020년 8월 20일 오후 5:50
    Please try this validation (assuming objectABC__c is a picklist field)

    AND(

    PRIORVALUE(checkbox__c )==true ,

    ISCHANGED(checkbox__c )

    , OR(ISPICKVAL(objectABC__c, 'Coller'),ISPICKVAL(objectABC__c, 'Power'))

    , $

    Profile.Id

    <> profile1_Id

    , $

    Profile.Id

    <> profile2_Id

    )

0/9000