Workflow rule on Event object is not evaluating correct values for 'Event:Account' foreign key field
Platform , Sales and Marketing , Service , Workflow , Sandbox , User Interface , Service Cloud Console , Trailhead , Summer 21 , Winter 22
Last updated 2022-02-08 ·Reference W-10343607 ·Reported By 1 users
No Fix
Summary
Workflow rule criteria when defined on the "Event:Account" field of the Event object, is evaluated to NULL on CREATE operation or some incorrect value on update operation on an Events record.
Repro
1) Login into Org by using your credentials.
2) Create a WF rule with below Criteria along with some action
3) Click on Accounts Tab > Open Any account.
4) Click on New Event action under the Open Activities related list.
5) Create an Event record which matches your below WF rule Criteria.
Rule Criteria
(Event: All-Day EventEQUALS<<True/False>>) AND (Event: LocationEQUALS<<VALUE>>) AND (Event: AccountNOT EQUAL TOnull)
6)Capture Debug logs and we will find that the above rule will not fire.
EXPECTED RESULTS:
"Event:Account" field should either be not listed under rule criteria (since it's a foreign key on Event object) or if listed, WF should evaluate its value correctly.
ACTUAL RESULTS:
Currently, the Account field is listed in WF criteria but its value is incorrectly evaluated when WF is triggered.
Workaround
Use WhatId field in formula.
Reported By (1)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.