Skip to content

Brian Cline

Solution Architect skilled in Salesforce, NetSuite and JavaScript Development

  • About
  • Resume
  • JavaScript
  • Salesforce
  • Contact
  • Articles
  • About
  • Resume
  • JavaScript
  • Salesforce
  • Contact
  • Articles

Tag: Dynamic Apex

How to use Salesforce’s Apex getPopulatedFieldsAsMap

August 8, 2024Brian ClineSalesforceDynamic Apex, Salesforce Apex

The getPopulatedFieldsAsMap method, introduced in recent Salesforce updates, is a powerful addition for dealing with dynamic apex or SObject instances. This method enables us developers to easily retrieve a map of all fields in an SObject that have been populated, meaning fields that have been set or contain a non-null value. What is getPopulatedFieldsAsMap? The…

Read More

Apex: How to Dynamically Tell if a Salesforce Field Exists

March 29, 2016Brian Cline3 CommentsProgramming, SalesforceDescribe, Dynamic Apex, Dynamic SOQL, Salesforce

Lately, I’ve been working on a lot of dynamic apex and soql. I had a requirement to develop a custom appexchange app that could be dynamically querying objects based on a mapping that the admin had supplied and had stored in custom settings. Originally, I was querying to see if the field existed and returning…

Read More

Developed by Think Up Themes Ltd. Powered by WordPress.