sf-fx-runtime-nodejs / Exports

Exports

Record

Ƭ Record: object

Record items from a query or queryMore request

property type The Salesforce Object type

property fields A JavaScript object with all fields from the returned records. Each key in field is case insensitive, so the getters and setters for each key/value pair will ignore casing when getting and setting fields.

Type declaration

NameType
fieldsobject
typestring

RecordForCreate

Ƭ RecordForCreate: object

Creates a single record for create or registers a record creation for the UnitOfWork and returns a ReferenceId.

property type The Salesforce Object type

property fields A JavaScript Object for the fields that the record will be created with. The keys in the object are case insensitive.

Type declaration

NameType
fieldsobject
typestring

RecordForUpdate

Ƭ RecordForUpdate: object

Creates a single record for update or registers a record update for the UnitOfWork and returns a ReferenceId.

property type The Salesforce Object type

property fields A JavaScript Object for the fields that the record will be updated with. The keys in the object are case sensitive and must be lowercase.

Type declaration

NameType
fieldsobject
fields.idstring
typestring

ReferenceId

Ƭ ReferenceId: string

References a record that will be created, deleted, or modified in the future.


SalesforceFunction

Ƭ SalesforceFunction<A, B>: (event: InvocationEvent<A>, context: Context, logger: Logger) => Promise<B> | B

Main interface for Salesforce Functions.

Type parameters

Name
A
B

Type declaration

▸ (event: InvocationEvent<A>, context: Context, logger: Logger): Promise<B> | B

Parameters

NameType
eventInvocationEvent<A>
contextContext
loggerLogger

Returns: Promise<B> | B