Salesforce Fact #606 | getters in Address class

We have a couple of getter methods in Address class. So, while fetching the address field values in SOQL, it is not needed to select each address part field. We can make use of these getters to get the data.

Reference: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_system_Address.htm#apex_system_Address_getCity

Attached are the screenshots.




Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow