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.

  1. 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.

Related Articles

Last updated on 17th Feb 2026