WebLink.url Method [AX 2012]

Creates a URL based on the specified Web and client menu items.

public str url([boolean encodeUrl, boolean _useExternalUrl])

Run On

Called

Parameters

encodeUrl
Type: boolean
A Boolean value that indicates whether the link is HTML encoded; optional.
_useExternalUrl
Type: boolean
A Boolean value that indicates whether the URL should be external.

Return Value

Type: str
A String that represents the hypertext reference piece of an HTML link.

ExceptionCondition
Error

The Web session could not be found or the Web command that was provided is invalid.

Only external URL is guaranteed to be of the absolute kind; otherwise, the URL could be of the relative kind.

Community Additions

ADD
Show: