Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
4 replies
Answers
1 answer
Subscribers
11 subscribers
Views
5737 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Administration
Is there anyway to convert an email address into an Appian user type value?
Tim
Certified Lead Developer
over 11 years ago
Is there anyway to convert an email address into an Appian user type value?
My process is starting via an inbound email and I want to make the sender of the email the process initiator as it is a busines user.
Any other suggestions on how to acheive this?...
OriginalPostID-65351
OriginalPostID-65351
Discussion posts and replies are publicly visible
Parents
+1
Lakshmi Meyyappan
over 6 years ago
If there is not a plugin available, then you will likely have to write an expression rule to get the information. If you get all users from the specific group of business users, then compare their e-mail addresses to the given e-mail, you should be able to match up the username. The limitations here are that if the email address is used for more than one user then all users will be returned. And if the e-mail address is not used then you will be left with a null value, both of which could cause issues in the process.
Your expression rule would look something like this:
with(
local!allUsers: getdistinctusers(togroup(26)),
index(
local!allUsers,
wherecontains(
ri!email,
a!forEach(local!allUsers, user(fv!item, "email"))
)
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
0
chandu
A Score Level 2
over 6 years ago
in reply to
Lakshmi Meyyappan
You can use this as well and will work in <17.2
with(
local!listOfUsers: getdistinctusers(
togroup(
cons!YOUR_BUSSINESS_GROUP
)
),
index(
local!listOfUsers,
wherecontains(
"CHANDRASEKHAR.GATTU@GMAIL.COM",
apply(
user(
_,
"email"
),
local!listOfUsers
)
)
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
chandu
A Score Level 2
over 6 years ago
in reply to
Lakshmi Meyyappan
You can use this as well and will work in <17.2
with(
local!listOfUsers: getdistinctusers(
togroup(
cons!YOUR_BUSSINESS_GROUP
)
),
index(
local!listOfUsers,
wherecontains(
"CHANDRASEKHAR.GATTU@GMAIL.COM",
apply(
user(
_,
"email"
),
local!listOfUsers
)
)
)
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data