• MPBSL
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 1
    Replies

Hi,

 

I have to deactivate users who have not logged into Salesforce since last 60 days but prior to that I have to send them an email from Apex class on their 53rd day of no logging. I want to perform both functionality in same batch class i.e send email on 53 days criteria to users and inactive users who have completed 60 days mark.

 

Can we call execute method twice?

 

Any help would be good.

 

Thanks,

Mayank Pant