How to get Appian current logged in USER NAME. I just need login id as text for

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

Parents
  • 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"
Reply
  • 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"
Children
No Data