Skip to main content

GetWebLink

Description

Get web link for an object.

Syntax

// ICommonFunctions is binded into the MFiles global object
const result = await MFiles.GetWebLink(
objId,
objGUID,
fileGUID,
fileID,
isLatestVersion,
version,
viewInfo,
externalID,
);

Parameters

NameTypeDescription
objIdobjectThe target object to prepare link.
objGUIDstringObject GUID.
fileGUIDstringObject File GUID. - Optional
fileIDstringObject File GUID. - Optional
isLatestVersionbooleanIs the object to be viewed should be of the latest version.
versionnumberIf it is not requested for latest version then specify the version no here.
viewInfoobjectView item's info. - Optional
externalIDstringIf it is not requested for latest version then specify the version no here. - Optional

Return type

TypeDescription
Promise < string >Navigation URL.