Skip to content

Instantly share code, notes, and snippets.

@animyeboah
animyeboah / servicenow-scripting.md
Last active October 24, 2019 00:40
ServiceNow Developer Best Practices

GlideRecord

  • Use getUniqueValue to get sys_id.
  • Use newRecord instead of instantiating to get a new record with default values.
  • Dot-walking on GlideRecord returns GlideElement, use getRefRecord to get GlideRecord.

GlideForm

  • Use getBooleanValue for boolean fields.
@animyeboah
animyeboah / mid-server.md
Last active April 16, 2019 21:14
MID Server

MID server setup and configuration

  1. ITOM > ITOM Guided Setup
  • Create MID server user with role mid_server
  • Download file
  • Extract "agent" folder to /ServiceNow/
  1. Configure wrapper-oveverride.conf or via installer with naming conventions