Interface Org


public interface Org

Holds information about the invoking Salesforce organization and user.

Method Summary 

Modifier and TypeMethodDescription
java.lang.StringgetApiVersion()Returns the API version the Salesforce organization is currently using.
java.net.URIgetBaseUrl()Returns the base URL of the Salesforce organization.
DataApigetDataApi()Returns an initialized data API client instance to interact with data in the org.
java.net.URIgetDomainUrl()Returns the domain URL of the Salesforce organization.
java.lang.StringgetId()Returns the Salesforce organization ID.
UsergetUser()Returns the currently logged in user.

Method Details 

getId 

@Nonnull java.lang.String getId()

Returns the Salesforce organization ID.

Returns: The Salesforce organization ID.

getBaseUrl 

@Nonnull java.net.URI getBaseUrl()

Returns the base URL of the Salesforce organization.

Returns: The base URL of the Salesforce organization.

getDomainUrl 

@Nonnull java.net.URI getDomainUrl()

Returns the domain URL of the Salesforce organization.

Returns: The domain URL of the Salesforce organization.

getApiVersion 

@Nonnull java.lang.String getApiVersion()

Returns the API version the Salesforce organization is currently using.

Returns: The API version the Salesforce organization is currently using.

getDataApi 

@Nonnull DataApi getDataApi()

Returns an initialized data API client instance to interact with data in the org.

Returns: An initialized data API client instance.

getUser 

@Nonnull User getUser()

Returns the currently logged in user.

Returns: The currently logged in user.

Product Retirement Announcement

Salesforce Functions is no longer available for purchase or renewal. To preserve the capabilities that Salesforce Functions provided to your org, deploy an alternative solution before your existing order term ends. See Salesforce Functions Retirement for more information on migrating your functions. Contact your Salesforce Account Executive for more information on Heroku.