OBJECT_NAME
Description
Returns the object API name for the given record ID in the current org.
Syntax
OBJECT_NAME(id_value) -> String
Parameters
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| id_value | ID | Yes | The record ID to get the object API name for. |
Examples
OBJECT_NAME("001XXXXXXXXXXXXXXX")
-- Returns "Account".OBJECT_NAME(WhatId)
-- Returns the object API name of the related record.