I have a custom object which stores the ranges for the mobile numbers and fixed line numbers. Mobile = 477.100.001 - 477.100.999 - This is one single record with FirstPhoneNumber & LastPhoneNumber ranges (I have such 2000 records) Fixed = 525.100.001 - 525.100.999 (2000 records for this too)
I have 2 custom fields on Account object, Mobile & Fixed, so I need to validate when the user enters out of the range.
The problem now is the Sales reps are entering the mobile in Fixed and the Fixed in Mobile, so need to validate and display an error.
I need to handle this in a trigger (should handle bulk data loads too), so first thoughts for me is implementing it using a MAP and iterating over the MAP.
Any good suggestions / advice here?
Regards