GlideSpScriptable Flashcards
For Knowledge Articles, Service Catalogs and Categories, checks if the users can view the record in Server Script
$sp.canReadRecord(GlideRecord)
Or
$sp.canReadRecord(table, sys_id)
Checks if a user can see a page in Server Script
$sp.canSeePage(String pageID)
Returns the model for a Catalog Item in Server Script
$sp.getCatalogItem(String sysId, Boolean isOrdering)
Returns the display value of the specified field in Server Script
$sp.getDisplayValue(String fieldName)
Returns information about the specified field, including label, value, display value and type in Server Script
$sp.getField(GlideRecord now_GR, String fieldName)
Returns which fields are valid given an array of field names in Server Script
$sp.getFields(GlideRecord now_GR, String fieldNames)
Or
$sp.getFieldsObject(GlideRecord now_GR, String fieldNames)
Returns the form for a table and sys_id pair in Server Script
$sp.getForm(String tableName, String sysId)
Returns an array of KB Articles for a certain Category in Server Script
$sp.getKBCategoryArticles(String sys_id, Number limit)
Returns an array of KB Articles summaries for a certain Category and its Sub-categories in Server Script
$sp.getKBCategoryArticleSummaries(String sys_id, Number limit, Number maxChars)
Returns number of published, current Articles in a Knowledge Base in Server Script
$sp.getKBCount(String sys_id)
Returns a list of columns for the given table and view in Server Script
$sp.getListColumns(String tableName, String view)
Returns the parameters for a page in Server Script
$sp.getMenuHREF(GlideRecord page)
Returns the menu items for a specified menu instance in Server Script
$sp.getMenuItems(String sysId)
Retrieve a parameter from the URL in Server Script
$sp.getParameter(String name)
Get current Service Portal in Server Script
$sp.getPortalRecord()