This commit is contained in:
System Administrator committed 2026-10-14 12:23:38 +06:00
1 parent 845c8a6622
commit 7ae6776c09
2 files changed
+47

No files matched your search

@@ -0,0 +1,35 @@
import { Flow, wfa, trigger, action } from '@servicenow/sdk/automation'
Flow(
{
$id: Now.ID['cf7b02afc3b74f102f367205e4013161'],
name: 'Test Flow',
internalName: 'test_flow',
masterSnapshot: 'fcbc4263c3f74f102f367205e40131d0',
},
wfa.trigger(
trigger.application.serviceCatalog,
{
$id: Now.ID['76ab0aafc3b74f102f367205e4013170'],
},
{
run_flow_in: 'background',
}
),
(_params) => {
wfa.action(
action.core.updateRecord,
{
$id: Now.ID['4ebb466bc3b74f102f367205e4013132'],
uuid: '572993b2-1326-4c38-9401-214eeb454162',
},
{
record: wfa.dataPill(_params.trigger.request_item, 'reference'),
values: TemplateValue({
priority: '5',
}),
table_name: 'sc_req_item',
}
)
}
)
@@ -0,0 +1,12 @@
import { Record } from '@servicenow/sdk/core'
Record({
$id: Now.ID['99bc8263c3f74f102f367205e4013126'],
table: 'sys_flow_catalog_trigger',
data: {
active: 'true',
run_flow_in: 'background',
sys_domain: 'global',
sys_domain_path: '/',
},
})