Private
Readonly
connectionPrivate
Readonly
fieldPrivate
Readonly
loggerPrivate
Readonly
nsPrivate
Readonly
schemaDescribes an SObject and all it's fields using the Describe-API; any object not accessible for the current user will be return undefined.
SObject type
Resolve an SObject field based on it's path; returns an array of Field's
SObject type
Resolve an SObject field based on it's path; returns an array of Field's
SObject type
trye to throw an exception when the type is not found otherwise return null;
Private
encodeFilters a list of Salesforce IDs based on the provided filter function.
This method groups IDs by their 3-character prefix, determines the corresponding SObject type for each prefix, and then applies the filter function to each ID based on its SObject type.
A single Salesforce ID or an array of Salesforce IDs to filter
A function that determines whether an ID should be included based on its SObject type
A Promise that resolves to an array of filtered Salesforce IDs
// Filter only Contact IDs
const contactIds = await filterIds(mixedIds, (type) => type.name === 'Contact');
Private
findSObjectPrivate
getRetrieves the API name of the name field for a specific Salesforce object type.
The API name of the Salesforce object type (e.g., 'Account', 'Contact')
A Promise that resolves to the API name of the name field, or undefined if no name field is found
Get the field type of an SObject field in Salesforce
SObject Type
Field Name
Transforms a property like Salesforce field to a valid Salesforce field or field path, for exampled
transforms contract.account.name
-> vlocity__cmt_Contract__c.Account.Name
SOBject type
Full path of properties
Provides access to Database Schema methods like describe.