Skip to main content
Solved

action template - assigned or actioning users name

  • January 25, 2023
  • 7 replies
  • 179 views

Forum|alt.badge.img+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. 

Best answer by Alan Macfarlane

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 

   

7 replies

Forum|alt.badge.img+12
  • Hero (Customer)
  • 145 replies
  • January 25, 2023

Maybe [SM_ACTIONING_USR_N]?

 


Forum|alt.badge.img+7
  • Hero (Employee)
  • 30 replies
  • Answer
  • January 26, 2023

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 

   


Forum|alt.badge.img+4
  • Author
  • Sidekick (Customer)
  • 24 replies
  • January 27, 2023

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


Forum|alt.badge.img+7
  • Hero (Employee)
  • 30 replies
  • January 27, 2023

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)


Forum|alt.badge.img+4
  • Author
  • Sidekick (Customer)
  • 24 replies
  • January 27, 2023

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


Forum|alt.badge.img+9
  • Sidekick (Customer)
  • 41 replies
  • January 27, 2023

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


Forum|alt.badge.img+4
  • Author
  • Sidekick (Customer)
  • 24 replies
  • January 30, 2023

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