• lagan
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 3
    Replies
Hi All,
I am new to salesforce and i am rying to write a validation rule on a record type where the requirement is validation rule is to force certain record types to only be assigned to certain queues and that the XYZ recordtype can only be assigned to individual users or to the queues that the record type uses.

AND(
$RecordType.DeveloperName = "XYZ",

(OR(Owner.Queue.DeveloperName = "ABC",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "BCa",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "DCE",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "FGR",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "FGH",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "JUK",NOT(iSBLANK(Owner.User.Email))))
)

Please Help me on this and let me know where i am missing .Thanks in advance!!!
  • August 18, 2018
  • Like
  • 0
Hi All,
I am new to salesforce and i am rying to write a validation rule on a record type where the requirement is validation rule is to force certain record types to only be assigned to certain queues and that the XYZ recordtype can only be assigned to individual users or to the queues that the record type uses.

AND(
$RecordType.DeveloperName = "XYZ",

(OR(Owner.Queue.DeveloperName = "ABC",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "BCa",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "DCE",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "FGR",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "FGH",NOT(iSBLANK(Owner.User.Email)))),
(OR(Owner.Queue.DeveloperName = "JUK",NOT(iSBLANK(Owner.User.Email))))
)

Please Help me on this and let me know where i am missing .Thanks in advance!!!
  • August 18, 2018
  • Like
  • 0