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
nusrat khowajanusrat khowaja 

help me to write my first apex tigger

Hi,
I am new in salesforce and have a lot of challenges to learn salesforce development. I got this task to complete but have no idea what to do :(
Please help me to complete this task .
Thanks in advance.
Create a field called Alexa Rank in accounts and a field called size
alexa rank field = numerical
Size field has 6 values "enterprise, small mid, mid mid, large mid, and small business"
automation: update the Size field when the Alexa Rank field is updated
size alexa rank
<=100000 enterprise
<= 150000 large mid
<= 250000 mid mid
<=500000 small mid
>= 500000 small business
upload a list of leads. but before you upload check the input file for fields that do not exist in the leads object. Create those fields and then upload the recoards.
upload a list of accounts. but before you upload check the input file for fields that do not exist in the leads object. Create those fields and then upload the recoards.​​​
SonamSonam (Salesforce Developers) 
Hi Nusrat,

Reading the requirement, I think this can be accomplished using the process builder: https://help.salesforce.com/apex/HTViewHelpDoc?id=process_userinterface_values.htm&language=en_US