@servicenow/sdk - v4.7.0
Preparing search index...
@servicenow/sdk/automation
actionStep
Variable actionStep
Const
actionStep
:
{
askForApproval
:
ActionStepWithMeta
<
FlowIOType
<
{
approval_conditions
:
Typed
<
string
|
number
,
{
column_type
:
"approval_rules"
;
label
:
"Approval Conditions"
;
mandatory
:
true
;
sysId
:
"745c0f900b22320085c083eb37673a79"
;
}
,
>
;
approval_field
:
Typed
<
string
,
{
label
:
"Approval Field"
;
sysId
:
"db521c5567323200c4098c7942415a67"
}
,
>
;
approval_reason
:
Typed
<
string
,
{
label
:
"Approval Reason"
;
sysId
:
"30a496c67f3012108e688c90ac8665a0"
}
,
>
;
due_date
:
Typed
<
string
,
{
label
:
"Due Date"
;
sysId
:
"d3dac4860b333200c438ee6537673a5a"
}
,
>
;
journal_field
:
Typed
<
string
,
{
label
:
"Journal Field"
;
sysId
:
"f7b3d09567323200c4098c7942415a65"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table"
;
label
:
"Record"
;
mandatory
:
true
;
sysId
:
"982c8b900b22320085c083eb37673a7c"
;
}
,
>
;
table
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"a44ccb900b22320085c083eb37673ab4"
}
,
>
;
}
,
>
,
FlowIOType
<
{
state
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Approval State"
;
sysId
:
"aa7568070b23320085c083eb37673a73"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
collectActivityContext
:
ActionStepWithMeta
<
FlowIOType
<
{}
>
,
FlowIOType
<
{
activity_context
:
Typed
<
|
string
|
Record
<
"sys_pd_activity_context"
>
|
ExplicitKey
<
"sys_pd_activity_context"
>
|
TableBrand
<
"sys_pd_activity_context"
>
,
{
label
:
"Activity Context"
;
referenceTable
:
"sys_pd_activity_context"
;
sysId
:
"89e202b9a3013110fc7ad1f3e31e616d"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
createAppFromPayload
:
ActionStepWithMeta
<
FlowIOType
<
{
scan_id
:
Typed
<
string
,
{
label
:
"scan_id"
;
sysId
:
"c74f30905b33101083f30f216581c7f0"
}
,
>
;
template_instance_id
:
Typed
<
string
,
{
label
:
"template_instance_id"
;
mandatory
:
true
;
sysId
:
"03c116415b03101083f30f216581c74d"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
sys_app_id
:
Typed
<
string
,
{
label
:
"sys_app_id"
;
mandatory
:
true
;
sysId
:
"f343f3925b12101083f30f216581c739"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
createOrUpdateRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
fields
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"table"
;
label
:
"Fields"
;
sysId
:
"5eac547a53a3230034c6ddeeff7b12c7"
;
}
,
>
;
table
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"728c907a53a3230034c6ddeeff7b12e9"
}
,
>
;
}
,
>
,
FlowIOType
<
{
error_message
:
Typed
<
string
,
{
label
:
"Error Message"
;
sysId
:
"9dbbda1053bb230034c6ddeeff7b12c8"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table"
;
label
:
"Record"
;
sysId
:
"5d0ade9c537b230034c6ddeeff7b12ac"
;
}
,
>
;
status
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Status"
;
sysId
:
"b32b521053bb230034c6ddeeff7b12d2"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"9c9ad6dc537b230034c6ddeeff7b127e"
}
,
>
;
}
,
>
,
false
,
false
,
>
;
createRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
create_record_field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"create_record_table_name"
;
label
:
"Field Values"
;
sysId
:
"e78d203667003200553fafb49585ef63"
;
}
,
>
;
create_record_table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"f0fb68f267003200553fafb49585efa0"
}
,
>
;
skip_insert
:
Typed
<
boolean
,
{
label
:
"Skip Insert"
;
sysId
:
"9e5f9d85536333003bf1d9109ec587c6"
}
,
>
;
}
,
>
,
FlowIOType
<
{
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"966cd57267003200553fafb49585efa0"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"795c557267003200553fafb49585efb0"
}
,
>
;
}
,
>
,
false
,
false
,
>
;
createRecordForRemoteTable
:
ActionStepWithMeta
<
FlowIOType
<
{
create_record_field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"create_record_table_name"
;
label
:
"Field Values"
;
sysId
:
"e5d96b2d53112110aba6ddeeff7b1236"
;
}
,
>
;
create_record_table_name
:
Typed
<
keyof
Tables
,
{
label
:
"create_record_table_name"
;
sysId
:
"c442d88a53912110aba6ddeeff7b1277"
;
}
,
>
;
query_id
:
Typed
<
string
|
number
,
{
column_type
:
"string_full_utf8"
;
label
:
"Query ID"
;
mandatory
:
true
;
sysId
:
"8d068211a3913110aba698e6d31e61b6"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"2b3a236d53112110aba6ddeeff7b129d"
}
,
>
;
}
,
>
,
false
,
false
,
>
;
createTask
:
ActionStepWithMeta
<
FlowIOType
<
{
create_record_field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"create_record_table_name"
;
label
:
"Field Values"
;
sysId
:
"2a7872d60b233200cbd9e240e0ea601e"
;
}
,
>
;
create_record_table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
mandatory
:
false
;
sysId
:
"9b6832d60b233200cbd9e240e0ea601c"
;
}
,
>
;
skip_insert
:
Typed
<
boolean
,
{
label
:
"Skip Insert"
;
mandatory
:
false
;
sysId
:
"1aeb688553af33003bf1d9109ec58710"
;
}
,
>
;
wait
:
Typed
<
boolean
,
{
label
:
"Wait"
;
mandatory
:
false
;
sysId
:
"a498b2d60b233200cbd9e240e0ea6004"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
table
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"19efa6b653333200f5bf435723dc340e"
}
,
>
;
task
:
Typed
<
string
|
Record
,
{
dependent
:
"table"
;
label
:
"Task"
;
sysId
:
"9f0b036353233200f5bf435723dc3475"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
deleteMultipleRecords
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Conditions"
;
mandatory
:
true
;
sysId
:
"a34cb0a6c71100105312134c95c260a3"
;
}
,
>
;
dont_fail_flow_on_error
:
Typed
<
boolean
,
{
label
:
"Don't fail on error"
;
sysId
:
"76207652c72a40105312134c95c26083"
;
}
,
>
;
set_workflow
:
Typed
<
boolean
,
{
label
:
"Run Business Rules and Workflow"
;
sysId
:
"156c34a6c71100105312134c95c26068"
;
}
,
>
;
sort_column
:
Typed
<
string
,
{
label
:
"Order by"
;
sysId
:
"79fb8029c7ee00105312134c95c26042"
}
,
>
;
sort_type
:
Typed
<
"sort_asc"
|
"sort_desc"
,
{
choices
:
{
sort_asc
:
{
label
:
"a to z"
}
;
sort_desc
:
{
label
:
"z to a"
}
;
}
;
label
:
"Sort Type"
;
sysId
:
"a85c8429c7ee00105312134c95c26033"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
mandatory
:
true
;
sysId
:
"693c70a6c71100105312134c95c26011"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
count
:
Typed
<
number
,
{
label
:
"Count"
;
sysId
:
"e7db3c66c71100105312134c95c26031"
}
,
>
;
error_message
:
Typed
<
string
,
{
label
:
"Error Message"
;
sysId
:
"60fbbc66c71100105312134c95c26033"
}
,
>
;
status
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Status"
;
sysId
:
"ce41be52c72a40105312134c95c2606b"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
deleteRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"995a2105c723220061f553c6f0976301"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"ab19a9c1c723220061f553c6f0976383"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
false
,
false
,
>
;
email
:
ActionStepWithMeta
<
FlowIOType
<
{
bcc
:
Typed
<
string
,
{
label
:
"BCC"
;
sysId
:
"e8f043277f0b32005f58108c3ffa91d1"
}
,
>
;
body
:
Typed
<
string
|
number
,
{
column_type
:
"html"
;
label
:
"Body"
;
sysId
:
"8ef44f277f0b32005f58108c3ffa91f7"
;
}
,
>
;
cc
:
Typed
<
string
,
{
label
:
"CC"
;
sysId
:
"33c003277f0b32005f58108c3ffa91e8"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Target Record"
;
sysId
:
"9971a338a70323008299b39f08790195"
;
}
,
>
;
subject
:
Typed
<
string
,
{
label
:
"Subject"
;
mandatory
:
true
;
sysId
:
"4d0183277f0b32005f58108c3ffa9197"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"e1312338a70323008299b39f087901f5"
}
,
>
;
to
:
Typed
<
string
,
{
label
:
"To"
;
mandatory
:
true
;
sysId
:
"40cf3ae37f0b32005f58108c3ffa91f3"
;
}
,
>
;
watermark_email
:
Typed
<
boolean
,
{
label
:
"Include Watermark"
;
sysId
:
"0fba76757303230082999cfd7bf6a7f2"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
email
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email"
;
referenceTable
:
"sys_email"
;
sysId
:
"f4a503677f0b32005f58108c3ffa91cf"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
fireEvent
:
ActionStepWithMeta
<
FlowIOType
<
{
event_name
:
Typed
<
|
string
|
Record
<
"sysevent_register"
>
|
ExplicitKey
<
"sysevent_register"
>
|
TableBrand
<
"sysevent_register"
>
,
{
label
:
"Event"
;
mandatory
:
true
;
referenceTable
:
"sysevent_register"
;
sysId
:
"599cf11aff30311077a95dac793bf1d2"
;
}
,
>
;
parm1
:
Typed
<
string
,
{
label
:
"Parm1"
;
sysId
:
"077ef59aff30311077a95dac793bf1ba"
}
,
>
;
parm2
:
Typed
<
string
,
{
label
:
"Parm2"
;
sysId
:
"17be7d9aff30311077a95dac793bf18f"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table"
;
label
:
"Record"
;
mandatory
:
true
;
sysId
:
"a3ad395aff30311077a95dac793bf12e"
;
}
,
>
;
table
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"020ebd5aff30311077a95dac793bf1ea"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
false
,
false
,
>
;
getLatestResponseTextFromEmail
:
ActionStepWithMeta
<
FlowIOType
<
{
email_record
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email Record"
;
mandatory
:
true
;
referenceTable
:
"sys_email"
;
sysId
:
"44d757420f13101051218e8ebc767eee"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
latest_response_text
:
Typed
<
string
|
number
,
{
column_type
:
"string_full_utf8"
;
label
:
"Latest Response Text"
;
mandatory
:
true
;
sysId
:
"6f88df420f13101051218e8ebc767e67"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
log
:
ActionStepWithMeta
<
FlowIOType
<
{
log_level
:
Typed
<
"info"
|
"error"
|
"warn"
,
{
choices
:
{
error
:
{
label
:
"error"
;
sequence
:
20
}
;
info
:
{
label
:
"info"
;
sequence
:
40
}
;
warn
:
{
label
:
"warn"
;
sequence
:
30
}
;
}
;
label
:
"Log Level"
;
sysId
:
"ab123adbc712220061f553c6f0976387"
;
}
,
>
;
log_message
:
Typed
<
string
,
{
label
:
"Log Message"
;
sysId
:
"4fc2fadbc712220061f553c6f0976388"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
false
,
false
,
>
;
lookUpRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Condition"
;
sysId
:
"0cfca6043b23220057a4a2e334efc43b"
}
,
>
;
dont_fail_flow_on_error
:
Typed
<
boolean
,
{
label
:
"Don't fail flow on error"
;
sysId
:
"b019356673110010d70877186bf6a780"
;
}
,
>
;
lookup_table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"f9cc66043b23220057a4a2e334efc42f"
}
,
>
;
multiple_records_found
:
Typed
<
"error"
|
"use_first_record"
,
{
choices
:
{
error
:
{
label
:
"Fail the step"
;
sequence
:
20
}
;
use_first_record
:
{
label
:
"Return only the first record"
;
sequence
:
10
;
}
;
}
;
label
:
"If multiple records are found"
;
sysId
:
"3b9387923b23220057a4a2e334efc4e4"
;
}
,
>
;
sort_column
:
Typed
<
string
,
{
label
:
"Order by"
;
sysId
:
"a6da115587003300663ca1bb36cb0bc0"
}
,
>
;
sort_type
:
Typed
<
"sort_asc"
|
"sort_desc"
,
{
choices
:
{
sort_asc
:
{
label
:
"a to z"
;
sequence
:
100
}
;
sort_desc
:
{
label
:
"z to a"
;
sequence
:
200
}
;
}
;
label
:
"Sort Type"
;
sysId
:
"c62b915587003300663ca1bb36cb0bd2"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
error_message
:
Typed
<
string
,
{
label
:
"Error Message"
;
sysId
:
"145a3da673110010d70877186bf6a7a5"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"d3e627913b23220057a4a2e334efc45e"
;
}
,
>
;
status
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Status"
;
sysId
:
"14bd89c673310010d70877186bf6a7be"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"a64d6a043b23220057a4a2e334efc4e8"
}
,
>
;
}
,
>
,
false
,
false
,
>
;
lookUpRecords
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Conditions"
;
sysId
:
"95f8bb21c36a32002841b63b12d3ae0c"
}
,
>
;
limit
:
Typed
<
number
,
{
label
:
"Max Results"
;
sysId
:
"0677f8e053200300f5bf435723dc34e3"
}
,
>
;
sort_column
:
Typed
<
string
,
{
label
:
"Order by"
;
sysId
:
"2df79dd187003300663ca1bb36cb0b33"
}
,
>
;
sort_type
:
Typed
<
"sort_asc"
|
"sort_desc"
,
{
choices
:
{
sort_asc
:
{
label
:
"a to z"
;
sequence
:
100
}
;
sort_desc
:
{
label
:
"z to a"
;
sequence
:
200
}
;
}
;
label
:
"Sort Type"
;
sysId
:
"6a88151587003300663ca1bb36cb0b14"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"4d19bb21c36a32002841b63b12d3aeef"
}
,
>
;
}
,
>
,
FlowIOType
<
{
count
:
Typed
<
number
,
{
label
:
"Count"
;
sysId
:
"f6700274c32b32002841b63b12d3ae37"
}
,
>
;
records
:
Typed
<
string
|
number
,
{
column_type
:
"records"
;
label
:
"Records"
;
sysId
:
"5db8f721c36a32002841b63b12d3aeb7"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table Name"
;
sysId
:
"c576f2a2c32232002841b63b12d3ae66"
}
,
>
;
}
,
>
,
false
,
false
,
>
;
notification
:
ActionStepWithMeta
<
FlowIOType
<
{
notification
:
Typed
<
|
string
|
Record
<
"sysevent_email_action"
>
|
ExplicitKey
<
"sysevent_email_action"
>
|
TableBrand
<
"sysevent_email_action"
>
,
{
label
:
"Notification"
;
mandatory
:
true
;
referenceTable
:
"sysevent_email_action"
;
sysId
:
"cc7fb8b17f0332004d145212bdfa91da"
;
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"4d1cbc717f0332004d145212bdfa91b8"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"b8a793697f2a32005f58108c3ffa910b"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
false
,
false
,
>
;
script
:
ActionStepWithMeta
<
FlowIOType
<
{
application
:
Typed
<
|
string
|
Record
<
"ecc_agent_application"
>
|
ExplicitKey
<
"ecc_agent_application"
>
|
TableBrand
<
"ecc_agent_application"
>
,
{
label
:
"MID Application"
;
referenceTable
:
"ecc_agent_application"
;
sysId
:
"f5e56d79b3101300176b051a16a8dce4"
;
}
,
>
;
capabilities
:
Typed
<
|
string
|
Record
<
"ecc_agent_capability"
>
|
ExplicitKey
<
"ecc_agent_capability"
>
|
TableBrand
<
"ecc_agent_capability"
>
,
{
label
:
"Capabilities"
;
referenceTable
:
"ecc_agent_capability"
;
sysId
:
"7d36ed79b3101300176b051a16a8dceb"
;
}
,
>
;
connection_alias
:
Typed
<
|
string
|
Record
<
"sys_alias"
>
|
ExplicitKey
<
"sys_alias"
>
|
TableBrand
<
"sys_alias"
>
,
{
label
:
"Connection Alias"
;
referenceTable
:
"sys_alias"
;
sysId
:
"2b2ba571b3101300176b051a16a8dc8f"
;
}
,
>
;
host
:
Typed
<
string
,
{
depends_on
:
readonly
[
"connection_alias"
]
;
label
:
"Host"
;
sysId
:
"28e4e579b3101300176b051a16a8dc0f"
;
}
,
>
;
mid_cluster
:
Typed
<
string
|
Record
,
{
dependent
:
""
;
label
:
"MID Cluster"
;
sysId
:
"0d2db9e653310110d3a8ddeeff7b1208"
;
}
,
>
;
mid_selection
:
Typed
<
"auto_select"
|
"specific_mid_cluster"
|
"specific_mid_server"
,
{
choices
:
{
auto_select
:
{
label
:
"Auto-Select MID Server"
;
sequence
:
1
}
;
specific_mid_cluster
:
{
label
:
"Specific MID Cluster"
;
sequence
:
3
}
;
specific_mid_server
:
{
label
:
"Specific MID Server"
;
sequence
:
2
}
;
}
;
label
:
"MID Selection"
;
sysId
:
"cbd1070373531010791f94596bf6a776"
;
}
,
>
;
mid_selection_type
:
Typed
<
"any"
|
"use_connection_alias"
|
"define_connection_inline"
,
{
choices
:
{
any
:
{
label
:
"Any MID"
;
sequence
:
1
}
;
define_connection_inline
:
{
label
:
"Use Inline Selection"
;
sequence
:
3
;
}
;
use_connection_alias
:
{
label
:
"Use Connection Alias"
;
sequence
:
2
}
;
}
;
label
:
"Select MID Server"
;
sysId
:
"2c226939b3101300176b051a16a8dc83"
;
}
,
>
;
mid_server
:
Typed
<
string
|
Record
,
{
dependent
:
""
;
label
:
"MID Server"
;
sysId
:
"f0d58b8373531010791f94596bf6a7be"
;
}
,
>
;
required_run_time
:
Typed
<
"instance"
|
"vanilla"
|
"mid"
,
{
choices
:
{
instance
:
{
label
:
"Instance"
;
sequence
:
number
}
;
mid
:
{
label
:
"MID"
;
sequence
:
number
}
;
vanilla
:
{
label
:
"Vanilla (Core JavaScript)"
;
sequence
:
number
}
;
}
;
label
:
"Required Runtime"
;
mandatory
:
true
;
sysId
:
"74315b04b3201300176b051a16a8dc2b"
;
}
,
>
;
script
:
Typed
<
string
|
ScriptModule
<
Function
>
,
{
label
:
"Script"
;
sysId
:
"71aa7f6647032200b4fad7527c9a719b"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
true
,
true
,
>
;
sms
:
ActionStepWithMeta
<
FlowIOType
<
{
message
:
Typed
<
string
,
{
label
:
"Message"
;
mandatory
:
true
;
sysId
:
"c951b106737c001086592f163cf6a75a"
;
}
,
>
;
recipients
:
Typed
<
string
,
{
label
:
"Recipients"
;
mandatory
:
true
;
sysId
:
"dd317dc2737c001086592f163cf6a7fe"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
email
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email"
;
referenceTable
:
"sys_email"
;
sysId
:
"29817506737c001086592f163cf6a72d"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
updateMultipleRecords
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Conditions"
;
mandatory
:
true
;
sysId
:
"66401866c7dd00105312134c95c2607e"
;
}
,
>
;
dont_fail_flow_on_error
:
Typed
<
boolean
,
{
label
:
"Don't fail on error"
;
sysId
:
"e2214bd6c72a40105312134c95c2600c"
;
}
,
>
;
field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"table_name"
;
label
:
"Field Values"
;
mandatory
:
true
;
sysId
:
"a5505866c7dd00105312134c95c26065"
;
}
,
>
;
set_autosysfields
:
Typed
<
boolean
,
{
label
:
"Update System Fields"
;
sysId
:
"0f7194a6c7dd00105312134c95c26028"
;
}
,
>
;
set_workflow
:
Typed
<
boolean
,
{
label
:
"Run Business Rules and Workflow"
;
sysId
:
"8a6154a6c7dd00105312134c95c26019"
;
}
,
>
;
sort_column
:
Typed
<
string
,
{
label
:
"Order by"
;
sysId
:
"168d8069c7ee00105312134c95c260a7"
}
,
>
;
sort_type
:
Typed
<
"sort_asc"
|
"sort_desc"
,
{
choices
:
{
sort_asc
:
{
label
:
"a to z"
}
;
sort_desc
:
{
label
:
"z to a"
}
;
}
;
label
:
"Sort Type"
;
sysId
:
"71ad0469c7ee00105312134c95c26027"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
mandatory
:
true
;
sysId
:
"c530d466c7dd00105312134c95c26066"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
count
:
Typed
<
number
,
{
label
:
"Count"
;
sysId
:
"a4101466c7dd00105312134c95c260a8"
}
,
>
;
error_message
:
Typed
<
string
,
{
label
:
"Error Message"
;
sysId
:
"10209466c7dd00105312134c95c26031"
}
,
>
;
status
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Status"
;
sysId
:
"4f814fd6c72a40105312134c95c26001"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
updateRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
mandatory
:
true
;
sysId
:
"aab0ddb267003200553fafb49585ef30"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
mandatory
:
true
;
sysId
:
"3930d57267003200553fafb49585efc5"
;
}
,
>
;
update_record_field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"table_name"
;
label
:
"Field Values"
;
sysId
:
"fcbf6c3667003200553fafb49585ef2e"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"ffd3197267003200553fafb49585ef5a"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"2fb3d57267003200553fafb49585ef43"
}
,
>
;
}
,
>
,
false
,
false
,
>
;
waitForCondition
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Conditions"
;
mandatory
:
true
;
sysId
:
"7de2fcca0b18030085c083eb37673aed"
;
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
mandatory
:
true
;
sysId
:
"c5d2fcca0b18030085c083eb37673a1c"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"72b2bcca0b18030085c083eb37673a0b"
}
,
>
;
timeout_duration
:
Typed
<
string
|
Duration
,
{
label
:
"Duration"
;
sysId
:
"1fac6063876100102fa5a1bb36cb0bac"
}
,
>
;
timeout_flag
:
Typed
<
boolean
,
{
label
:
"Enable timeout"
;
sysId
:
"bc93428187120010663ca1bb36cb0b83"
}
,
>
;
timeout_schedule
:
Typed
<
|
string
|
Record
<
"cmn_schedule"
>
|
ExplicitKey
<
"cmn_schedule"
>
|
TableBrand
<
"cmn_schedule"
>
,
{
label
:
"Schedule"
;
referenceTable
:
"cmn_schedule"
;
sysId
:
"ae1d6463876100102fa5a1bb36cb0b56"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
state
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"State"
;
sysId
:
"1fbdac63876100102fa5a1bb36cb0ba2"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
waitForEmailReply
:
ActionStepWithMeta
<
FlowIOType
<
{
enable_timeout
:
Typed
<
boolean
,
{
label
:
"Enable Timeout"
;
sysId
:
"b3285f757f0f12108e688c90ac866575"
}
,
>
;
record
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email Record"
;
mandatory
:
true
;
referenceTable
:
"sys_email"
;
sysId
:
"391597b17f0f12108e688c90ac866571"
;
}
,
>
;
timeout_duration
:
Typed
<
string
|
Duration
,
{
label
:
"Duration"
;
sysId
:
"3e78d3b57f0f12108e688c90ac86653b"
}
,
>
;
timeout_schedule
:
Typed
<
|
string
|
Record
<
"cmn_schedule"
>
|
ExplicitKey
<
"cmn_schedule"
>
|
TableBrand
<
"cmn_schedule"
>
,
{
label
:
"Schedule"
;
referenceTable
:
"cmn_schedule"
;
sysId
:
"b7a8d7b57f0f12108e688c90ac86659f"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
email_reply
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email Reply"
;
referenceTable
:
"sys_email"
;
sysId
:
"10991bf57f0f12108e688c90ac866577"
;
}
,
>
;
state
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"State"
;
sysId
:
"752ad3397f0f12108e688c90ac866579"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
waitForMessage
:
ActionStepWithMeta
<
FlowIOType
<
{
enable_timeout
:
Typed
<
boolean
,
{
label
:
"Enable Timeout"
;
sysId
:
"d728c634931012105cd18166448918b0"
}
,
>
;
message
:
Typed
<
string
|
number
,
{
column_type
:
"string_full_utf8"
;
label
:
"Message"
;
mandatory
:
true
;
sysId
:
"83e74ef0931012105cd181664489182b"
;
}
,
>
;
timeout_duration
:
Typed
<
string
|
Duration
,
{
label
:
"Timeout Duration"
;
sysId
:
"15a942b4931012105cd18166448918bc"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
payload
:
Typed
<
string
|
number
,
{
column_type
:
"string_full_utf8"
;
label
:
"Payload"
;
sysId
:
"640b4ef4931012105cd181664489180b"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
;
}
= ...
Export all steps as a grouped object for convenient importing under action_step object
Type Declaration
askForApproval
:
ActionStepWithMeta
<
FlowIOType
<
{
approval_conditions
:
Typed
<
string
|
number
,
{
column_type
:
"approval_rules"
;
label
:
"Approval Conditions"
;
mandatory
:
true
;
sysId
:
"745c0f900b22320085c083eb37673a79"
;
}
,
>
;
approval_field
:
Typed
<
string
,
{
label
:
"Approval Field"
;
sysId
:
"db521c5567323200c4098c7942415a67"
}
,
>
;
approval_reason
:
Typed
<
string
,
{
label
:
"Approval Reason"
;
sysId
:
"30a496c67f3012108e688c90ac8665a0"
}
,
>
;
due_date
:
Typed
<
string
,
{
label
:
"Due Date"
;
sysId
:
"d3dac4860b333200c438ee6537673a5a"
}
,
>
;
journal_field
:
Typed
<
string
,
{
label
:
"Journal Field"
;
sysId
:
"f7b3d09567323200c4098c7942415a65"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table"
;
label
:
"Record"
;
mandatory
:
true
;
sysId
:
"982c8b900b22320085c083eb37673a7c"
;
}
,
>
;
table
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"a44ccb900b22320085c083eb37673ab4"
}
,
>
;
}
,
>
,
FlowIOType
<
{
state
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Approval State"
;
sysId
:
"aa7568070b23320085c083eb37673a73"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
collectActivityContext
:
ActionStepWithMeta
<
FlowIOType
<
{}
>
,
FlowIOType
<
{
activity_context
:
Typed
<
|
string
|
Record
<
"sys_pd_activity_context"
>
|
ExplicitKey
<
"sys_pd_activity_context"
>
|
TableBrand
<
"sys_pd_activity_context"
>
,
{
label
:
"Activity Context"
;
referenceTable
:
"sys_pd_activity_context"
;
sysId
:
"89e202b9a3013110fc7ad1f3e31e616d"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
createAppFromPayload
:
ActionStepWithMeta
<
FlowIOType
<
{
scan_id
:
Typed
<
string
,
{
label
:
"scan_id"
;
sysId
:
"c74f30905b33101083f30f216581c7f0"
}
,
>
;
template_instance_id
:
Typed
<
string
,
{
label
:
"template_instance_id"
;
mandatory
:
true
;
sysId
:
"03c116415b03101083f30f216581c74d"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
sys_app_id
:
Typed
<
string
,
{
label
:
"sys_app_id"
;
mandatory
:
true
;
sysId
:
"f343f3925b12101083f30f216581c739"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
createOrUpdateRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
fields
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"table"
;
label
:
"Fields"
;
sysId
:
"5eac547a53a3230034c6ddeeff7b12c7"
;
}
,
>
;
table
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"728c907a53a3230034c6ddeeff7b12e9"
}
,
>
;
}
,
>
,
FlowIOType
<
{
error_message
:
Typed
<
string
,
{
label
:
"Error Message"
;
sysId
:
"9dbbda1053bb230034c6ddeeff7b12c8"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table"
;
label
:
"Record"
;
sysId
:
"5d0ade9c537b230034c6ddeeff7b12ac"
;
}
,
>
;
status
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Status"
;
sysId
:
"b32b521053bb230034c6ddeeff7b12d2"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"9c9ad6dc537b230034c6ddeeff7b127e"
}
,
>
;
}
,
>
,
false
,
false
,
>
createRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
create_record_field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"create_record_table_name"
;
label
:
"Field Values"
;
sysId
:
"e78d203667003200553fafb49585ef63"
;
}
,
>
;
create_record_table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"f0fb68f267003200553fafb49585efa0"
}
,
>
;
skip_insert
:
Typed
<
boolean
,
{
label
:
"Skip Insert"
;
sysId
:
"9e5f9d85536333003bf1d9109ec587c6"
}
,
>
;
}
,
>
,
FlowIOType
<
{
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"966cd57267003200553fafb49585efa0"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"795c557267003200553fafb49585efb0"
}
,
>
;
}
,
>
,
false
,
false
,
>
createRecordForRemoteTable
:
ActionStepWithMeta
<
FlowIOType
<
{
create_record_field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"create_record_table_name"
;
label
:
"Field Values"
;
sysId
:
"e5d96b2d53112110aba6ddeeff7b1236"
;
}
,
>
;
create_record_table_name
:
Typed
<
keyof
Tables
,
{
label
:
"create_record_table_name"
;
sysId
:
"c442d88a53912110aba6ddeeff7b1277"
;
}
,
>
;
query_id
:
Typed
<
string
|
number
,
{
column_type
:
"string_full_utf8"
;
label
:
"Query ID"
;
mandatory
:
true
;
sysId
:
"8d068211a3913110aba698e6d31e61b6"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"2b3a236d53112110aba6ddeeff7b129d"
}
,
>
;
}
,
>
,
false
,
false
,
>
createTask
:
ActionStepWithMeta
<
FlowIOType
<
{
create_record_field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"create_record_table_name"
;
label
:
"Field Values"
;
sysId
:
"2a7872d60b233200cbd9e240e0ea601e"
;
}
,
>
;
create_record_table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
mandatory
:
false
;
sysId
:
"9b6832d60b233200cbd9e240e0ea601c"
;
}
,
>
;
skip_insert
:
Typed
<
boolean
,
{
label
:
"Skip Insert"
;
mandatory
:
false
;
sysId
:
"1aeb688553af33003bf1d9109ec58710"
;
}
,
>
;
wait
:
Typed
<
boolean
,
{
label
:
"Wait"
;
mandatory
:
false
;
sysId
:
"a498b2d60b233200cbd9e240e0ea6004"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
table
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"19efa6b653333200f5bf435723dc340e"
}
,
>
;
task
:
Typed
<
string
|
Record
,
{
dependent
:
"table"
;
label
:
"Task"
;
sysId
:
"9f0b036353233200f5bf435723dc3475"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
deleteMultipleRecords
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Conditions"
;
mandatory
:
true
;
sysId
:
"a34cb0a6c71100105312134c95c260a3"
;
}
,
>
;
dont_fail_flow_on_error
:
Typed
<
boolean
,
{
label
:
"Don't fail on error"
;
sysId
:
"76207652c72a40105312134c95c26083"
;
}
,
>
;
set_workflow
:
Typed
<
boolean
,
{
label
:
"Run Business Rules and Workflow"
;
sysId
:
"156c34a6c71100105312134c95c26068"
;
}
,
>
;
sort_column
:
Typed
<
string
,
{
label
:
"Order by"
;
sysId
:
"79fb8029c7ee00105312134c95c26042"
}
,
>
;
sort_type
:
Typed
<
"sort_asc"
|
"sort_desc"
,
{
choices
:
{
sort_asc
:
{
label
:
"a to z"
}
;
sort_desc
:
{
label
:
"z to a"
}
;
}
;
label
:
"Sort Type"
;
sysId
:
"a85c8429c7ee00105312134c95c26033"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
mandatory
:
true
;
sysId
:
"693c70a6c71100105312134c95c26011"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
count
:
Typed
<
number
,
{
label
:
"Count"
;
sysId
:
"e7db3c66c71100105312134c95c26031"
}
,
>
;
error_message
:
Typed
<
string
,
{
label
:
"Error Message"
;
sysId
:
"60fbbc66c71100105312134c95c26033"
}
,
>
;
status
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Status"
;
sysId
:
"ce41be52c72a40105312134c95c2606b"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
deleteRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"995a2105c723220061f553c6f0976301"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"ab19a9c1c723220061f553c6f0976383"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
false
,
false
,
>
email
:
ActionStepWithMeta
<
FlowIOType
<
{
bcc
:
Typed
<
string
,
{
label
:
"BCC"
;
sysId
:
"e8f043277f0b32005f58108c3ffa91d1"
}
,
>
;
body
:
Typed
<
string
|
number
,
{
column_type
:
"html"
;
label
:
"Body"
;
sysId
:
"8ef44f277f0b32005f58108c3ffa91f7"
;
}
,
>
;
cc
:
Typed
<
string
,
{
label
:
"CC"
;
sysId
:
"33c003277f0b32005f58108c3ffa91e8"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Target Record"
;
sysId
:
"9971a338a70323008299b39f08790195"
;
}
,
>
;
subject
:
Typed
<
string
,
{
label
:
"Subject"
;
mandatory
:
true
;
sysId
:
"4d0183277f0b32005f58108c3ffa9197"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"e1312338a70323008299b39f087901f5"
}
,
>
;
to
:
Typed
<
string
,
{
label
:
"To"
;
mandatory
:
true
;
sysId
:
"40cf3ae37f0b32005f58108c3ffa91f3"
;
}
,
>
;
watermark_email
:
Typed
<
boolean
,
{
label
:
"Include Watermark"
;
sysId
:
"0fba76757303230082999cfd7bf6a7f2"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
email
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email"
;
referenceTable
:
"sys_email"
;
sysId
:
"f4a503677f0b32005f58108c3ffa91cf"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
fireEvent
:
ActionStepWithMeta
<
FlowIOType
<
{
event_name
:
Typed
<
|
string
|
Record
<
"sysevent_register"
>
|
ExplicitKey
<
"sysevent_register"
>
|
TableBrand
<
"sysevent_register"
>
,
{
label
:
"Event"
;
mandatory
:
true
;
referenceTable
:
"sysevent_register"
;
sysId
:
"599cf11aff30311077a95dac793bf1d2"
;
}
,
>
;
parm1
:
Typed
<
string
,
{
label
:
"Parm1"
;
sysId
:
"077ef59aff30311077a95dac793bf1ba"
}
,
>
;
parm2
:
Typed
<
string
,
{
label
:
"Parm2"
;
sysId
:
"17be7d9aff30311077a95dac793bf18f"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table"
;
label
:
"Record"
;
mandatory
:
true
;
sysId
:
"a3ad395aff30311077a95dac793bf12e"
;
}
,
>
;
table
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"020ebd5aff30311077a95dac793bf1ea"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
false
,
false
,
>
getLatestResponseTextFromEmail
:
ActionStepWithMeta
<
FlowIOType
<
{
email_record
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email Record"
;
mandatory
:
true
;
referenceTable
:
"sys_email"
;
sysId
:
"44d757420f13101051218e8ebc767eee"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
latest_response_text
:
Typed
<
string
|
number
,
{
column_type
:
"string_full_utf8"
;
label
:
"Latest Response Text"
;
mandatory
:
true
;
sysId
:
"6f88df420f13101051218e8ebc767e67"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
log
:
ActionStepWithMeta
<
FlowIOType
<
{
log_level
:
Typed
<
"info"
|
"error"
|
"warn"
,
{
choices
:
{
error
:
{
label
:
"error"
;
sequence
:
20
}
;
info
:
{
label
:
"info"
;
sequence
:
40
}
;
warn
:
{
label
:
"warn"
;
sequence
:
30
}
;
}
;
label
:
"Log Level"
;
sysId
:
"ab123adbc712220061f553c6f0976387"
;
}
,
>
;
log_message
:
Typed
<
string
,
{
label
:
"Log Message"
;
sysId
:
"4fc2fadbc712220061f553c6f0976388"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
false
,
false
,
>
lookUpRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Condition"
;
sysId
:
"0cfca6043b23220057a4a2e334efc43b"
}
,
>
;
dont_fail_flow_on_error
:
Typed
<
boolean
,
{
label
:
"Don't fail flow on error"
;
sysId
:
"b019356673110010d70877186bf6a780"
;
}
,
>
;
lookup_table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"f9cc66043b23220057a4a2e334efc42f"
}
,
>
;
multiple_records_found
:
Typed
<
"error"
|
"use_first_record"
,
{
choices
:
{
error
:
{
label
:
"Fail the step"
;
sequence
:
20
}
;
use_first_record
:
{
label
:
"Return only the first record"
;
sequence
:
10
;
}
;
}
;
label
:
"If multiple records are found"
;
sysId
:
"3b9387923b23220057a4a2e334efc4e4"
;
}
,
>
;
sort_column
:
Typed
<
string
,
{
label
:
"Order by"
;
sysId
:
"a6da115587003300663ca1bb36cb0bc0"
}
,
>
;
sort_type
:
Typed
<
"sort_asc"
|
"sort_desc"
,
{
choices
:
{
sort_asc
:
{
label
:
"a to z"
;
sequence
:
100
}
;
sort_desc
:
{
label
:
"z to a"
;
sequence
:
200
}
;
}
;
label
:
"Sort Type"
;
sysId
:
"c62b915587003300663ca1bb36cb0bd2"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
error_message
:
Typed
<
string
,
{
label
:
"Error Message"
;
sysId
:
"145a3da673110010d70877186bf6a7a5"
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"d3e627913b23220057a4a2e334efc45e"
;
}
,
>
;
status
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Status"
;
sysId
:
"14bd89c673310010d70877186bf6a7be"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"a64d6a043b23220057a4a2e334efc4e8"
}
,
>
;
}
,
>
,
false
,
false
,
>
lookUpRecords
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Conditions"
;
sysId
:
"95f8bb21c36a32002841b63b12d3ae0c"
}
,
>
;
limit
:
Typed
<
number
,
{
label
:
"Max Results"
;
sysId
:
"0677f8e053200300f5bf435723dc34e3"
}
,
>
;
sort_column
:
Typed
<
string
,
{
label
:
"Order by"
;
sysId
:
"2df79dd187003300663ca1bb36cb0b33"
}
,
>
;
sort_type
:
Typed
<
"sort_asc"
|
"sort_desc"
,
{
choices
:
{
sort_asc
:
{
label
:
"a to z"
;
sequence
:
100
}
;
sort_desc
:
{
label
:
"z to a"
;
sequence
:
200
}
;
}
;
label
:
"Sort Type"
;
sysId
:
"6a88151587003300663ca1bb36cb0b14"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"4d19bb21c36a32002841b63b12d3aeef"
}
,
>
;
}
,
>
,
FlowIOType
<
{
count
:
Typed
<
number
,
{
label
:
"Count"
;
sysId
:
"f6700274c32b32002841b63b12d3ae37"
}
,
>
;
records
:
Typed
<
string
|
number
,
{
column_type
:
"records"
;
label
:
"Records"
;
sysId
:
"5db8f721c36a32002841b63b12d3aeb7"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table Name"
;
sysId
:
"c576f2a2c32232002841b63b12d3ae66"
}
,
>
;
}
,
>
,
false
,
false
,
>
notification
:
ActionStepWithMeta
<
FlowIOType
<
{
notification
:
Typed
<
|
string
|
Record
<
"sysevent_email_action"
>
|
ExplicitKey
<
"sysevent_email_action"
>
|
TableBrand
<
"sysevent_email_action"
>
,
{
label
:
"Notification"
;
mandatory
:
true
;
referenceTable
:
"sysevent_email_action"
;
sysId
:
"cc7fb8b17f0332004d145212bdfa91da"
;
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"4d1cbc717f0332004d145212bdfa91b8"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"b8a793697f2a32005f58108c3ffa910b"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
false
,
false
,
>
script
:
ActionStepWithMeta
<
FlowIOType
<
{
application
:
Typed
<
|
string
|
Record
<
"ecc_agent_application"
>
|
ExplicitKey
<
"ecc_agent_application"
>
|
TableBrand
<
"ecc_agent_application"
>
,
{
label
:
"MID Application"
;
referenceTable
:
"ecc_agent_application"
;
sysId
:
"f5e56d79b3101300176b051a16a8dce4"
;
}
,
>
;
capabilities
:
Typed
<
|
string
|
Record
<
"ecc_agent_capability"
>
|
ExplicitKey
<
"ecc_agent_capability"
>
|
TableBrand
<
"ecc_agent_capability"
>
,
{
label
:
"Capabilities"
;
referenceTable
:
"ecc_agent_capability"
;
sysId
:
"7d36ed79b3101300176b051a16a8dceb"
;
}
,
>
;
connection_alias
:
Typed
<
|
string
|
Record
<
"sys_alias"
>
|
ExplicitKey
<
"sys_alias"
>
|
TableBrand
<
"sys_alias"
>
,
{
label
:
"Connection Alias"
;
referenceTable
:
"sys_alias"
;
sysId
:
"2b2ba571b3101300176b051a16a8dc8f"
;
}
,
>
;
host
:
Typed
<
string
,
{
depends_on
:
readonly
[
"connection_alias"
]
;
label
:
"Host"
;
sysId
:
"28e4e579b3101300176b051a16a8dc0f"
;
}
,
>
;
mid_cluster
:
Typed
<
string
|
Record
,
{
dependent
:
""
;
label
:
"MID Cluster"
;
sysId
:
"0d2db9e653310110d3a8ddeeff7b1208"
;
}
,
>
;
mid_selection
:
Typed
<
"auto_select"
|
"specific_mid_cluster"
|
"specific_mid_server"
,
{
choices
:
{
auto_select
:
{
label
:
"Auto-Select MID Server"
;
sequence
:
1
}
;
specific_mid_cluster
:
{
label
:
"Specific MID Cluster"
;
sequence
:
3
}
;
specific_mid_server
:
{
label
:
"Specific MID Server"
;
sequence
:
2
}
;
}
;
label
:
"MID Selection"
;
sysId
:
"cbd1070373531010791f94596bf6a776"
;
}
,
>
;
mid_selection_type
:
Typed
<
"any"
|
"use_connection_alias"
|
"define_connection_inline"
,
{
choices
:
{
any
:
{
label
:
"Any MID"
;
sequence
:
1
}
;
define_connection_inline
:
{
label
:
"Use Inline Selection"
;
sequence
:
3
;
}
;
use_connection_alias
:
{
label
:
"Use Connection Alias"
;
sequence
:
2
}
;
}
;
label
:
"Select MID Server"
;
sysId
:
"2c226939b3101300176b051a16a8dc83"
;
}
,
>
;
mid_server
:
Typed
<
string
|
Record
,
{
dependent
:
""
;
label
:
"MID Server"
;
sysId
:
"f0d58b8373531010791f94596bf6a7be"
;
}
,
>
;
required_run_time
:
Typed
<
"instance"
|
"vanilla"
|
"mid"
,
{
choices
:
{
instance
:
{
label
:
"Instance"
;
sequence
:
number
}
;
mid
:
{
label
:
"MID"
;
sequence
:
number
}
;
vanilla
:
{
label
:
"Vanilla (Core JavaScript)"
;
sequence
:
number
}
;
}
;
label
:
"Required Runtime"
;
mandatory
:
true
;
sysId
:
"74315b04b3201300176b051a16a8dc2b"
;
}
,
>
;
script
:
Typed
<
string
|
ScriptModule
<
Function
>
,
{
label
:
"Script"
;
sysId
:
"71aa7f6647032200b4fad7527c9a719b"
}
,
>
;
}
,
>
,
FlowIOType
<
{}
>
,
true
,
true
,
>
sms
:
ActionStepWithMeta
<
FlowIOType
<
{
message
:
Typed
<
string
,
{
label
:
"Message"
;
mandatory
:
true
;
sysId
:
"c951b106737c001086592f163cf6a75a"
;
}
,
>
;
recipients
:
Typed
<
string
,
{
label
:
"Recipients"
;
mandatory
:
true
;
sysId
:
"dd317dc2737c001086592f163cf6a7fe"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
email
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email"
;
referenceTable
:
"sys_email"
;
sysId
:
"29817506737c001086592f163cf6a72d"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
updateMultipleRecords
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Conditions"
;
mandatory
:
true
;
sysId
:
"66401866c7dd00105312134c95c2607e"
;
}
,
>
;
dont_fail_flow_on_error
:
Typed
<
boolean
,
{
label
:
"Don't fail on error"
;
sysId
:
"e2214bd6c72a40105312134c95c2600c"
;
}
,
>
;
field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"table_name"
;
label
:
"Field Values"
;
mandatory
:
true
;
sysId
:
"a5505866c7dd00105312134c95c26065"
;
}
,
>
;
set_autosysfields
:
Typed
<
boolean
,
{
label
:
"Update System Fields"
;
sysId
:
"0f7194a6c7dd00105312134c95c26028"
;
}
,
>
;
set_workflow
:
Typed
<
boolean
,
{
label
:
"Run Business Rules and Workflow"
;
sysId
:
"8a6154a6c7dd00105312134c95c26019"
;
}
,
>
;
sort_column
:
Typed
<
string
,
{
label
:
"Order by"
;
sysId
:
"168d8069c7ee00105312134c95c260a7"
}
,
>
;
sort_type
:
Typed
<
"sort_asc"
|
"sort_desc"
,
{
choices
:
{
sort_asc
:
{
label
:
"a to z"
}
;
sort_desc
:
{
label
:
"z to a"
}
;
}
;
label
:
"Sort Type"
;
sysId
:
"71ad0469c7ee00105312134c95c26027"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
mandatory
:
true
;
sysId
:
"c530d466c7dd00105312134c95c26066"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
count
:
Typed
<
number
,
{
label
:
"Count"
;
sysId
:
"a4101466c7dd00105312134c95c260a8"
}
,
>
;
error_message
:
Typed
<
string
,
{
label
:
"Error Message"
;
sysId
:
"10209466c7dd00105312134c95c26031"
}
,
>
;
status
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"Status"
;
sysId
:
"4f814fd6c72a40105312134c95c26001"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
updateRecord
:
ActionStepWithMeta
<
FlowIOType
<
{
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
mandatory
:
true
;
sysId
:
"aab0ddb267003200553fafb49585ef30"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
mandatory
:
true
;
sysId
:
"3930d57267003200553fafb49585efc5"
;
}
,
>
;
update_record_field_values
:
Typed
<
string
|
TemplateValueElement
<
keyof
Tables
>
,
{
dependent
:
"table_name"
;
label
:
"Field Values"
;
sysId
:
"fcbf6c3667003200553fafb49585ef2e"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
sysId
:
"ffd3197267003200553fafb49585ef5a"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"2fb3d57267003200553fafb49585ef43"
}
,
>
;
}
,
>
,
false
,
false
,
>
waitForCondition
:
ActionStepWithMeta
<
FlowIOType
<
{
conditions
:
Typed
<
string
,
{
label
:
"Conditions"
;
mandatory
:
true
;
sysId
:
"7de2fcca0b18030085c083eb37673aed"
;
}
,
>
;
record
:
Typed
<
string
|
Record
,
{
dependent
:
"table_name"
;
label
:
"Record"
;
mandatory
:
true
;
sysId
:
"c5d2fcca0b18030085c083eb37673a1c"
;
}
,
>
;
table_name
:
Typed
<
keyof
Tables
,
{
label
:
"Table"
;
sysId
:
"72b2bcca0b18030085c083eb37673a0b"
}
,
>
;
timeout_duration
:
Typed
<
string
|
Duration
,
{
label
:
"Duration"
;
sysId
:
"1fac6063876100102fa5a1bb36cb0bac"
}
,
>
;
timeout_flag
:
Typed
<
boolean
,
{
label
:
"Enable timeout"
;
sysId
:
"bc93428187120010663ca1bb36cb0b83"
}
,
>
;
timeout_schedule
:
Typed
<
|
string
|
Record
<
"cmn_schedule"
>
|
ExplicitKey
<
"cmn_schedule"
>
|
TableBrand
<
"cmn_schedule"
>
,
{
label
:
"Schedule"
;
referenceTable
:
"cmn_schedule"
;
sysId
:
"ae1d6463876100102fa5a1bb36cb0b56"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
state
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"State"
;
sysId
:
"1fbdac63876100102fa5a1bb36cb0ba2"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
waitForEmailReply
:
ActionStepWithMeta
<
FlowIOType
<
{
enable_timeout
:
Typed
<
boolean
,
{
label
:
"Enable Timeout"
;
sysId
:
"b3285f757f0f12108e688c90ac866575"
}
,
>
;
record
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email Record"
;
mandatory
:
true
;
referenceTable
:
"sys_email"
;
sysId
:
"391597b17f0f12108e688c90ac866571"
;
}
,
>
;
timeout_duration
:
Typed
<
string
|
Duration
,
{
label
:
"Duration"
;
sysId
:
"3e78d3b57f0f12108e688c90ac86653b"
}
,
>
;
timeout_schedule
:
Typed
<
|
string
|
Record
<
"cmn_schedule"
>
|
ExplicitKey
<
"cmn_schedule"
>
|
TableBrand
<
"cmn_schedule"
>
,
{
label
:
"Schedule"
;
referenceTable
:
"cmn_schedule"
;
sysId
:
"b7a8d7b57f0f12108e688c90ac86659f"
;
}
,
>
;
}
,
>
,
FlowIOType
<
{
email_reply
:
Typed
<
|
string
|
Record
<
"sys_email"
>
|
ExplicitKey
<
"sys_email"
>
|
TableBrand
<
"sys_email"
>
,
{
label
:
"Email Reply"
;
referenceTable
:
"sys_email"
;
sysId
:
"10991bf57f0f12108e688c90ac866577"
;
}
,
>
;
state
:
Typed
<
never
,
{
choices
:
{}
;
label
:
"State"
;
sysId
:
"752ad3397f0f12108e688c90ac866579"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
waitForMessage
:
ActionStepWithMeta
<
FlowIOType
<
{
enable_timeout
:
Typed
<
boolean
,
{
label
:
"Enable Timeout"
;
sysId
:
"d728c634931012105cd18166448918b0"
}
,
>
;
message
:
Typed
<
string
|
number
,
{
column_type
:
"string_full_utf8"
;
label
:
"Message"
;
mandatory
:
true
;
sysId
:
"83e74ef0931012105cd181664489182b"
;
}
,
>
;
timeout_duration
:
Typed
<
string
|
Duration
,
{
label
:
"Timeout Duration"
;
sysId
:
"15a942b4931012105cd18166448918bc"
}
,
>
;
}
,
>
,
FlowIOType
<
{
payload
:
Typed
<
string
|
number
,
{
column_type
:
"string_full_utf8"
;
label
:
"Payload"
;
sysId
:
"640b4ef4931012105cd181664489180b"
;
}
,
>
;
}
,
>
,
false
,
false
,
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@servicenow/sdk - v4.7.0
Loading...
Export all steps as a grouped object for convenient importing under action_step object