mirror of
https://github.com/n8n-io/n8n.git
synced 2025-02-21 02:56:40 -08:00
⚡ Restore lead:getFields operation
This commit is contained in:
parent
37684500c3
commit
23eb1f8fda
|
@ -835,6 +835,11 @@ export class ZohoCrm implements INodeType {
|
|||
|
||||
responseData = await handleListing.call(this, 'GET', '/leads', {}, qs);
|
||||
|
||||
} else if (operation === 'getFields') {
|
||||
|
||||
responseData = await zohoApiRequest.call(this, 'GET', '/settings/fields', {}, { module: 'leads' });
|
||||
responseData = responseData.fields;
|
||||
|
||||
} else if (operation === 'update') {
|
||||
|
||||
// ----------------------------------------
|
||||
|
|
|
@ -44,6 +44,10 @@ export const leadOperations = [
|
|||
name: 'Get All',
|
||||
value: 'getAll',
|
||||
},
|
||||
{
|
||||
name: 'Get Fields',
|
||||
value: 'getFields',
|
||||
},
|
||||
{
|
||||
name: 'Update',
|
||||
value: 'update',
|
||||
|
|
Loading…
Reference in a new issue