The CreatorCon Call for Content is officially open! Get started here.

How to get view name in list view using business rule update

huyn10870492142
Tera Contributor

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