mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
Add additional parameters to Pipedrive notes getAll
This commit is contained in:
parent
1125cf892b
commit
6f229f1f47
|
@ -1420,6 +1420,7 @@ export class Pipedrive implements INodeType {
|
||||||
show: {
|
show: {
|
||||||
operation: [
|
operation: [
|
||||||
'create',
|
'create',
|
||||||
|
'getAll'
|
||||||
],
|
],
|
||||||
resource: [
|
resource: [
|
||||||
'note',
|
'note',
|
||||||
|
@ -2516,13 +2517,25 @@ 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`;
|
if (additionalFields.deal_id) {
|
||||||
|
qs.deal_id = parseInt(additionalFields.deal_id as string, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.org_id) {
|
||||||
|
qs.org_id = parseInt(additionalFields.org_id as string, 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (additionalFields.person_id) {
|
||||||
|
qs.person_id = parseInt(additionalFields.person_id as string, 10);
|
||||||
|
}
|
||||||
|
|
||||||
} else if (operation === 'update') {
|
} else if (operation === 'update') {
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
|
Loading…
Reference in a new issue