Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
10 replies
Subscribers
9 subscribers
Views
9518 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Is there any function available to check if variable value is "User" or "group"?
Amir Hanif
Certified Lead Developer
over 8 years ago
Hi,
I have a variable "assignee" of "User or Group" type. I want to know if user enter "User" or "group" as an input for this variable. Is there any function available to check if variable value is "User" or "group"?
OriginalPostID-271256
Discussion posts and replies are publicly visible
Top Replies
Durgesh
over 8 years ago
+1
A Score Level 2
AFAIK there is no in-built function to verify weather it is a user or group. I think you can make a use of typeof() function to check this. This function return integer value for the type. Suppose, if…
Parents
0
Durgesh
A Score Level 2
over 8 years ago
I have found one alternative to your ask - create an expression rule and pass one input parameter of type (User or Group). Write below code inside expression rule, verify it.
with(
local!castValue: cast(3, ri!input),
find("[", local!castValue, 0) /* 1 means Group, 0 means User*/
)
Let me know if that works.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Durgesh
A Score Level 2
over 8 years ago
I have found one alternative to your ask - create an expression rule and pass one input parameter of type (User or Group). Write below code inside expression rule, verify it.
with(
local!castValue: cast(3, ri!input),
find("[", local!castValue, 0) /* 1 means Group, 0 means User*/
)
Let me know if that works.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data