Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaitoy/servicenow-snippets
ServiceNow snippets for Atom.
https://github.com/kaitoy/servicenow-snippets
atom servicenow
Last synced: 2 days ago
JSON representation
ServiceNow snippets for Atom.
- Host: GitHub
- URL: https://github.com/kaitoy/servicenow-snippets
- Owner: kaitoy
- License: other
- Created: 2017-08-08T23:21:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T09:54:50.000Z (over 7 years ago)
- Last Synced: 2024-12-01T09:13:09.634Z (2 months ago)
- Topics: atom, servicenow
- Homepage: https://atom.io/packages/servicenow-snippets
- Size: 5.47 MB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# servicenow-snippets package
ServiceNow snippets for Atom.
![screenshot](https://github.com/kaitoy/servicenow-snippets/raw/master/servicenow-snippets.gif)
## gs
* `gsi`: gs info```javascript
gs.info('${1:message}');$2
```* `gsw`: gs warn
```javascript
gs.warn('${1:message}');$2
```* `gse`: gs error
```javascript
gs.error('${1:message}');$2
```* `gsgu`: gs getUser
```javascript
var ${1:user} = gs.getUser();$2
```* `gshr`: gs hasRole
```javascript
gs.hasRole('${1:role}');$2
```* `gsn`: gs nil
```javascript
gs.nil(${1:object });$2
```## GlideRecord
* `grn`: GlideRecord new```javascript
var ${1:gr} = new GlideRecord('${2:table}');$3
```* `graaq`: GlideRecord addActiveQuery
```javascript
${1:gr}.addActiveQuery();$2
```* `graq`: GlideRecord addQuery
```javascript
${1:gr}.addQuery('${2:name}', ${3:value});$4
```* `grq`: GlideRecord query
```javascript
${1:gr}.query();$2
```* `grg`: GlideRecord get
```javascript
${1:gr}.get('${2:sysId}');$3
```* `grgrc`: GlideRecord getRowCount
```javascript
${1:gr}.getRowCount();$2
```* `grgv`: GlideRecord getValue
```javascript
${1:gr}.getValue('${2:name}');$3
```* `grsv`: GlideRecord setValue
```javascript
${1:gr}.setValue('${2:name}', ${3:value});$4
```* `grn`: GlideRecord next
```javascript
${1:gr}.next();$2
```* `grhn`: GlideRecord hasNext
```javascript
${1:gr}.hasNext();$2
```* `gru`: GlideRecord update
```javascript
${1:gr}.update();$2
```* `grnii`: GlideRecord new initialize insert
```javascript
var ${1:gr} = new GlideRecord('${2:table}');
${1:gr}.initialize();
${1:gr}.insert();$3
```* `grnni`: GlideRecord new newRecord insert
```javascript
var ${1:gr} = new GlideRecord('${2:table}');
${1:gr}.newRecord();
${1:gr}.insert();$3
```* `grql`: GlideRecord query loop
```javascript
var ${1:gr} = new GlideRecord('${2:table}');
${1:gr}.addQuery('${3:name}', ${4:value});
${1:gr}.query();
while (${1:gr}.next()) {
$5
}
```