You need to sign in to do that
Don't have an account?
Madhuri Londhe
SOQL query to get records created date greater than 5 years .
Hi,
I need to write a batch class on one of object records whose created date greater than 5 years .
Please help me to write correct filter condition for this.
I need to write a batch class on one of object records whose created date greater than 5 years .
Please help me to write correct filter condition for this.
You can use LAST_N_YEARS Date Literals in your batch, this will help you.
If you found it useful please appreciate my efforts and mark it as the best answer.
LinkedIn: https://www.linkedin.com/in/soyab-hussain-b380b1194/
Regards,
Soyab
All Answers
You can use LAST_N_YEARS Date Literals in your batch, this will help you.
If you found it useful please appreciate my efforts and mark it as the best answer.
LinkedIn: https://www.linkedin.com/in/soyab-hussain-b380b1194/
Regards,
Soyab
Thank you. Its working fine for me.