in version 24.4 isuseractive function is not available, is there any other way to achieve this? I just want to validate if user is acitve or deactivated or even if doesn't exist anymore in the system, we are trying to validate the scenario if for any reason the user saved in DB was deactived or deleted from the system, cause currently we are saving the result of calling the funcion loggedInUser() in DB, this is storing a text value, however we have the requirement to display the fisrtName and lastName of the user in the frontend, but if the user doesn't exist in the DB we are getting invalid user exception at the moment to use user(username,property) function, since we don't have a try-catch similiar function in version 24.4, I would like to know if there is any other way to catch the exception or change the approach following your recomendations. Any help will be greatly appreciated, thanks and regards!
Discussion posts and replies are publicly visible
Each Appian environment has a User record type that contains directory of users along with metadata like active, firstName, lastName etc. For your usecase you can create a rule to query this record type by username and get the active field value. The same can help you check user exists or not as well. So try using this record type for validations.
Hi Harsha,
I will follow this approach, thank you very much for your soon reply.