跳至主要内容
Workday User Guide
上次更新时间 :2023-06-23
URL_QUERY

URL_QUERY

描述

URL_QUERY
是一个行函数,用于返回 URL 字符串的查询部分.

语法

URL_QUERY
(
URL_string
)

返回值

以以下格式返回 URL 的查询部分
TEXT
NULL
如果 URL 或不包含查询,或者
NULL
如果输入字符串不是有效的 URL。
例如,在字符串中
http://www.workday.com/contact.html
,则查询部分为
NULL
在字符串中
http://workday.com/news.php?topic=press&timeframe=today#Workday%20News
,则查询部分为
topic=press&timeframe=today
在字符串中
mailto:username@mycompany.com?subject=Topic
,则查询部分为
subject=Topic

输入参数

URL_string
必修内容。返回值的字段或表达式
TEXT
值,采用 URI(统一资源标识符)格式:
protocol
:
authority
[/
path
][?
query
][#
fragment
]
URL 的可选查询部分由问号 (
?
),通常包含一个无序列表
key=value
个对,用“与”符号分隔 (
&
) 或分号 (
;
)。

示例

返回
请求
字段中 URL 字符串值的查询部分:
URL_QUERY([request])
返回文字 URL 字符串的查询部分:
URL_QUERY("http://workday.com/news.php?topic=press&timeframe=today")
退货
topic=press&timeframe=today