• vishal yadav 78
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 5
    Replies
Hi folk,

i want to write a batch class for users , like which users are not logged in for 30 days and created but not not logged in within 5day, be auto matically de-activated. Field should be Last Deactivated.
How to do?  Please help me out frields as soon as possible.
schenario is--

select field from user where last loginedate < custom setting and profile in (custom settings)) and username not in (custom setting)

select field from user where last logindate is null and profile in (custom setting) and username not in (custom setting) and created date<-----

isActive--false
date--currect date
 
Hi folk,

i want to write a batch class for users , like which users are not logged in for 30 days and created but not not logged in within 5day, be auto matically de-activated. Field should be Last Deactivated.
How to do?  Please help me out frields as soon as possible.
schenario is--

select field from user where last loginedate < custom setting and profile in (custom settings)) and username not in (custom setting)

select field from user where last logindate is null and profile in (custom setting) and username not in (custom setting) and created date<-----

isActive--false
date--currect date