hasReferences()

Overview

public boolean function hasReferences(
      required string objectName
    , required any    recordId  
)

Returns whether or not the given record has any related records in other tables that reference it.

Arguments

NameTypeRequiredDescription
objectNamestringYes
recordIdanyYes