As I am getting a list of text strings separated by semicolons in a single line, my focus is to split them into different values. After that, I need to convert them to users using the touser() function. However, it is currently showing [ID NOT FOUND] even though the email address is already present in Appian users.
Discussion posts and replies are publicly visible
Are you sure the users' username (not e-mailadress) is that exact same string?Try achieving touser(USERNAME) for this user in isolation and see if it works. In other words, divide up the logic and test each step such that the location of your problem becomes more evident.Also you might want to mask existing e-mailaddresses
Have you checked the casing of username? If the username is test.test@gmail.com and when we try to do touser(Test.Test@gmail.com) we get this kind of error.
I think the issue is that you defined the rule input as a list of text, but then pass ONE string that contains two items.
I think casing is most likely the issue.
While your point is valid I have doubts on whether that is the issue here.
Appian seems to adjust to it.Testing the setup does produce 2 proper items for the forEach loop..
Temporarily remove the "touser" call from inside your a!forEach loop and ensure the (now text) output matches your expectations. And, I guess, double check that the email address you're trying to pass actually is a *username*. You could also replace "touser" with one of the user-checking functions (may or may not require the People Functions plugin) like "isUsernameTaken()", etc, and see what that returns as well.
Is the username the same as the email? You might encounter this issue if they are different.
I have solved this issue by checking isusernametaken() function so it is working smoothly right now !!!!
Thanks you everyone for your help and reach out to my question.... I have solved this issue by adding isusernametaken() function...