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
8 subscribers
Views
3890 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
How to show the user name in SAIL form who accepts the Same Task form
Piyush Agarwal
over 7 years ago
I want to display the user name in the FORM after he accepts the task form.
I have tried to capture it via task properties but couldn't get through.
Can any one please suggest. Thanks
OriginalPostID-244425
Discussion posts and replies are publicly visible
0
rodgraham
Certified Lead Developer
over 7 years ago
You can use loggedinuser() if you want to display in the form the user that's opened the task
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rodgraham
Certified Lead Developer
over 7 years ago
depending on how you want to display it you could do user(loggedinuser(),"firstName") & " " & user(loggedinuser(),"lastName")
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
rishub
over 7 years ago
You van use APN_displayName
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ramesh Gudipati
over 7 years ago
Create a task report and add a clomun for task_assignee_owner property from "Task Metrics" properties. Using a!queryProcessAnalytics we can pull the current assigned user name or user group.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Shashank
over 7 years ago
@piyusha
Hi as said above afaik the loggedinuser() is a better option to get the user who is currently acting on the sail form
I would also like to add that the task properties from which you are trying to retreive the user i.e, tp!taskowner is restricted to a specific node only and the value will not be available after that node (user input task) has been completed
Thanks
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jagadeesh
Certified Senior Developer
over 7 years ago
As said above simply you can go for loggedinuser()..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Alok Patro
over 7 years ago
@piyusha
you can try the below expression rule :
load(
local!user:loggedinuser(),
user(local!user,"firstName") & " " & user(local!user,"lastName")
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 7 years ago
@piyusha I would say it depends. So there could be two cases here afaik:
1. Multiple task assignees
Let's say a task is assigned to multiple assignees (array of Users or array of Groups or a combination of both) and one of the assignee(a User) has opened the task but hasn't accepted it. Then it might not be useful if you start showing the logged in user as owner of the task because a logged in user becomes Owner only when the task is accpeted by him/her. It might be worth depending on task status and then show the logged in user. That is, check if the task status is Accepted, and then start showing the logged in user as Owner, else surface a null value till the task is Accepted.
2. Where the user is the task assignee
Here it makes sense to go ahead with the logged in user and depending on analytics is a redudnat job. (As a side note, this logic defies, if the user has capability to reassign task and if user assigns task to more than one(or if the task is assigned to multiple assignees as part of Support from a Task Report) and this won't be valid and option 1 is the best bet.)
task_assignee_owner might not be an option because it displays the task assignee information(until the task is accepted) which I would call it as redudant because it's already available on the top of the task, that is, near the Accept button when you open the Task and also in the Task list above a Task name and moreover what it displays is not a Owner until and unless the task status turns to Accepted.
Let us know if your question is about querying the task properties and we are more than happy to assist.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sowjanyav430
over 7 years ago
@piyusha...
AFAIK...LoggedIn user is the task owner...(provided the task assigned to the logged in user)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
harishkumart
Certified Lead Developer
over 7 years ago
@piyusha I would recommend to check the status of the task and then if it is accepted by the user then display the logged in user if you are sure that the task is always assigned to a group or if there is apossibility ao assigning the task either to user or a group. Else if the task is always assigned to a single user then loggedinuser() should serve your purpose.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel