mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
Salesforce Custom Object Get All : Fix TypeError: options.fields.split is not a function
This commit is contained in:
@@ -163,7 +163,7 @@ export function getDefaultFields(sobject: string) {
|
|||||||
export function getQuery(options: IDataObject, sobject: string, returnAll: boolean, limit = 0) {
|
export function getQuery(options: IDataObject, sobject: string, returnAll: boolean, limit = 0) {
|
||||||
const fields: string[] = [];
|
const fields: string[] = [];
|
||||||
if (options.fields) {
|
if (options.fields) {
|
||||||
fields.push.apply(fields, (options.fields as string).split(','));
|
fields.push.apply(fields, options.fields.toString().split(','));
|
||||||
} else {
|
} else {
|
||||||
fields.push.apply(fields, (getDefaultFields(sobject) as string || 'id').split(','));
|
fields.push.apply(fields, (getDefaultFields(sobject) as string || 'id').split(','));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user