Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

Forum Posts

Resolved! I need to check a list field with gliderecord

Hello guys, I have a list type field in the department table that points to the user table. This list field can store more than one user sys id. I need to check through a gr if any of that sys id is from the current user.   Thanks in advance.

Resolved! Subflow code snippet is not working in script include

Hi Guys, Looks like I am missing something. I have a simple subflow that I am calling from a script include and it's not working. Client Script:function onChange(control, oldValue, newValue, isLoading) {    if (isLoading || newValue == '') {        r...

JLeong by Mega Sage
  • 1165 Views
  • 4 replies
  • 2 helpfuls

Populating related list through IRE API

I am trying to figure out how to populate a related list at the same time I insert two CIs via the IRE API. In my case, I am trying to list installed software (software) in the out-of-box "Software Installed" related list of a Windows Server (cmdb_ci...

Fix Script to populate custom field with duration on metric

Hello Experts, I want to update the historical records. i.e. I have a custom field called 'state duration' on projects and we have a metric created 'Duration' is populated when state is changed. So, I need help with fix script to populate my custom f...

Rocky5 by Kilo Sage
  • 711 Views
  • 3 replies
  • 0 helpfuls

Resolved! How do you update the shopping cart price based on quantity?

I have a catalog item for storage that needs to update the price based on what kind of storage and how much they are requesting.   If they choose one type of storage, it's .40 cents per GB / 12 per month (which when selected it does populate the shop...

ctsmith by Mega Sage
  • 5113 Views
  • 9 replies
  • 0 helpfuls

How to call a Flow from a Workflow?

I've seen several posts that show how to call a Workflow from a Flow, but I need to do it the other way around - call the Flow from the Workflow.  I know I need a Run Script but that's all I know. I have several complicated workflows that are initiat...

gjz by Mega Sage
  • 4090 Views
  • 5 replies
  • 5 helpfuls

Resolved! which is best method to check null / not null

Hi All, Kindly help me on below issuewhich is best method to check null / not null Performance wise/ Best Script  practice wise. check  assigned_to Empty/Null/: if(gr.assigned_to==" "  && gr.sys_created_by !=gr.opened_by)if(gr.assigned_to.nil()   && ...

Supriya25 by Tera Guru
  • 10853 Views
  • 6 replies
  • 4 helpfuls

Debugging Transform Map Scripts

I have a scoped app, with a transform map. I need to run a script for a couple of the columns. After writing the script and adding a breakpoint, I opened Script Debugger and I could see my breakpoint and script. I sent a payload to the app (through P...