• kerwin
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Is there a way to cast or convert a Salesforce object ID into into an object?

 

I'm doing a SOQL query that gives me a list of child objects.  Included in that list is an ID for a parent object (parent is a lookup field).  I need the parent object.  What's the best way to get this?

 

I could have put another SOQL query within my original for loop, but I realize that's not recommended due to the limit on SOQL queries.