function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jadentjadent 

Duplicating the WhoId & WhatId

Is there anyway to duplicate the functionality of the WhoId or WhatId? That is an Id field that can lookup to multiple types of sobjects?
werewolfwerewolf
No, not in a custom object.  Nor would you necessarily want to, honestly -- you'll notice that those fields (called polymorphic fields) do not support relationship queries or cross-object workflow or anything like that.  You don't want that.
jadentjadent
I didn't think so. since i don't need any additional functionality (cross object workflow, relationship queries, etc) i would love if this was a future. not a big deal in the end, as i will just use multiple lookups and then determine which field is used