We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Resolved! Trouble detecting user role in script

I am trying to write a script where I will get all active contacts associated with an account, then if the contact does not have the "itil" role assigned, I will set the user_name field to be blank. I have the following snippet: function hasRole(user...

mhashemi by Mega Sage
  • 798 Views
  • 4 replies
  • 0 helpfuls

Resolved! Scripted API Multiple Calls

I have created a scripted web service, which has put and post methods. Put method itself calls an import set API. This scripted web service is being used by a third party application asynchronously.  Issue is if they send multiple API calls it goes i...

Resolved! Duplicate Names on the Core Company Table

Hello developers, Quick question, is there a way to allow duplicate names on the core company table? The background information is that I manually uploaded several suppliers to our environment. Many suppliers have the same name but different supplier...

cnharris1 by Kilo Sage
  • 1350 Views
  • 1 replies
  • 0 helpfuls

Resolved! List collector not working with Workflow studio

Folks, I've created a form to add users to a group. The user variable is a list collector, because they can select more than one user. The problem is when I created the workflow, it's not reading the list collector variable, I already separated "for ...

Screenshot_183.jpg Screenshot_182.jpg Screenshot_181.jpg Screenshot_184.jpg

Resolved! Allow String type variable to accept only integers

Hello Devs, We have a string type variable in catalog item. And we want that variable to accept only integers greater than 8. I am using below regex in my script and it does not accept any number greater than 9. But I want that variable to accept any...

Rocky5 by Kilo Sage
  • 985 Views
  • 6 replies
  • 0 helpfuls

PA Indicator for daily Incidents assigned to a group

I have a PA indicator that runs a job at 2 AM and gets all Incidents assigned to a particular group On Yesterday. If it matters, it's using the metric_instance table and the assignment group duration metric, the Created On field. It collects the data...