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
Kamil MieczakowskiKamil Mieczakowski 

Workflow with a formula using ISCHANGED and PRIORVALUE

I am working on creating a workflow that updates a tickbox field (to TRUE) whenever the Account Owner changes from a specific one to a new one (any owner).

Here's the formula I came up with:

Record Type: Account
Evaluation: Evaluate the rule when a record is created, or edited

Formula evaluates to TRUE:

AND(
ISCHANGED(OwnerId),
PRIORVALUE( OwnerId)= "XXXXXXXXXXXXXXXX"
)

When checking its syntax Salesforce doesn't report any errors. However, when checking the workflow in action (it's been activated) the tick box  doesn't get ticked.

Any ideas as to why the workflow may not be working?
Best Answer chosen by Kamil Mieczakowski
Kamil MieczakowskiKamil Mieczakowski
It works now. I did a silly thing, but will share anyway just in case someone comes across this and it saves them time. 

I didn't tick the following checkbox in the Field Update Definition section:

User-added image

All Answers

sunny522sunny522
Hi Kamil,
  Please check workflow is activated or not.Also check whether the ownerid u r passing is correct(previous owner id-15 digits or 18 digits)
Kamil MieczakowskiKamil Mieczakowski
Hi Sunny thank you for your help. The workflow is definitely activated, and I am passing the correct ID. 
sunny522sunny522
Hi Kamil,
 Please very by looking into the images below.Its working for me
User-added imageUser-added image
Here I am updating checklist checkbox to true.
Let me know if you need more help..Plz share screenshot if its not yet resolved.
Kamil MieczakowskiKamil Mieczakowski
It works now. I did a silly thing, but will share anyway just in case someone comes across this and it saves them time. 

I didn't tick the following checkbox in the Field Update Definition section:

User-added image
This was selected as the best answer
sunny522sunny522
cool