Resolved! how can I impersonate a user via script
how can I impersonate a user via script
We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more
how can I impersonate a user via script
My Requirements is I know this is complete when the Overview dashboard includes the following: - Incidents by month stacked by priority (by create date – rolling 12 months) - Incidents by the team (assignment group) – current calendar year – metric ...
Hello All, the aggregate count is not working as expected. Please help. The dot-walk addQuery should return a count of 100 for example, but I am getting 0 results. var count = new GlideAggregate('alm_hardware'); count.addQuery('model.u_field'...
gs.include('validators');if (current.getTableName() == "incident" && current.incident_state !='7' && current.incident_state !='6' ) { //gs.log('Enter'); var str=email.body_text; current.comments ="reply from: " + email.origemail + "\...
Hi Community, Hope you are all keeping well. I have a particular use case for scripting in flow designer whereby I want to scrape the body of an email and search for the text that contains the Ticket Description: [Ticket: Description] in the body as ...
Hi Team, In incident list, we can able to access the response time and sla start fields related to task sla but the values are empty. Is there any way to obtain their values from the respective tables and view them in incident list? From the above...
Hi, we have three Windows server where our MID servers are installed on. On one of them Java Version:- Java 8 update 231 is installed and as far as I know the MID Server only needs the JRE. My Question is, if Java can be uninstalled on this server wi...
I am creating a record producer which would create a demand record. However the front end has lots of fields and there are fields to be shown / hidden based on a select box. In a catalog item, normally I would use UI action to hide/show fields. Here ...
I have a UI Action button that when clicked it will ask the user to enter in a comment before closing the record (inactive it). I followed this guide here to render the comment box on the platform view and it works. However, when I click on "ok" all...
At the moment some of the approval groups have just one member in the group. I have to identify those groups so that we can add additional members. How can I find the gorups with just one member?Thanks
I have written a UI action to duplicate a record and would like to redirect to the new record in the Service Portal. I know the action.setReturnURL will not work in the portal. I know the $window is not available. I have read that top.window.location...
Hello, We have a requirement where a filed needs to change based on another field. If "Cost center" change then "EOC" should display the "list of codes" based on selected "Cost center" I'm a novice at scripting. Any help would be greatly appreciated...
Hi ,Can anybody know , how can we show inactive users to ITIL users ?I have a field referring to user table in Catalog item. When ITIL user is clicking on the reference field, he can only see list of active users. I need to show him inactive users as...
hi everyone, I am using a following HTML code in one of my portal widget. <div> <!-- your widget template --> <div> <button type='link' ng-click="c.generatePassword()"style="color:black;">url</button> </div></div> for now when we click on the url it...

