servicenow-expert
БесплатноБез исполняемых скриптовНе проверенExpert in ServiceNow platform development, scripting, workflows, Service Portal, CMDB, ITSM modules, and integrations. Use when the user mentions ITSM, ITOM…
от personamanagmentlayer★ 46 звёзд на GitHubОб этом скилле
ServiceNow Expert
Core Concepts
ServiceNow Platform
- ITSM - IT Service Management (Incident, Problem, Change)
- ITOM - IT Operations Management
- ITBM - IT Business Management
- CMDB - Configuration Management Database
- Service Portal - User-facing portal interface
- Flow Designer - Visual workflow automation
Development Components
- Business Rules - Server-side scripts on table operations
- Client Scripts - Client-side validation and logic
- UI Policies - Dynamic form behavior
- Script Includes - Reusable server-side code libraries
- Scheduled Jobs - Automated background tasks
- Transform Maps - Data import/integration mapping
Scripting APIs
- GlideRecord - Database query and manipulation
- GlideAjax - Asynchronous client-server communication
- GlideSystem - System utilities (gs object)
- GlideDateTime - Date and time operations
- GlideUser - User information and permissions
- RESTMessageV2 - External API integration
Implementation Examples
GlideRecord Query and Update
// Business Rule - Update related records
(function executeRule(current, previous /*null when async*/) {
// Query for related incidents
var gr = new GlideRecord('incident');
gr.addQuery('caller_id', current.sys_id);
gr.addQuery('state', 'IN', '1,2,3'); // New, In Progress, On Hold
gr.query();
var incidentCount = 0;
var incidentNumbers = [];
while (gr.next()) {
// Update priority based on user's VIP status
if (current.vip == true) {
gr.priority = '1'; // Critical
gr.update();
incidentCount++;
incidentNumbers.push(gr.number.toString());
}
}
// Log activity
if (incidentCount > 0) {
gs.addInfoMessage(
'Updated ' + incidentCount + ' incidents: ' + incidentNumbers.join(', ')
);
gs.info(
'VIP status updated for user ' +
current.sys_id +
', affected incidents: ' +
incidentNumbers.join(', ')
);
}
})(current, previous);
Script Include with REST API Integration
var ExternalAPIIntegration = Class.create();
ExternalAPIIntegration.prototype = Object.extendsObject(AbstractAjaxProcessor, {
// Call external API to get user data
getUserDetails: function (userId) {
try {
var request = new sn_ws.RESTMessageV2();
request.setEndpoint('https://api.example.com/users/' + userId);
request.setHttpMethod('GET');
request.setRequestHeader('Accept', 'application/json');
request.setRequestHeader('Authorization', 'Bearer ' + this._getToken());
var response = request.execute();
var httpStatus = response.getStatusCode();
if (httpStatus == 200) {
var responseBody = response.getBody();
var jsonResponse = JSON.parse(responseBody);
return jsonResponse;
} else {
gs.error('API call failed with status: ' + httpStatus);
return null;
}
} catch (ex) {
gs.error('Exception in getUserDetails: ' + ex.message);
return null;
}
},
// Sync user from external system
syncUser: function (userId) {
var userData = this.getUserDetails(userId);
if (userData) {
var gr = new GlideRecord('sys_user');
gr.addQuery('employee_number', userData.employeeId);
gr.query();
if (gr.next()) {
gr.email = userData.email;
gr.phone = userData.phone;
gr.department = this._getDepartmentId(userData.department);
gr.title = userData.jobTitle;
gr.update();
gs.info('User synced successfully: ' + gr.sys_id);
return gr.sys_id.toString();
} else {
gs.warn('User not found in ServiceNow: ' + userData.employeeId);
return null;
}
}
return null;
},
_getToken: function () {
// Retrieve from system property or credential store
return gs.getProperty('external.api.token');
},
_getDepartmentId: function (deptName) {
var gr = new GlideRecord('cmn_department');
gr.addQuery('name', deptName);
gr.query();
if (gr.next()) {
return gr.sys_id.toString();
}
return '';
},
type: 'ExternalAPIIntegration',
});
Client Script with GlideAjax
// Client Script - onChange
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
// Call server-side script to validate user
var ga = new GlideAjax('UserValidationAjax');
ga.addParam('sysparm_name', 'validateUser');
ga.addParam('sysparm_user_id', newValue);
ga.getXMLAnswer(function (answer) {
var result = JSON.parse(answer);
if (!result.valid) {
g_form.showErrorBox('caller_id', result.message);
g_form.clearValue('caller_id');
} else {
// Populate additional fields
g_form.setValue('caller_phone', result.phone);
g_form.setValue('caller_email', result.email);
// Show info message
g_form.ad
Установить servicenow-expert в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashWebSearchFAQ
Что делает скилл servicenow-expert?
Expert in ServiceNow platform development, scripting, workflows, Service Portal, CMDB, ITSM modules, and integrations. Use when the user mentions ITSM, ITOM, workflow, automation, CMDB, or service portal, or when the task involves ServiceNow Platform, Development Components, Scripting APIs, or GlideRecord Query and Update.
Как установить скилл servicenow-expert?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл servicenow-expert запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic