Interface Context


public interface Context

Represents the connection to the the execution environment and the Salesforce instance that the function is associated with.

Method Summary 

Modifier and TypeMethodDescription
java.lang.StringgetId()Returns the unique identifier for a given execution of a function.
java.util.Optional<Org>getOrg()Returns information about the invoking Salesforce organization and user.

Method Details 

getId 

@Nonnull java.lang.String getId()

Returns the unique identifier for a given execution of a function.

Returns: The unique identifier for a given execution of a function.

getOrg 

@Nonnull java.util.Optional<Org> getOrg()

Returns information about the invoking Salesforce organization and user.

Returns: Information about the invoking Salesforce organization and 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.