Is it necessary to always specify the parent object for a polymorphic field?
Answer.
Yes, polymorphic fields require an explicit target object type.
Define the parent type directly in the query.
- In the query itself, for example:
"query": "SELECT Id, ParentId$Case FROM FeedItem WHERE Parent.Type = 'Case'"
"query": "SELECT Id, ParentId$Case, Name, Body FROM Attachment WHERE Parent.Type = 'Case'"
SFDMU cannot reliably infer polymorphic target object types from metadata alone. Therefore, explicit query notation is required.