Best Practices

  • Condition Builder - Use a Condition builder whenever possible to configure your instance!!
  • Syntax Editor Macro - Create a Syntax Editor Macro to quickly insert commonly used syntax
  • Expand Large Scripts - Expand the Script Editor when editing large scripts
  • Identify the Scope - Identify the Scope of your script to ensure it only affects the resources in the same scope
  • Community - ServiceNow websites are more than just product documentation; make good use of the Community
  • SNUG - Join at least one SNUG
  • Methods - Use the g_form methods to manage the form and form fields
  • Properties - Use the g_user properties and methods to access information about the currently logged in user
  • Narrow number of calls - Make as few calls to the server as possible
  • Callback to Async - Include a callback to make getReference() calls asynchronous
  • Errors - Use try/catch to find runtime errors
  • Debugging - Use methods and debugging strategies appropriate to Mobile, Desktop, or both
  • Comment your scripts!!

results matching ""

    No results matching ""