Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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

Forum Posts

How can I create an Excel file from a script in Servicenow?

I just need a really simple example of how I can create a .xlsx file not .csv. What is the syntax for this when writing with GlideSysAttachment().write?I've tried: var gsa = new GlideSysAttachment(); gsa.write(fixGr, 'test.xlsx', 'text/xlsx', data); ...

mpsteve137 by Tera Expert
  • 6526 Views
  • 13 replies
  • 2 helpfuls

Run fix script

Hi have code for business rule, How do i run fix script for that:My code is here i want this to be run on  fix script can someone please help me, (function executeRule(current, previous /*null when async*/ ) {var gr = new GlideRecord("sys_user_grmemb...

Mahesh07 by Tera Contributor
  • 720 Views
  • 1 replies
  • 0 helpfuls

Resolved! Identify used UI

Hello!I need to find the way how to show UI action on form only if operator using "UI16" and hide it if "Polaris UI" is used.Any suggestions? Br,Victor

Resolved! Attach user instructions PDF file with email notification

Hi all, I am writing a user creation notification in ServiceNow where a user is created in Azure AD via Service Catalog / REST using integrationHub Microsoft Azure AD Spoke. Now, after creating the user, I need to send an email to the user informing ...

Rahul Singh6 by Tera Contributor
  • 1224 Views
  • 2 replies
  • 1 helpfuls

Resolved! Cancel UI Action

Hello All,Once again our Cancel UI button did not cancel the running workflow.UI Action script:Here's what is happening after clicking cancel button:State = Closed IncompleteStage = Request Cancelledthen the state and stage will change according on t...

Aljhon_0-1664865829625.png Aljhon_1-1664866104487.png Aljhon_2-1664866169916.png
Al-jhon by Kilo Sage
  • 1544 Views
  • 5 replies
  • 0 helpfuls

Resolved! Unhandled exception in GlideAjax

Hi I'm trying to call a script Include from a Catalog Client Script and I get the unhelpful message of "Unhandled exception in GlideAjax"The script is supposed to parse a list of cmdb_ci_bussiness_app sys_id and check to see if the install type is "e...

jyan3 by Kilo Guru
  • 1499 Views
  • 1 replies
  • 0 helpfuls

How to script data into fields of type "File Attachment"?

Hi I am trying to create a service portal for learning purposes and making reasonable progress (using angular) until I need to use some of the more exotic field types. The first one is <input type="file">. I wish to store the what the user chooses in...

Resolved! ATF getting cancelled at Click a UI Action

Hi, After upgrading our instance to Tokyo Patch 1, we have one Incident Task Resolution ATF, where the last step is:Click a UI action: Confirm that browser submits 'Incident Task' form to server within 5 Seconds of clicking UI action 'Save'The test k...