Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Syntax
Uri.Parts(absoluteUri as text) as record
About
Returns the parts of the input absoluteUri
as a record, containing values such as Scheme, Host, Port, Path, Query, Fragment, UserName and Password.
Example 1
Find the parts of the absolute URI "www.adventure-works.com".
Usage
Uri.Parts("www.adventure-works.com")
Output
[
Scheme = "http",
Host = "www.adventure-works.com",
Port = 80,
Path = "/",
Query = [],
Fragment = "",
UserName = "",
Password = ""
]
Example 2
Decode a percent-encoded string.
Usage
let
UriUnescapeDataString = (data as text) as text => Uri.Parts("http://contoso?a=" & data)[Query][a]
in
UriUnescapeDataString("%2Bmoney%24")
Output
"+money$"