Skip to content

Instantly share code, notes, and snippets.

View zhmur's full-sized avatar

Artur Zhmur zhmur

View GitHub Profile
@icerge
icerge / patterns.md
Last active April 12, 2024 02:47
Development and configuration patterns in ServiceNow

Ajax calls from Native forms and Catalog items

Client script + UI Script + Script Include (Ajax) + Script Include (API)

Client script is a calling side. Optionally, it may be wrapped into a UI Script to form re-usable Client side API.

Script Include (Ajax) is an interface for client side interactions it fetches parameters, validate them and call necessary APIs.

Script Include (API) implements server side functionalities that may and most probably will be used by both Client and Server side logic. No Ajax parameters are available in context, they are supplied as method arguments.

Naming convention

@iamwill
iamwill / debugging_cheatsheet.md
Last active April 19, 2024 01:24
Debugging on the Glide Platform

Debugging tips and tricks

Platform Troubleshooting

Console output too chatty?
Set com.glide.util.Log.developer_filter = true to cut down on non-interactive console log entries such as scheduled workers. (Don't forget to remove it when you're done!)

Utility urls

Note: Fast! These don't need a database.