You need to sign in to do that
Don't have an account?
Alvin Tan
Get Apex Object Reference Id Values
Is there a way for me to get reference fields name or values easily when I have an instance of an object. For example, Case has the field contact name. In apex when I access this field it is the id of a contact rather than the name. Is there an efficient way for me to get values, specifically name, out of the Contact that belongs to that id without trying having to query the whole contact object and any other reference objects that I may need?
Thanks!
Thanks!
Hope that your day is off to an amazing start. What you're asking for requires a SOQL query but it doesn't require the return of the entire database. I would use the below query to return the name of a contact associated to the Case record I am using if I was in your position. Please let us know if this helps and have a blessed day.
Best Regards,
Anthony McDougald
Thanks for the response! Based off your response, I'm assuming there's no simpler function calls or forms of dot walking that can get me to roughly equivalent to that SOQL query? Thanks!
free ringtones for android (https://myxerfreeringtonesdownload.com/free-music-ringtones-for-android/)