diff --git a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts index 175d628760..c0956012d1 100644 --- a/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts +++ b/packages/nodes-base/nodes/Pipedrive/Pipedrive.node.ts @@ -3928,10 +3928,11 @@ export class Pipedrive implements INodeType { return sortOptionParameters(returnData); }, - // Get all Organizations to display them to user so that he can + // Get all Users to display them to user so that he can // select them easily async getUserIds(this: ILoadOptionsFunctions): Promise { const returnData: INodePropertyOptions[] = []; + const resource = this.getCurrentNodeParameter('resource'); const { data } = await pipedriveApiRequest.call(this, 'GET', '/users', {}); for (const user of data) { if (user.active_flag === true) { @@ -3942,6 +3943,13 @@ export class Pipedrive implements INodeType { } } + if(resource === 'activity'){ + returnData.push({ + name: 'All Users', + value: 0, + }); + } + return sortOptionParameters(returnData); }, // Get all Deals to display them to user so that he can