function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lilranger74lilranger74 

Case Transfer Notification Rule Criteria

We are trying to set up a notification to queue members when a case gets transferred to their queue (not created), but there are a few queues that do not want these notifications.  What would be the easiest way to filter them out without having to put all the queue ids in the formula or is that the only way?

This is what is currently in place:

AND(    NOT (ISNEW()),    NOT(ISNULL(OwnerId)),    PRIORVALUE(OwnerId) != OwnerId,   BEGINS(OwnerId,"00G") )

As an exampl I need to filter out 00Gxxxx and 00Gxxxxyyyy from those notifications.

Any help would be greatly appreciated.
Vinita_SFDCVinita_SFDC
Hello,

In formula you will have to provide IDs, also if you go by apex code then also you need to specify queues with some logic.

In formula you have to consider charaecter limit.
AgiAgi
AND(    NOT (ISNEW()),    NOT(ISNULL(OwnerId)),    PRIORVALUE(OwnerId) != OwnerId,   BEGINS(OwnerId,"00G"),
OR (OwnerId <> "00Gxxxx" , OwnerId  <> "00Gxxxxyyyy"))