[SalesForce] Formula for a workflow rule

I'd like to have a workflow rule fire when a record is owned by queue A and then changes owner.

What I have so far is:

AND(
ISCHANGED(OwnerId),
PRIORVALUE(OwnerId) = 'QueueId'
)

I've tried both the QueueId and just the Id of the QueueSObject for the PRIORVALUE check. The rule does not fire. Is it not possible to look up the OwnerId prior value at that time when the rule is evaluated?

Best Answer

In order to use ISCHANGED() and PRIORVALUE(), you must setup your workflow rule to fire "Every time a record is created or edited."

Related Topic