How to get view name in list view using business rule update
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024 01:11 AM - edited 08-29-2024 01:12 AM
Hi All,
I want to get View name in list view when i update record by list edit. I find the code to get View Name below but it just work on Form. The code:
(function executeRule(current, previous /*null when async*/ ) {
var viewName = gs.action.getGlideURI().getMap();
gs.addErrorMessage("viewName " + viewName);
if (viewName.get('sysparm_view') != null) {
viewName = viewName.get('sysparm_view').toString();
gs.addInfoMessage(viewName);
}
})(current, previous);
I used to use this code to get the view name on the list but now it is not working anymore. I want to know which version update removed this feature. I am in Vancouver version. Thanks for reading my question.
0 REPLIES 0