Difference b/w hasNext() & next()
hasNext(): _This method returns true if the iterator has more elements._ next(): _This method returns the next element and also moves to the next element._
News Jace Pro
News, acquisitions, companies, people, events, and public filings in one searchable place. No vendor press-release fog.
The signal desk
What are you trying to understand?
The latest
hasNext(): _This method returns true if the iterator has more elements._ next(): _This method returns the next element and also moves to the next element._
// Add your code herevar scTask = new GlideRecord('sc\_task');scTask.addActiveQuery();scTask.addQuery('request\_item', current.sys\_id);scTask.query();if (scTask.hasNext()) {gs....
There are two ways to generate events: 1. _Server-side script_ 2. _Workflow Create Event activity_ The eventQueue() methods are part of the GlideSystem server-side API. Use th...
Hello Everyone, In this video, I will cover scenario-based solutions which our implementations might require in various projects. I have explained how to Populate Type of Devi...
If you need to redirect from the Agent Workspace list to a specific URL then that can be done via a List Action. 1\. Create List Action of type Client Script 2\. Use the belo...
Business Rules often use the _current_ and _previous_ objects in their script logic. The _current_ and _previous_ object is automatically instantiated from the _GlideRecord_ cl...
// Add your code here if (current.parent\_incident != '') { var cat = current.parent\_incident.category.getDisplayValue();var subcat = current.parent\_incident.subcategory.ge...
We have an API called getED() which returns the field type. _var inc = new GlideRecord(“incident”);_ _inc.get(“7e20f9dd2f82551045ea802df699b6b3”);_ _gs.info(“Field Type :”+ “...
// Add your code herevar sct = new GlideRecord('sc\_task');sct.addQuery('request\_item', current.request\_item);sct.query(); var totalCount = sct.getRowCount(); var sct1 = new...
// Add your code here var current\_user = gs.getUserID(); var usr = new GlideRecord('sys\_user');usr.addQuery('sys\_id', current\_user);usr.query();if (usr.next()) {current.a...
function onLoad() {//Type appropriate comment here, and begin script belowvar short\_desc = g\_form.getControl('short\_description'); var desc = g\_form.getControl('description...
Hello Everyone, In this video, I will cover scenario-based solutions which our implementations might require in various projects. I have explained how to Hide Priority fields ...
In this session, I have explained how to return multiple values from the script include and pass it to the client side. If you have any feedback related to the scripting part, ...
ServiceNow Coding Tips This story is no longer available [![image](https://medium.com/@LearnITbyPrashant?source=list-d005fc598f0a--------1-------0a5a63167b95----------------...