buildLink()

Overview

public string function buildLink(
      required string objectName
    ,          string operation  = ""
    ,          string recordId   = ""
    ,          struct args      
)

Returns the link to the given object, operation and optional recordId (required for most operations)

Arguments

NameTypeRequiredDescription
objectNamestringYesName of the object
operationstringNo (default="")Operation to link to, e.g. listing, add, view, edit, editAction, etc.
recordIdstringNo (default="")ID of the record to link to. Required for record based operations
argsstructNoAny additional args to send to the link builder