0

Hi i am trying to restrict the user to change the Acc_Id on the basis of certain field.

Below is the code : not working.

If yyyyyyyy__c = true

Suuuuuu__C = "Complete resolve

No one should be allow to change the AAcc_Id on the case.

(RecordTypeId = "vvvvvvvvvvvv"&&
((yyyyyyyy__c=true) ||
ISPICKVAL(Suuuuuu__C, "Completed"))
&& ISCHANGED( AAc_Id ))
1

for a best practice don't use recordtypeid in formula. because id 'll different in each environment. Name 'll be same in all environments. so your formula should be:

AND(
RecordType.DeveloperName = "The_recordtypename",
ISCHANGED( AAc_Id ),
OR(
    yyyyyyyy__c=true, 
    TEXT(Suuuuuu__C) = "Completed"
  )
)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.