sf-fx-runtime-nodejs / Exports

Exports

Ƭ 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 ignore casing when getting and setting the fields.

property binaryFields An optional JavaScript Object with unencoded binary content buffers to create the record with. Each key in binaryFields is case insensitive, so the getters and setters for each key/value pair ignore casing when getting and setting the fields.

NameType
binaryFields?{ [key: string]: Buffer; }
fieldsobject
typestring

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

property binaryFields An optional JavaScript Object with unencoded binary content buffers to create the record with. Each key in binaryFields is case insensitive, so the getters and setters for each key/value pair ignore casing when getting and setting the fields.

NameType
binaryFields?{ [key: string]: Buffer; }
fieldsobject
typestring

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

property binaryFields An optional JavaScript Object with unencoded binary content buffers to create the record with. Each key in binaryFields is case insensitive, so the getters and setters for each key/value pair ignore casing when getting and setting the fields.

NameType
binaryFields?{ [key: string]: Buffer; }
fieldsobject
fields.idstring
typestring

Ƭ ReferenceId: string

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


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

Main interface for Salesforce Functions.

Name
A
B

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

NameType
eventInvocationEvent<A>
contextContext
loggerLogger

Returns: Promise<B> | B