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
| Name | Type | Required | Description | 
|---|
| objectName | string | Yes |  | 
| recordId | any | Yes |  |