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

Forum Posts

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
  • 17955 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
  • 2450 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
  • 4883 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...

Transparent nav-bar in Service Poratl

Hi Everyone,   I have a question related to Service portal. I want to make header transparent and all the menu items will diplayed on the background image.   Current Header:   So, i want to make transparent header and servicenow logo, Knowledge, Ser...

find_real_file.png
Murali19 by Kilo Contributor
  • 3939 Views
  • 8 replies
  • 3 helpfuls

Getting attachments via api and send them to Salesforce

Hi,I work on an integration between ServiceNow   and Salesforce using Dell BOOMI.I want to get Attachements from ServiceNow and send them to Salesforce.As described in this link: How to retrieve an attachment from service now ... | ServiceNow Communi...

yehiel by Kilo Explorer
  • 3083 Views
  • 5 replies
  • 1 helpfuls

Oauth token request to Sharepoint

Hello,I am trying to request a token from Sharepoint using Oauth 2.0. So I've setup in ServiceNow the Oauth application registry and the Outbound REST, but when I click the Get Ouath Token button, this is what i get back in the response Body: "The re...

Mihut by Giga Expert
  • 2296 Views
  • 6 replies
  • 1 helpfuls

How to fire Business Rule with an attachment?

I'm using an 'After - Update' business rule that checks the name of an attachment.The business rule works fine.The problem is that if they attach the file, the business rule on update won't fire unless they change a value in the form.How can I make t...

AndresGT1 by Tera Expert
  • 3402 Views
  • 8 replies
  • 0 helpfuls

How to configure service now as IdP

HI,I am trying to configure ServiceNow as Idp. I wanted to log in to my website using service now credentials.The options I tried is 1-> SAML - But in that Service now only act as Service Provider, but I want Service now to act as Identity Provider2-...

vinodrd by Kilo Explorer
  • 1319 Views
  • 3 replies
  • 0 helpfuls