@servicenow/sdk - v4.13.3
Preparing search index...
@servicenow/sdk/core
sys_relationship
Variable sys_relationship
Const
sys_relationship
:
{
allowWebServiceAccess
:
true
;
attributes
:
{
update_synch
:
true
}
;
extends
:
"sys_metadata"
;
label
:
"Relationship"
;
name
:
"sys_relationship"
;
schema
:
{
advanced
:
Typed
<
boolean
,
{
default
:
false
;
label
:
"Advanced"
}
>
;
apply_to
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
label
:
[
{
hint
:
"Return true if this list applies to provided table"
;
label
:
"Apply to"
;
plural
:
"Apply to"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
basic_apply_to
:
Typed
<
keyof
Tables
,
{
attributes
:
{
allow_public
:
true
}
;
label
:
"Applies to table"
}
,
>
;
basic_query_from
:
Typed
<
keyof
Tables
,
{
attributes
:
{
allow_public
:
true
}
;
label
:
"Queries from table"
}
,
>
;
insert_callback
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
label
:
[
{
hint
:
"After an insert made through this relationship, run this script"
;
label
:
"Insert callback"
;
plural
:
"Insert callbacks"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
name
:
Typed
<
string
,
{
attributes
:
{
serializer
:
"com.glide.script.TranslatedTextXMLSerializer"
;
}
;
label
:
"Name"
;
}
,
>
;
query_from
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
label
:
[
{
hint
:
"Set answer to tablename to query from"
;
label
:
"Query from"
;
plural
:
"Query froms"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
query_with
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
default
:
"(function refineQuery(current, parent) {\n\n\t// Add your code here, such as current.addQuery(field, value);\n\n})(current, parent);"
;
label
:
[
{
hint
:
"Add conditions to current"
;
label
:
"Query with"
;
plural
:
"Query with"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
reference_field
:
Typed
<
string
,
{
attributes
:
{
types
:
"reference"
}
;
dependent
:
"basic_query_from"
;
label
:
"Reference field"
;
}
,
>
;
related_list
:
Typed
<
string
,
{
attributes
:
{
edge_encryption_enabled
:
true
}
;
label
:
"Related list"
;
maxLength
:
32
;
readOnly
:
true
;
readOnlyOption
:
"strict_read_only"
;
}
,
>
;
simple_reference
:
Typed
<
boolean
,
{
label
:
"Simple reference"
}
>
;
sys_id
:
Typed
<
string
|
number
,
{
active
:
true
;
column_type
:
"GUID"
;
label
:
"Sys ID"
;
mandatory
:
false
;
read_only
:
false
;
}
,
>
;
}
;
textIndex
:
true
;
}
= ...
Type Declaration
Readonly
allowWebServiceAccess
:
true
Readonly
attributes
:
{
update_synch
:
true
}
Readonly
extends
:
"sys_metadata"
Readonly
label
:
"Relationship"
Readonly
name
:
"sys_relationship"
Readonly
schema
:
{
advanced
:
Typed
<
boolean
,
{
default
:
false
;
label
:
"Advanced"
}
>
;
apply_to
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
label
:
[
{
hint
:
"Return true if this list applies to provided table"
;
label
:
"Apply to"
;
plural
:
"Apply to"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
basic_apply_to
:
Typed
<
keyof
Tables
,
{
attributes
:
{
allow_public
:
true
}
;
label
:
"Applies to table"
}
,
>
;
basic_query_from
:
Typed
<
keyof
Tables
,
{
attributes
:
{
allow_public
:
true
}
;
label
:
"Queries from table"
}
,
>
;
insert_callback
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
label
:
[
{
hint
:
"After an insert made through this relationship, run this script"
;
label
:
"Insert callback"
;
plural
:
"Insert callbacks"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
name
:
Typed
<
string
,
{
attributes
:
{
serializer
:
"com.glide.script.TranslatedTextXMLSerializer"
;
}
;
label
:
"Name"
;
}
,
>
;
query_from
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
label
:
[
{
hint
:
"Set answer to tablename to query from"
;
label
:
"Query from"
;
plural
:
"Query froms"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
query_with
:
Typed
<
string
|
number
,
{
columnType
:
"script_plain"
;
default
:
"(function refineQuery(current, parent) {\n\n\t// Add your code here, such as current.addQuery(field, value);\n\n})(current, parent);"
;
label
:
[
{
hint
:
"Add conditions to current"
;
label
:
"Query with"
;
plural
:
"Query with"
;
}
,
]
;
maxLength
:
4000
;
}
,
>
;
reference_field
:
Typed
<
string
,
{
attributes
:
{
types
:
"reference"
}
;
dependent
:
"basic_query_from"
;
label
:
"Reference field"
;
}
,
>
;
related_list
:
Typed
<
string
,
{
attributes
:
{
edge_encryption_enabled
:
true
}
;
label
:
"Related list"
;
maxLength
:
32
;
readOnly
:
true
;
readOnlyOption
:
"strict_read_only"
;
}
,
>
;
simple_reference
:
Typed
<
boolean
,
{
label
:
"Simple reference"
}
>
;
sys_id
:
Typed
<
string
|
number
,
{
active
:
true
;
column_type
:
"GUID"
;
label
:
"Sys ID"
;
mandatory
:
false
;
read_only
:
false
;
}
,
>
;
}
Readonly
textIndex
:
true
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@servicenow/sdk - v4.13.3
Loading...