Functions Namespace
The Functions namespace provides classes and methods used to invoke and manage Salesforce Functions.
Salesforce Functions is your code, run on demand, in the Salesforce Functions trusted elastic compute cloud. Upload your complex business logic code, written using your preferred languages and frameworks, and Salesforce Functions takes care of everything else necessary to invoke your code in a secure, multi-tenant aware, and self-scaling environment. For more details on Salesforce Functions, see Salesforce Functions.
The following are the classes in the functions namespace.
-
Use the Function class to access deployed Salesforce Functions, and invoke them synchronously or asynchronously.
-
Represents the callback Salesforce calls when an asynchronous, queued Function invocation has completed.
-
Represents the error type of FunctionInvocationError.
-
Use FunctionInvocation to get the status and results of a synchronous or asynchronous Function invocation.
-
FunctionInvocationError Interface
Use FunctionInvocationError to get detailed error information about a failed Function invocation.
-
Represents the status of a Function invocation.
-
Use the
FunctionInvokeMockinterface to mock Salesforce Functions responses during testing. -
MockFunctionInvocationFactory Class
Use the
MockFunctionInvocationFactorymethods to generate appropriate mock responses for testing Salesforce Functions.