Salesforce Fact #726 | Accessing polymorphic fields in graphQL LWC

How do you access Polymorphic fields in graphQL wire adapter in LWC?

Suppose we want to access the related case owner names of an account in graphQL. Since, Case Owner is a polymorphic field so we need to consider both the user and queue owner possibilities.

Reference: https://developer.salesforce.com/docs/platform/lwc/guide/reference-graphql-relationships.html

Attached are the screenshots.






Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow