@servicenow/sdk - v4.4.1
Preparing search index...
@servicenow/sdk/core
sys_script_email
Variable sys_script_email
Const
sys_script_email
:
{
allowWebServiceAccess
:
true
;
extends
:
"sys_metadata"
;
label
:
"Email Script"
;
name
:
"sys_script_email"
;
schema
:
{
name
:
Typed
<
string
,
{
label
:
[
{
hint
:
"Name of script"
;
label
:
"Name"
;
language
:
"en"
;
plural
:
"Names"
;
}
,
]
;
maxLength
:
100
;
unique
:
true
;
}
,
>
;
new_lines_to_html
:
Typed
<
boolean
,
{
default
:
false
;
label
:
[
{
hint
:
"For backwards-compatibility with older scripts, automatically convert newlines such as template.print(\"\n\") into HTML by wrapping lines with \"<div>...</div>\""
;
label
:
"Newlines to HTML"
;
language
:
"en"
;
plural
:
"Newlines to HTMLs"
;
}
,
]
;
}
,
>
;
script
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
default
:
"(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,\n /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,\n /* Optional GlideRecord */ event) {\n\n // Add your code here\n\n})(current, template, email, email_action, event);"
;
label
:
[
{
hint
:
"Script contents"
;
label
:
"Script"
;
language
:
"en"
;
plural
:
"Scripts"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
sys_id
:
Typed
<
string
|
number
,
{
columnType
:
"GUID"
;
label
:
"Sys ID"
;
maxLength
:
32
;
primary
:
true
}
,
>
;
}
;
textIndex
:
true
;
}
= ...
Type Declaration
Readonly
allowWebServiceAccess
:
true
Readonly
extends
:
"sys_metadata"
Readonly
label
:
"Email Script"
Readonly
name
:
"sys_script_email"
Readonly
schema
:
{
name
:
Typed
<
string
,
{
label
:
[
{
hint
:
"Name of script"
;
label
:
"Name"
;
language
:
"en"
;
plural
:
"Names"
;
}
,
]
;
maxLength
:
100
;
unique
:
true
;
}
,
>
;
new_lines_to_html
:
Typed
<
boolean
,
{
default
:
false
;
label
:
[
{
hint
:
"For backwards-compatibility with older scripts, automatically convert newlines such as template.print(\"\n\") into HTML by wrapping lines with \"<div>...</div>\""
;
label
:
"Newlines to HTML"
;
language
:
"en"
;
plural
:
"Newlines to HTMLs"
;
}
,
]
;
}
,
>
;
script
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
default
:
"(function runMailScript(/* GlideRecord */ current, /* TemplatePrinter */ template,\n /* Optional EmailOutbound */ email, /* Optional GlideRecord */ email_action,\n /* Optional GlideRecord */ event) {\n\n // Add your code here\n\n})(current, template, email, email_action, event);"
;
label
:
[
{
hint
:
"Script contents"
;
label
:
"Script"
;
language
:
"en"
;
plural
:
"Scripts"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
sys_id
:
Typed
<
string
|
number
,
{
columnType
:
"GUID"
;
label
:
"Sys ID"
;
maxLength
:
32
;
primary
:
true
}
,
>
;
}
Readonly
textIndex
:
true
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@servicenow/sdk - v4.4.1
Loading...