Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DEV and version next

...

D s
snippetBasic

URL literal examples:

URLPARAMS
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
urlparams('http://example.com?color=blue&shape=square' ) as: 'myURLParams'

...

urlparams('http://example.com?color=blue&shape=square')


Output:
Returns the following Object:

Code Block
{"color": "blue","shape": "square"}

Column reference example:

URLPARAMS
d-codelang-syntax
RawWrangletrue
Typeref
showNotetrue
WrangleTextderive type:single value:
urlparams(myURLs) as: 'myURLParams'

urlparams(myURLs)

Output:

...

 Returns the query parameters extracted from the URLs in the myURLs column. 

D s
snippetSyntax

URLPARAMS
d-codelang-syntax
RawWrangletrue
Typesyntax
showNotetrue
WrangleTextderive type:single value:
urlparams(column_url)

urlparams(column_url)


ArgumentRequired?Data TypeDescription
column_urlYstringName of column or String or URL literal containing the parameters and their values to extract

...