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
+2
person also asked this
people also asked this
Replies
3 replies
Answers
1 answer
Subscribers
10 subscribers
Views
5286 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
When i am using the logged in user function, it is giving me "administrator
himanshug
over 11 years ago
When i am using the logged in user function, it is giving me "administrator" , however i am want the name of the person logged in . Can anybody help me with that ?...
OriginalPostID-92219
OriginalPostID-92219
Discussion posts and replies are publicly visible
Parents
+1
Eduardo Fuentes
Appian Employee
over 11 years ago
Besides emphasizing on the importance of what Jed suggested I'd like to mention that as discussed here
forum.appian.com/.../e-83588
it's important that you review the documentation of this function
forum.appian.com/.../Scripting_Functions
The loggedinuser() consistently works if you take in consideration the documented behavior:
- If there is no user context, such as when used in an expression in an unattended node, it returns a null value.
- It is only applicable in situations where there is a user context pre-populated for the activity, such as when executing a Quick Task or a subsequent activity-chained task.
---> As long as you don't un-check the "Refresh default values every time the task form is viewed" checkbox which comes enabled by default for quick tasks.
- In task forms that do not follow an activity-chained flow you need to select the "Refresh default values every time the task form is viewed" checkbox on the Other tab of the activity, otherwise will return "Administrator"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
+1
Eduardo Fuentes
Appian Employee
over 11 years ago
Besides emphasizing on the importance of what Jed suggested I'd like to mention that as discussed here
forum.appian.com/.../e-83588
it's important that you review the documentation of this function
forum.appian.com/.../Scripting_Functions
The loggedinuser() consistently works if you take in consideration the documented behavior:
- If there is no user context, such as when used in an expression in an unattended node, it returns a null value.
- It is only applicable in situations where there is a user context pre-populated for the activity, such as when executing a Quick Task or a subsequent activity-chained task.
---> As long as you don't un-check the "Refresh default values every time the task form is viewed" checkbox which comes enabled by default for quick tasks.
- In task forms that do not follow an activity-chained flow you need to select the "Refresh default values every time the task form is viewed" checkbox on the Other tab of the activity, otherwise will return "Administrator"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
0
Ben Anderson
over 6 years ago
in reply to
Eduardo Fuentes
Very good to know. Thanks for sharing!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel