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
29 replies
Answers
1 answer
Subscribers
10 subscribers
Views
27896 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
How to get Appian current logged in USER NAME. I just need login id as text for
dhavals
over 11 years ago
How to get Appian current logged in USER NAME. I just need login id as text for current logged in user.
thanks...
OriginalPostID-83588
OriginalPostID-83588
Discussion posts and replies are publicly visible
Top Replies
Bibhuti Mohapatra
over 5 years ago
+2
suggested
Certified Lead Developer
Hello Dhavals, You can use - user(loggedInUser(), "username") - to get the user name of the current logged in user. user(loggedInUser(), "firstName") - to get the firstName of the current logged…
Stewart Burchell
over 2 years ago
in reply to
mkhaiserulla
+1
Appian Employee
In a User Interface a save to a rule input will only be triggered as the result of a User Interaction on the form. If you want the loggedInUser() saved to a column in a database table then set it in the…
Stewart Burchell
over 2 years ago
in reply to
mkhaiserulla
+1
Appian Employee
As I said your values will be passed to the rule inputs when a user action is made in the form. You could therefore set the value of your target the rule input with fn!loggedInUser() as part of the save…
Parents
0
Eduardo Fuentes
Appian Employee
over 11 years ago
In general and to summarize the previous suggestions, the advice is: make sure to review the documentation
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
Cancel
Reply
0
Eduardo Fuentes
Appian Employee
over 11 years ago
In general and to summarize the previous suggestions, the advice is: make sure to review the documentation
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
Cancel
Children
No Data