---
schema_version: "1"
id: 1d33901aed7ac9297473fa10e603913c8452bb7216dc8667f9a8a29d9cec85f5
title: FunctionReference
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_functionreference.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_functionreference.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: bb72314ef96a5775496d2c5c914e1c67ddbeba3d6bab00b1104a31af08a19400
description: Represents a deployed Salesforce Function associated with an org. This object is available in API version 52.0 and later.
---
# FunctionReference

Represents a deployed Salesforce Function associated with an org. This object is available in API version 52.0 and later.

## Supported Calls

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

## Fields

| Field | Details |
| --- | --- |
| Access | 
Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update

Description

The label for whether managed components can access across namespaces.

Possible values are:

- Global—The managed components can access across namespaces.
- Public—The managed components can access within the same namespace.

The default value is Public.



 |
| Description | 

Type

textarea

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The description of the Function.



 |
| FunctionName | 

Type

string

Properties

Create, Filter, Group, idLookup, Sort, Update

Description

The developer name of the Function. This name is case sensitive and uses the format “project name\-function name”. This field is unique within your organization.



 |
| ImageReference | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Stores details about an image associated with a function. This is internal only, used by packaging only, and should not be editable or set by the customer.



 |
| Language | 

Type

picklist

Properties

Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description

The language code for the Function, such as “en\_US”.



 |
| MasterLabel | 

Type

string

Properties

Create, Filter, Group, Sort, Update

Description

The master label for the Function.



 |
| NamespacePrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The namespace prefix that is associated with this object. This object is available in API version 53.0 and later. Each Developer Edition org that creates a managed package has a unique namespace prefix. Limit: 15 characters. You can refer to a component in a managed package by using the namespacePrefix\_\_componentName notation.

The namespace prefix can have one of the following values.

- In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the org for all objects that support it, unless an object is in an installed managed package. In that case, the object has the namespace prefix of the installed managed package. This field’s value is the namespace prefix of the Developer Edition org of the package developer.
- In orgs that are not Developer Edition orgs, NamespacePrefix is set only for objects that are part of an installed managed package. All other objects have no namespace prefix.





 |

## Usage

Treat FunctionReference records as read-only records used to get information about a specific Function associated with your org. To invoke Functions, use the Apex functions.Function class invoke methods. To deploy and associate Functions with your org, use Salesforce CLI commands associated with Functions, as described in the [Salesforce Functions developer documentation](https://developer.salesforce.com/docs/platform/functions/guide/index.html).

FunctionReference is not supported in Trialforce templates or org snapshots.