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

Check if the opportunity has been inactive for a year using last modified date.
I'm trying to check if an opportunity has been inactive for a year. If yes, I'll send an email notification.
I'm using process builder to do this. But I'm not sure how to check if Last modified date was before 12 months from today. I'm able to come up with
this Opportunity.LastModifiedDate < TODAY - DAYS(365)
Let me know what modifications needs to be done

I'm using process builder to do this. But I'm not sure how to check if Last modified date was before 12 months from today. I'm able to come up with
this Opportunity.LastModifiedDate < TODAY - DAYS(365)
Let me know what modifications needs to be done
Please find the Below Code
Batch Class
Schedulable Class To schedule the class you need to execute the below code in the developer console.
All Answers
1. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_batch_interface.htm
2. https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_scheduler.htm
Please find the Below Code
Batch Class
Schedulable Class To schedule the class you need to execute the below code in the developer console.
Can you please this part of the code?
What modifications should I do if I want to schedule these check automatically everyday at noon (11:59 AM)?