DocumentFileHelper::checkUrl Method [AX 2012]
Checks whether a URL is valid
Syntax
client server public static boolean checkUrl(FilePath _filePath)
Run On
Called
Parameters
- _filePath
Type: FilePath Extended Data Type
The URL to be checked.
Return Value
Type: boolean
true if a URL is valid; otherwise, false.
Remarks
A valid URL either starts with http(s):// or is a valid file path with a valid file name extension. The valid file path can only begin with ftp:// or is a valid URI file path.