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.
| Name | Type |
|---|---|
binaryFields? | { [key: string]: Buffer; } |
fields | object |
type | string |
Ƭ 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.
| Name | Type |
|---|---|
binaryFields? | { [key: string]: Buffer; } |
fields | object |
type | string |
Ƭ 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.
| Name | Type |
|---|---|
binaryFields? | { [key: string]: Buffer; } |
fields | object |
fields.id | string |
type | string |
Ƭ 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
| Name | Type |
|---|---|
event | InvocationEvent<A> |
context | Context |
logger | Logger |
Returns: Promise<B> | B