2018年12月19日 星期三

[ServiceNow] Search scripts among workflow activities

1) In the Navigator filter box, type sys_variable_value.list <-- This takes you to the table to search


2) Click on the Filter wizard icon to create a custom filter
--- Table (document) is wf_activity AND
--- Variable.Column Name contains script' OR
------ Variable.Type.Name contains 'script' AND
--- Value contains [whatever you are searching for]

2018年12月11日 星期二

Javascript: html encode and decode

            function htmlencode(s) {
                var div = document.createElement('div');
                div.appendChild(document.createTextNode(s));
                return div.innerHTML;
            }
            function htmldecode(s) {
                var div = document.createElement('div');
                div.innerHTML = s;
                return div.innerText || div.textContent;
            }


Enjoy!!!