Skip to main content

New answers tagged

1 vote
Accepted

Handling Lookup Fields with Multiple Object Types in SOQL for a Custom LWC

To correctly query Polymorphic fields (field which could point of one of many objects), you need to use typeof clause. You need to construct the query like this depending on if selected field exists ...
datasert's user avatar
  • 1,009

Top 50 recent answers are included