In servicenow I created a widget and mapped in standard ticket actions of screqitem. The…
- User
In servicenow I created a widget and mapped in standard ticket actions of sc_req_item. The Widget is showing. We want show the options as it is available for incident but for me its showing side by side. After we clicking on actions, it showing the close option. This is OOB functionality. I want a Cancel button will appear if RITM state is open. Need configure for Reopen button also, it will appear if the state is closed_complete and will show only for 5days from the closed_complete date.
- Assistant
- User
I want to print 10 latest incidents in Scripts background
- Assistant
To print the 10 latest incidents in the ServiceNow Scripts Background, you can use the GlideRecord API to query the
incidenttable, order the results by thesys_created_onorsys_updated_onfield in descending order, and then limit the result set to 10. Below is an example script that demonstrates how to achieve this:var gr = new GlideRecord('incident'); // Target the 'incident' table gr.orderByDesc('sys_created_on'); // Order by creation date in descending order (latest first) gr.setLimit(10); // Limit the number of results to 10 gr.query(); // Execute the query var count = 0; while (gr.next()) { count++; gs.print("Incident #" + count + ":"); gs.print("Number: " + gr.number); gs.print("Short Description: " + gr.short_description); gs.print("Created On: " + gr.sys_created_on.getDisplayValue()); gs.print("Updated On: " + gr.sys_updated_on.getDisplayValue()); gs.print("State: " + gr.state.getDisplayValue()); gs.print(""); // Print a blank line for better readability } - User
hi,my question is how to get related list buttons,if i click on that button it should redirect to the another table list view,if we select records there it should reflect in current record related list,same like add button in impacted services related list in incident form,
- Assistant
- User
When I add a 'Requested for' variable to a form so that multiple 'requested for' users can be added to a single request (with separate RITMs for each requested for user), I receive the error below:
'Item is unavailable for this user'
I see this error only when I select a 'Requested for' user that doesn't have access to submit requests. However, we want to be able to submit requests for any active user, and not all users have privileges to submit all requests.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.