You need to sign in to do that
Don't have an account?

Write a trigger to reduce priority field on custom object?
I want to write a trigger so that once a status of my object changed from high to low priority field shoud be updated by Null and all the records which has peiority greater than the current record should be decreased by 1.
How many records do estimate, you may need a batch or queueable if it is thousands of records.
Currently we have 3000 records it will be increase in future.