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

Outbound HTTP REST (oAuth) query fails

HiI am currently developing a data retrieval module which first connect to an oAuth REST service to obtain a token which I then use to make a SOAP request - unfortunately ServiceNow does not support using oAuth with SOAP so I have to program it mysel...

andrewrump by Mega Contributor
  • 2038 Views
  • 7 replies
  • 1 helpfuls

Outbound REST web service call using oAuth

Hi community,I need to create a ticket in Salesforce using REST which works fine. The problem is around the authentication method which is oAuth.Here's the scenario that works:1. Navigate to System Web Services -> Outbound -> REST Message2. Select PO...

maxcarrier by Kilo Explorer
  • 6536 Views
  • 10 replies
  • 0 helpfuls

Resolved! How do I populate a field like gs.getUserID() does?

I'd like to build a Template to allow the auto-fill of Assignment Group from the User record, using a field called 'u_main_group' (similar to using javascript:  gs.getUserID()).  I've used Script Includes to limit options before, but never to populat...

Shane J by Tera Guru
  • 5045 Views
  • 6 replies
  • 2 helpfuls

Don't create asset on virtual server CI

I've seen some threads about this question but nothing that seems up to date. When we are creating a CI in cmdb_ci_server table an asset is also created. That is OK as long as it's not a virtual server. How can we handle this? If the is_virtual check...

While running ATF getting an error, This step failed because a client-side Javascript error was detected on the page being tested. See the logs and screenshots on the test result for details.

Hi All Can You please help on this In Automated test framework i am getting some issue This step failed because a client-side JavaScript error was detected on the page being tested. See the logs and screen shots on the test result for details. EX: T...

Resolved! text wrapping in tile for service portal

Hi All, I have added the popular items widget in service portal, but the issue is the text is not wrapping in the tile, someone has to keep the mouse cursor to see the complete option. Please find the below screenshots. also find the HTML template co...

find_real_file.png
sreejith05 by Giga Expert
  • 3518 Views
  • 1 replies
  • 4 helpfuls

Format Date GlideDateTime to dd.mm.yyyy ?

I am running a server side script which calculates the last day of the month. var gdt = new GlideDateTime(); gdt.addMonthsUTC(-1); var month = gdt.getMonthUTC(); var year = gdt.getYearUTC(); var d = new Date(year, month + 1, 0); gs.print(d); // last ...

Hendrik3 by Kilo Contributor
  • 17708 Views
  • 4 replies
  • 0 helpfuls

Resolved! Splitting an Update Set

I am working on multiple projects simultaneously.  I started a new Update Set, but forgot to make it current.  So all the transactions I created for my new project (lets call it "Project B") got lumped in with a different project I have been working ...

jmiskey by Kilo Sage
  • 2266 Views
  • 6 replies
  • 6 helpfuls

Resolved! oauth grant_type=code

Hi,i follow the article OAuth authorization code grant flow to get tokens initially i made request https://xxxx.service-now.com/oauth_auth.do?response_type=code&client_id=****534e4e81b7f and the response after allowing access to https://<callback-url...

Resolved! Need to help on pulling report of ITIL Users

Hello,   Can anyone please help me out how to pulled ITIL User reports ?   I created report on Sys_user_has_role table table with below filter conditions:   Role is ITIL, Active is True. Which is working fine but the problem is we are getting duplica...

Send email to own instance

We are trying to send an email to our own instance URL using a server script. This is for us to create an incident record even if a user is not logged in. We tried the code below however, the recipient was changed by ServiceNow to be same as the User...

JC S_ by Mega Guru
  • 4830 Views
  • 5 replies
  • 1 helpfuls

GlideDateTime - get hours, minutes and seconds

Hi all How Can I extract hour, minute and seconds from DataTime field? for example, I'm trying to write this business rule var gdt = new GlideDateTime ("2017-03-31 15:13:43"); year = gdt.getYearUTC(); month = gdt.getMonthUTC(); day = gdt.getDayOfMont...