Hello, 1. I created a constant of type Group that has the value of al

Hello,

1. I created a constant of type Group that has the value of all active users in our company.
2. I created a rule to extract the username of all active users.
=joinarray(getdistinctusers(topeople(cons!active_user)),char(13)&char(10))
3 - I run this rule in a script and the list is saved in a text variable (multiple) and then sent to an excel spreadsheet.

I also got another rule to fetch the username of deactivated users.
=joinarray(getdeactivatedusersby("username","",2),char(13)&char(10))

How do I get the First Name, Last Name for my deactivated/active users? I've looked on the Forum for different solution but wasn't able to apply.

Thanks

OriginalPostID-150384

OriginalPostID-150384

  Discussion posts and replies are publicly visible

Parents
  • @mjmallet Just in case, added to the above, if you are going to use the same code snippet or with slight modifications, as per my knowledge I would like to suggest to add the context local! because adding the rule inputs with the same name as local variables will cause readability issues (as there isn't a differentiation such as local! and ri!) and also the code behaves in a different manner if there isn't a context in case of same names being used for local variables and rule inputs.
Reply
  • @mjmallet Just in case, added to the above, if you are going to use the same code snippet or with slight modifications, as per my knowledge I would like to suggest to add the context local! because adding the rule inputs with the same name as local variables will cause readability issues (as there isn't a differentiation such as local! and ri!) and also the code behaves in a different manner if there isn't a context in case of same names being used for local variables and rule inputs.
Children
No Data