@flxbl-io/sfp
Version:
sfp is a CLI tool to help you manage your Salesforce projects in an artifact centric model
8 lines (7 loc) • 455 B
TypeScript
/**
* Split values in SOQL WHERE clause into chunks to avoid exceeding max. URI length (16,000 chars) or max. WHERE clause length (4000 chars)
* @param collection values in SOQL WHERE clause
* @param chunkSize default is 4000
* @param offset offset to account for keywords, fields, operators and literals in the query. Default is 1000
*/
export default function chunkCollection(collection: string[], chunkSize?: number, offset?: number): string[][];