Apex

  • If you’ve got a Salesforce record Id, need to quickly find out what object type the record is, then you can use the following snippet via execute anonymous in your Salesforce org. You just replace the myRecordId value with the Record ID that you’re working with.

  • Until recent years, Salesforce did not allow you to do a Select All fields type statement. As a new lazy developer transitioning to the Salesforce platform I cursed the number of times I had to go to away and get the API name for a set of fields that I wanted to include in a…