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

Forum Posts

gs.isMobile() only works for admin?

So I got this odd response from ServiceNow support I thought I'd bounce off the community.  This is what I was told:"If gs.IsMobile() is always returning false, this is expected behavior from the mobile app, if you do not have admin role. Can you con...

jdiegeliv by Mega Expert
  • 2434 Views
  • 3 replies
  • 1 helpfuls

Resolved! Powershell ServiceNow API

What should i do with the {request.body ? "$body = \"" :""}}Because it show the errors when execute in Powershell script?Thanks,# Eg. User name="admin", Password="admin" for this code sample.$user = "admin"$pass = "admin"# Build auth header$base64Aut...

find_real_file.png
David Vu1 by Kilo Expert
  • 10443 Views
  • 8 replies
  • 7 helpfuls

Resolved! Help with for loop

Hi, I am writing a script, where it will have numbers something like this below var string = 69,110,103,108,101,119,111,111,100,67,111,108,111,114,97,100,111,56,48,49,49,50,85,83,65; SUM = 2236; Length of the above numbers are 25 If we divide sum wit...

Attachments in restricted scoped applications

Hi All, I've found that in a custom scoped application where a table is set to be accessible only from that scope, adding an attachment will generate this error on accessing the table record: Read operation against '...' from scope 'rhino.global' has...

tim2222 by Giga Guru
  • 3206 Views
  • 4 replies
  • 0 helpfuls

Resolved! Reference Qualifier for a related list

Hello,  I am trying to use a reference qualifier on a related list. The related list is pointing to a custom table, joined together by many-to-many table. I am trying to limit the results on the related list by ensuring that we have the same company ...

John Prahn by Kilo Contributor
  • 6511 Views
  • 9 replies
  • 2 helpfuls

How to hide dropdown options depending on condition

Hi all, I need to hide request state field options for non-admin users on conditions. If request state not 'approved', hide 'approved' and 'rejected'. If rrequest state is 'pending approval', hide 'close_complete'   Help needed with the scripting ple...

Dhanya4 by Tera Contributor
  • 9982 Views
  • 3 replies
  • 3 helpfuls