rule which gives me a list of users whose last login date was a year back

Certified Associate Developer

Hi,

Can Someone help in writing a rule which gives me a list of users whose last login date was a year back.

I wrote this rule but it is pulling users with the lastlogin date as null. Please correct me

a!forEach(
  expression: if(todatetime(getuserlastlogin(fv!item)) 
              < ri!datetime,fv!item,""),
  items: getdistinctusers(cons!PDS_USERS_TYPE)
)

Thanks in Advance

  Discussion posts and replies are publicly visible