function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mannarmannar 

Dynamically populating the region depending on the zipcode,state and the country

We have developed code using standard Apex language Trigger feature
that automatically populates a field with geography information based 
on zip codes, US states and countries.   As we could not get the 
information from Apex guide on the usage of picklists for Zipcodes, states and 
countries, we had to hardcode the literals for zipcodes, states and 
countries in the trigger for checking.   We made the code working but it 
has become unreadable.  My precise questions:
 
 
1.     How do we use picklists in Triggers?
 
2.    Salesforce.com has not made Triggers available in Enterprise 
edition yet and we need to go live with the functionality in production; is 
there any other alternative you can suggest? 
 
3.    We were given a non-Apex language alternative to use but the byte 
size of the code is more than 1000 characters.
 
 
 
So far we have only received generic responses to similar queries.  Can 
you pls provide specific responses?
 
 
 
What we are requesting is not a new feature from SF.com – rather we 
want to know how to use the existing feature effiectively.†
 
 
Regards
Reena
 
 
ref:00D062.50033C4dr:ref

 

RosaRosa
Can you share the non-Apex code you mention?
Thanks.