Closed
Sales / Sales Productivity
Parent.Type filter in Apex Test context does not work for the Task and Event objects
Summary
Parent.Type filter does not work for the Task and Event objects when used in Apex test context. The filter works fine in other cases.
- Actual Result
When the filter is used in Apex test context, no records are returned.
- Expected Result
The filter works in Apex test context. Properly filtered records are returned.
- Actual Result
When the filter is used in Apex test context, no records are returned.
- Expected Result
The filter works in Apex test context. Properly filtered records are returned.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Closed
Nov 30, 2026