1
vote
Get Object API name of any Lookup field
Here's a way to do it without Schema.getGlobalDescribe(), since Schema.getGlobalDescribe() is expensive. I've taken the other poster's code and tweaked it a bit to remove the Schema.getGlobalDescribe.
...
- 62
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
lookup × 1006apex × 189
visualforce × 130
marketing-cloud × 90
trigger × 90
ampscript × 88
custom-object × 73
master-detail × 68
relationships × 67
lookup-filter × 65
soql × 59
lightning × 37
custom-field × 33
lightning-aura-components × 32
account × 29
dataextensions × 26
contact × 26
lightning-web-components × 25
related-list × 25
search × 25
process-builder × 24
formula × 24
visual-workflow × 22
opportunity × 19
email × 17