I have an object named EXAM, exams have a unique Autonumber ID that starts from 0 and goes up to 10000. But this auto number is recorded as a TEXT by default.
I want to create a loop, that goes in to all the exams, checks if it has passed a expiration_date, and set it's exam_status to expired.
how do, set and get functions work on apex?