We have try to find all items under treelist field.
Example
$rawIds = [Sitecore.Data.Fields.MultilistField]$page.Fields["Sub Category Pages"]
Here getting $rawIds
as null
.
Please note here "Sub Category Pages" is TreeList Queryable field. If any field type is mutlilist
then we are getting data.
Kindly suggest.