Interface Org


public interface Org

Holds information about the invoking Salesforce organization and user.

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.

@Nonnull java.lang.String getId()

Returns the Salesforce organization ID.

Returns: The Salesforce organization ID.

@Nonnull java.net.URI getBaseUrl()

Returns the base URL of the Salesforce organization.

Returns: The base URL of the Salesforce organization.

@Nonnull java.net.URI getDomainUrl()

Returns the domain URL of the Salesforce organization.

Returns: The domain URL of the Salesforce organization.

@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.

@Nonnull DataApi getDataApi()

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

Returns: An initialized data API client instance.

@Nonnull User getUser()

Returns the currently logged in user.

Returns: The currently logged in user.