# SObject

## SOBJECTTYPE

Returns API name of an object

{% tabs %}
{% tab title="Usage" %}
`SOBJECTTYPE(id)`

Replace `id` with the id of an object.
{% endtab %}

{% tab title="Example" %}
`SOBJECT({Stub.Id})` will return '**Stub\_\_c**'
{% endtab %}
{% endtabs %}

## SOBJECTDESCRIBE

Retrieves metadata for an object. Returns object (JSON).

{% tabs %}
{% tab title="Usage" %}
`SOBJECTDESCRIBE(object_api_name)`&#x20;

Replace `object_api_name` with the API name of an object.
{% endtab %}

{% tab title="Example" %}
`JGET(SOBJECTDESCRIBE('Account'), 'LabelPlural')`  will return '**Accounts**'
{% endtab %}
{% endtabs %}

## SOBJECTFIELDDESCRIBE

Retrieves metadata for an object field. Returns object (JSON)

{% tabs %}
{% tab title="Usage" %}
`SOBJECTFIELD(object_api_name, field_api_name)`

Replace `object_api_name` with the API name of an object and `field_api_name` with an API name of a field to retrieve metadata for.
{% endtab %}

{% tab title="Example" %}
`JGET(SOBJECTFIELDDESCRIBE('Stub__c', 'Check__c'), 'Type')`  will return '**BOOLEAN**' which is type of a Check\_\_c field.
{% endtab %}
{% endtabs %}
