Blogs
-
How can we know State and Country Picklist is enabled or not in an org using Apex Code
Question How can we know State and Country Picklist is enabled in the Salesforce org or not using Apex code SOLUTION When you enable that feature SFDC creates a countryCode field for each object where the address exists. Then you could check if that field exist using something like this: Other generic option:
-
How To Access Country & State Picklist Values In Apex
Description This article gives you sample code to access the state and country pick-list values if it is enabled in your Salesforce org. Solution Makes sure the state and country picklist is enabled in the ORG. 1. Following is the sample code for accessing all the country codes: 2. Following is the sample code for…
-
What do Apex Triggers represent in Salesforce?| Insights from the Developer Guide
What do triggers entail “Triggers in Apex can be activated to initiate custom actions either prior to or following modifications to Salesforce records, including inserts, updates, or deletions.” What categories of triggers exist in Salesforce There are two trigger categories Trigger Event Categories Syntax for Triggers “What do Trigger Context Variables encompass?” Sequence of Execution…