Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more 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