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
Naveen DhanarajNaveen Dhanaraj 

write a class and trigger if the attempt is very first time the status should not be equal to Inprogress or completed. if it is it should throw an error

Naveen DhanarajNaveen Dhanaraj
In this i have a student and attempt as a object and in attempt i have lookup field as student ,status as picklist(values= inprogress , completed)
Amit Chaudhary 8Amit Chaudhary 8
Hi Naveen,

I will recommend you to please start developing your code and we will help you.
For learning please use trailhead i hope that will help you
1) https://developer.salesforce.com/trailhead/module/apex_triggers

Let us know if this will help you

Thanks,
Amit Chaudhary
Naveen DhanarajNaveen Dhanaraj
Thanks !!!!!@ Amit Chaudhary 8