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

Forum Posts

Negative value in currency field

Hi, I am trying to populate a negative value in a currency type field via workflow. However on the form, it appears as a positive value within parentheses. Is there any way I can fill in a negative value into the currency type field using server side...

Parallel flow -> multiple Approval Activity skipping

Here's my use case:When a new record is added to pc_software_cat_item run an Approval Activity for each Company using our instance.   If approved the item is added to their employee user criteria so that it becomes available in Portal.   Each company...

Resolved! Script to add role to group

Does anyone have an example script I can use to add a role to a group. I need to add this as a clone script and I am having a hard time finding any examples to get started with. Basically just need to add the 'admin' role to a group called 'CS-Servic...

Fix script to remove duplicate records from table

Hello guys. I have over 100k of duplicated CIs on instance on cmdb_ci table. I am using a fix script right now which works, but is deadly slow - it is deleting around 10 duplicates per minute. I posted the script below - I'm looking for a recommendat...

Bart Z by Tera Contributor
  • 3414 Views
  • 3 replies
  • 0 helpfuls

UI Action to export a form to pdf

I am trying to create a button to export my problem form to pdf. Is it possible to call Export > PDF > Portrait context menu using UI Action?

addenkik by Kilo Explorer
  • 8715 Views
  • 11 replies
  • 11 helpfuls

REST API - Create Survey

HiIm unable to find how to create a survey on REST API. If im correct i understand that surveys are stored in table asmt_assessment_instance table and that responses are stored in smt_assessment_instance_question table.My issuesUnable to POST parame...

markwinap by Giga Contributor
  • 3389 Views
  • 3 replies
  • 2 helpfuls

Resolved! createHttpEffect - parameter for body

I want to build a component to retrieve data but the rest api requires some parameters to be passed as json in the request body. I am looking at the documentation for createHttpEffect and I cannot figure out how to send a json body with the request. ...

Resolved! ATF Screenshot

Hi, How to take the screenshot of every steps even the bottom of page where there are the tabs in incident for example I need evidences from note section the screenshot is taken only the form until sgort description button as the image

rtrr by Kilo Contributor
  • 6919 Views
  • 6 replies
  • 2 helpfuls

gs.getSession().impersonate() in scoped application?

I have a ServiceNow Application which is programatically called from a Windows Application via Processor. Windows Application sends a username and token to impersonate. In global application I used to do this quite easily by validating the username a...

vks by Kilo Expert
  • 14779 Views
  • 12 replies
  • 5 helpfuls

Resolved! Creating a new Time Zone entry

Unless I am mistaken, there seems to be a time zone missing from the platform. I'm looking for the time zone I can use for Dubai. I see that it is GMT+4 and uses the United Arab Emirates time zone, but I can't seem to get the underlying java code to ...

Plissken by Tera Expert
  • 3658 Views
  • 8 replies
  • 2 helpfuls