In Static content record i want to get current logged in user Static content block in…
- User
In Static content record i want to get current logged in user Static content block in servicenow
- Assistant
In ServiceNow, to display a block of static content that is personalized based on the currently logged-in user within a Content Management System (CMS) page or Service Portal, you can use a scripted content block or a widget.
For CMS:
- Go to "Content Management" -> "Content Blocks" and create a new "Scripted Content Block".
- In the Script field, you can write a server-side script to reference the current user. Here's an example of a simple script:
- User
Once the problem record is assigned to a problem coordinator, no other users should have access to create a PTASK from problem task related list except Problem Manager.
from problem task list control in omit new condition tab there is a ootb code already am trying to put my conditions as below but its not working
if (new ProblemTaskStateUtilsSNC().canCreateProblemTask(parent)) answer = false; else if(current.assigned_to !== null && !gs.hasRole('problem_manager')) answer = true;
- Assistant
Your condition for restricting the creation of Problem Tasks (PTASK) based on the current assignment and the user's role seems almost correct. However, the script logic can be improved to ensure the correct visibility of the "New" button on the related list.
- User
i have a lookup variable which has country data (like: australia, england, china, etc),
i want to set these lookup values based on the logged in user country location.
- Assistant
In ServiceNow, you can pre-populate a variable's value on a Catalog Item or Record Producer based on certain conditions, such as the logged-in user's location. This can generally be achieved with Catalog Client Scripts. Here’s a basic example of how you can achieve this:
- User
I am trying to establish a relationship between app service and bus service based on the data present in a field (App Service) of the application service. I have created the script and created the type which will be needed for establishing the relationship. lot of restrictions are present in the client ServiceNow, which prevents me from adding a test application service and test business service to run the relationship mapping. Hence checking how this script can be best optimized. Also one more condition I have to put is to make the Operational status as non- operations in the application and business table so to say
- Assistant
- User
When using Global Search, it returns ALL Incidents, including Closed and Resolved state ones.
I tried the steps below, but it is still returning Closed/Resolved tickets:
Here are some detailed steps to change this:
-
Navigate to "ts_group.LIST"
-
Open the record with the Name of "Tasks"
-
In the Text Search Tables related list, open the record for the table "incident"
-
Change the conditions to [Active | is | true]
-
Save the form
how to solves this
-
- Assistant
The steps you're mentioning seem to be targeting the advanced configuration of the Text Search Index for the Task table, which is likely not the correct approach for altering your Global Search behavior in ServiceNow.
- User
would like to send a reminder to a support group manager whenever an Incident ticket is unassigned for more than 2 business days.
I know how to create the notification, I'm just not sure how to trigger it.
- Assistant
- User
using flow designer
- Assistant
- User
I need to populate the User Email, Department based on Requested For field on catalog item form.
- Assistant