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! Closing a catalog Task using ATF with sleep?

Hey I had a quick question: I know that it is possible to close a catalog task by : Request Item.state : is : Closed Complete. I had a similar situation but was a little different here is the scenario.   So I am automating the flow of a catalog item,...

Resolved! ATF: How to account for elapsed time in testing workflows

I am building some ATF Tests to test out various workflows that we have.  Some of them have Timers in them (i.e. wait 5 minutes, wait 10 days before expiration).  How can I write ATF tests for those workflows which have timers in them that cause "a p...

jmiskey by Kilo Sage
  • 6687 Views
  • 23 replies
  • 8 helpfuls

Resolved! Inbound Action Condition Using IndexOf

There are loads of similar posts but nothing I try seems to work. I have a field that contains a string called "Ignore Email". Sometimes it's a full email address but I want it to also work for part of an email address. When an email comes in the inb...

Unable to replace backward slash "\" from a string

Hi All,    I am trying to split/replace a string that has backward slash"\" but unable to get the desired result. var strVal = "Au\Group\This group"var newStr = strVal.replace(/\\/g,"/"); [ or var newStr = strVal.split("\'");] gs.info(newStr)   **Scr...

Arpita14 by Kilo Explorer
  • 4043 Views
  • 6 replies
  • 0 helpfuls

Powershell execution error in Flow Designer

Can some one provide some insight to this error code that we are receiving and how to correct it? I'm trying to add some custom attributes to the MS AD Update User action. I've added several other attributes without error. however I am receiving this...

find_real_file.png
nick135 by Tera Expert
  • 1330 Views
  • 2 replies
  • 0 helpfuls

Resolved! Retrieve update set error

Hi all, I have a Quebec instance at work and stood up a Quebec instance through SN.  To do some testing in some abnormalities that we've been seeing in our work instance, I did the following in my SN dev instance: Create an update setMake some change...

find_real_file.png

Role required to access 'sys_user_role_contains' table?

Hi Experts, We need to do user management for ServiceNow, the OOTB role user_admin seems appropriate for user management. But we are facing issue with it to access table 'sys_user_role_contains' . Could you please help which OOTB role will help here ...

Ajit by Tera Contributor
  • 1334 Views
  • 1 replies
  • 0 helpfuls

Resolved! How can I populate related records in related list

We are filling time sheet portal hours and it is creating multiple record in time card table. I have a scheduled flow designer-Action to rollup multiple record into one record(i.e. adding hours based upon user and week start date) I want to populate ...

chandan15 by Tera Contributor
  • 1710 Views
  • 3 replies
  • 0 helpfuls

Resolved! How to change Encoding for GlideSysAttachment.write()

Hi,I'm writing a function in a script include that exports me some data and adds it as an Attachment to a record.Example Code is like thisvar data = "Name;Firstname;Phone";data += "\n";data += "Bauer;Sven;+492408xxx";data += "\n";data += "Meier;Karl-...

find_real_file.png
Sven Bauer by Tera Contributor
  • 10771 Views
  • 13 replies
  • 22 helpfuls

Resolved! Jelly script not working in onclick function

I have created the below script for a dynamic content block on a dashboard and I'm trying to run jelly inside my javascript onclick function. Can anyone explain why this is not working?   <?xml version="1.0" encoding="utf-8" ?><j:jelly trim="false" x...