Solved

action template - assigned or actioning users name

  • 25 January 2023
  • 7 replies
  • 92 views

Userlevel 1
Badge +4
  • Sidekick (Customer)
  • 24 replies

I feel like I should be able to glean this from the wiki but all my attempts are coming to nothing. We want to put the Actioning user (or failing that the assigned user) name into an Action Template as people are not always signing off with their name when left to their own devices. 

Any help on finding the right variable name would be much appreciated. 

icon

Best answer by Alan Macfarlane 26 January 2023, 10:23

View original

7 replies

Userlevel 4
Badge +12

Maybe [SM_ACTIONING_USR_N]?

 

Userlevel 2
Badge +5

It depends when the template applies. Action templates are typically used in assystWeb to populate the template for an action based on the current values of the event before the action is taken. They can’t use values from the action itself because the action has not yet been taken (if that makes sense)?  

For example the syntax would be $new.actionedBy.name for actioning user, or $new.event.assignedUser.name for the assigned user, however both of those values are only populated after the action is taken.

If you need this sort of feature I’d recommend suggesting it in the Ideas forum 

   

Userlevel 1
Badge +4

Could we pulled Assigned User from the parent event for the action instead?

Userlevel 2
Badge +5

You could - though again that would be assignment before the action is taken. If the action itself is assign (or there’s any workflow that performs an assignment on the back of that action) the outcome may not be what you are looking for. If the action doesn’t reassign that will work (syntax as above)

Userlevel 1
Badge +4

ok, that would work for our purposes I believe - however the syntax you’ve given doesn’t match the style used in Action Templates which is more of the [EVENT_AFFECTED_USER_NAME] style syntax

Userlevel 3
Badge +8

We’ve been using this without issue in our templates to pull in the actioning user as well as in others their phone number, email etc. via Extended Keyword Notation functionality.

Thank you, 
[ACTIONINGUSER]
 

Etc

Userlevel 1
Badge +4

Thank you @moconnor1 that is the key piece of information I was missing. Much appreciated. 

Reply