Hi everyone, just wondering why the string is not being typecasted to both user and group and being checked which one is valid since the type is userOrGroup?
Discussion posts and replies are publicly visible
Hello deepakrana77
What is your requirement? you are expecting either a group id or an user name as an input?
Appian does not know what to do with your input string and casts it into a user.
The group has a number. You can extract that number using tointeger() function and then use it to cast it to the group. But like Kondru said, lets get clear with the requirement first.
Try this
if(isusernametaken("xxxxx"), touser("xxxxxx"), togroup(404))
To test please pick user or group in rule input. don't type like string. As you can clerly see it says no group found.