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! Stopping business rule processing on background script

We are attempting to retroactively update a batch of change records (about 2000) to populate a field that was developed as mandatory.   No problem there, developed a background script.Only problem is that the script appears to be triggering business ...

tahnalos by Kilo Sage
  • 18168 Views
  • 6 replies
  • 10 helpfuls

Resolved! How to run business rules?

Hello,I am trying to run the following business rule to update or insert a record into my table: u_lol_databasesI placed the following script in the u_lol_databases business rules.   I also used the condition onDisplay.. assuming the table will updat...

Capture.PNG
zsquared by Tera Contributor
  • 6092 Views
  • 6 replies
  • 1 helpfuls

Encoded query filter

Can someone show me how to filter records in contract table (ast_contract) I want to build a encoded query to run scheduled job for contracts that will expire on 180 days and 365 days I have the below script for 90th day var cnt = new GlideRecord("as...

rm2 by Kilo Contributor
  • 1909 Views
  • 6 replies
  • 1 helpfuls

Translating Question text on Yes/No variable.

Hello,  I have to translate the "Question" text for a few Yes/No variables to Portuguese on a catalog item.  For some of the questions I keep getting a message that they exceed 255 characters when I go to save my translation.  Is there a way to get a...

George56 by Tera Contributor
  • 1306 Views
  • 4 replies
  • 0 helpfuls

Multi-dimensional arrays and combining data between two arrays

Hello! I have a Flow Designer Flow where I get a JSON response from a third party application that is then needed to use for updating specific records in ServiceNow. Response looks something like this: { "columns": [ "ColumnTitle1", "ColumnTitle2", "...

SNNoob by Kilo Guru
  • 2782 Views
  • 8 replies
  • 2 helpfuls

Customizing condition field

Hi I am trying to add a Conditions data type field to a custom table to create filter conditions.My criteria:1.It should have only a few selective columns for query creation. 2.Only AND clause should be used.   Can someone please help me to customize...

Shuvaday1 by Tera Contributor
  • 1119 Views
  • 4 replies
  • 1 helpfuls

Attachment variable - copy to RITM

Hello, I have an attachment variable on one of my items. I need attachment from this variable to be copied over to RITM header and I was able to achieve it by writing the Business Rule described in this thread: https://community.servicenow.com/commun...

Dawid2 by Giga Guru
  • 1481 Views
  • 1 replies
  • 0 helpfuls

Resolved! Syntax error - fd-data in send email

hi team,    i am trying below script in flow designer "send email" but showing some error like below please suggest to debug this what is the issue. Error: "fd_data" is not defined.,Detail: "fd_data" is not defined. Code: /* **Access Flow/Action dat...

find_real_file.png
Deepthi25 by Giga Expert
  • 1936 Views
  • 6 replies
  • 0 helpfuls

Resolved! Set contact type on Request and RITM

Hi Experts, I am trying to set value on 'contact type' choice field on Request and RITM table. when user submits catalog item from service portal, the script should compare 'opened by' value and 'requested_for' value. if those values are same contact...

Rocky5 by Kilo Sage
  • 3918 Views
  • 14 replies
  • 6 helpfuls