Result of getActionName() in Workspace isn't the same as on classic form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2025 04:33 AM
I'm converting client scripts to run in Workspace. I've got one that only runs when we're moving from New to Review on a Retro change. The original relies on
g_form.getActionName() == 'state_model_move_to_review'
It doesn't work in Service Ops Workspace and when I put an alert to show me the actionName it shows sysverb_ws_save (i.e. which is why it doesn't work).
I did try adding that into my code (i.e. if it == state_model_move_to_review OR sysverb_ws_save) but, because that action is general for saving a record, it also runs the script when you simply save a Retro change at any point.
There is an action in SOW called Review but it doesn't appear to be available me. So, how do I get it to respond to actual action that it taking place?