This blog will discuss different types of script needs in Record Producer If you want to redirect the user after submitting the record producer from native view: producer.redirect = "catalog_home.do?sysparm_view=catalog_default"; If you want to redirect the user to portal: producer.portal_redirect = "sp?id=sc_home"; If you want to set some fields value : current.short_description = "Please reboot " + producer.cmdb_ci.getDisplayValue(); Put some work notes: current.work_notes = producer.variables.field_1 + '\n' + producer.variable.field2;
Generate Survey From Script If you want to generate a survey and assign a user from any […]
Use GlideAjax in Service Portal in onSubmit Client Script You are correct that you cannot use synchronous […]
Revert Workflow to Old Version by Script We can Revert back our workflow to OLD Version. Below […]
Call Workflow from Background Script You can call workflow from the background script
Group by Category Name for ServiceNow
We can impersonate a user via ServiceNow server-side script.
Create an email notification to show Accept and Reject button like below. Create a Notification to show […]
You can create document file from servicenow and by script Then how to generate html code you […]
Covert time based on timezone Get user current timezone