Hello, I'm trying to obtain the name of the user executing a skill when pressing a button. I've seen that there is a function USER_NAME(), but I don't know where I should define it for it to work correctly. Thank you very much!
Hi @gema.blanc,
I have been looking to it, but sadly I couldn't get to return the name for the user when using a skill. The USER_NAME() function is a PQL function which I tried to map to a variable which can then be used in a skill as input, but that to my current understanding is not possible. 😓
Hopefully someone else can shed light on how to do it, I would be interested as well.
Hi both,
Possibly a slightly different use case using action table as I'm not clear if you are referring to just using a button to trigger a more generic skill rather than a specific record related skill but hopefully the below helps in some way.
- Create an attribute within knowledge model for user. pql: USER_NAME()
- Create your skill with relevant inputs
- Within knowledge model - add action and add the newly created user attribute to the input
When the action is then run from the Action Table button in the view, it will pick up the current user details and pass it into the skill.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.