Use PDIs? Take our 5-minute survey to help shape the PDI roadmap.

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

Forum Posts

Resolved! How to add multiple users to a group using fix script

Hi All, I am trying to add multiple users to a group using Fix Scripts or a background script.  i used the following script in the background but couldnt execute it. var gr = new GlideRecord('sys_user');var user = gr.addEncodedQuery('emailLIKE@exampl...

Resolved! Dynamic SQL statement in data source through scripting

I want to create a SQL statement that uses two different datetime fields to pull delta records. I know there is a field called "Use last run datetime", but it can only use one field, and only imports records where the datetime field is between the la...

How to calculate duration in days using schedule

Hi Everyone, I need to calculate the difference between two dates using "Project Management Schedule" and get the result in days. Below is the script I used in business rule :   var sched = new GlideSchedule(current.schedule); var start_date = curren...

sowmyaj by Giga Expert
  • 7569 Views
  • 10 replies
  • 1 helpfuls

Resolved! REST method

Hi,   can anyone please explain how to import the data from external file to service now by using REST and SOAP method briefly. it would be better if you explain clearly with step by step. Thanks.

sasi by Tera Contributor
  • 4237 Views
  • 4 replies
  • 2 helpfuls

How to get a variable value using GlideRecord

Hi , One of my catalog item has a startDate variable value  . How to get the value using Glide scripts  from sc_item_option_mtom and req table ? I need this script for scheduler .. Based on the startdate Need to send the remainders ..

ragz by Tera Expert
  • 8134 Views
  • 5 replies
  • 2 helpfuls

How can we create a table using ui macro?

How can we create a table using ui macro as shown below.I want to pass the values from the table to short description field of incident.How can we achieve this?Thanks,Y Anjaneyulu

table.png
anjiadmin by Tera Expert
  • 7913 Views
  • 7 replies
  • 0 helpfuls

Resolved! How do I publish a new version of an application?

Please feel free to refer me to a docs site page or similar as this seems fundamental, but I'm not finding the answer. I have a custom application that I've deployed to other instances by publishing it to the app repository and then installing it on ...

Resolved! Error "Cannot read property length from undefined" in my custom workflow activity 'Create PDL'., whenever catalog item goes through the workflow.

I am receiving an error "Cannot read property length from undefined" in my custom workflow activity 'Create PDL'. I have simply created a custom activity under the exchange application,name 'Create PDL'.This activity is used in a catalog item workflo...

find_real_file.png

Resolved! Don't set new choice when import data

Hi, I want to import a file to a table. With the import I also import set choices to a existing choice list field. If the choice doens't exist it wll be created. Is there any way to avoid that? I don't want new choices when I import a file just becau...

palims by Giga Contributor
  • 4386 Views
  • 3 replies
  • 0 helpfuls

Resolved! Is there a way to restrict RITM list view and related SCTASK (service catalog) tasks list views of a particular service catalog item to a group of users or based on role.

We have a service catalog item ABC, that generates RITM/SCTASK as any other OOB SC item would do. Is there a way to hide RITM/SCTASK lists created as a result of submitting a request via cat item ABC. In other words we would like to restrict a group ...

Kamran1 by Kilo Guru
  • 6993 Views
  • 12 replies
  • 7 helpfuls