mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Add additional parameters to Pipedrive getAll for Notes (#1027)
* Add additional parameters to Pipedrive notes getAll * use existing addAdditionalFields for merging additional fields into the query string
This commit is contained in:
@@ -1420,6 +1420,7 @@ export class Pipedrive implements INodeType {
|
|||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: [
|
||||||
'create',
|
'create',
|
||||||
|
'getAll'
|
||||||
],
|
],
|
||||||
resource: [
|
resource: [
|
||||||
'note',
|
'note',
|
||||||
@@ -2516,13 +2517,14 @@ export class Pipedrive implements INodeType {
|
|||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
||||||
requestMethod = 'GET';
|
requestMethod = 'GET';
|
||||||
|
endpoint = `/notes`;
|
||||||
|
|
||||||
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||||
if (returnAll === false) {
|
if (returnAll === false) {
|
||||||
qs.limit = this.getNodeParameter('limit', i) as number;
|
qs.limit = this.getNodeParameter('limit', i) as number;
|
||||||
}
|
}
|
||||||
|
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||||
endpoint = `/notes`;
|
addAdditionalFields(qs, additionalFields);
|
||||||
|
|
||||||
} else if (operation === 'update') {
|
} else if (operation === 'update') {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user