Skip to content

Commit ce38964

Browse files
authored
Pipedrive - add note prop to update-deal (#16902)
* add note prop to update-deal * pnpm-lock.yaml
1 parent 0b96440 commit ce38964

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

components/pipedrive/actions/update-deal/update-deal.mjs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "pipedrive-update-deal",
66
name: "Update Deal",
77
description: "Updates the properties of a deal. See the Pipedrive API docs for Deals [here](https://developers.pipedrive.com/docs/api/v1/Deals#updateDeal)",
8-
version: "0.1.10",
8+
version: "0.1.11",
99
type: "action",
1010
props: {
1111
pipedriveApp,
@@ -91,6 +91,12 @@ export default {
9191
"visibleTo",
9292
],
9393
},
94+
note: {
95+
type: "string",
96+
label: "Note",
97+
description: "A note to add to the deal",
98+
optional: true,
99+
},
94100
},
95101
async run({ $ }) {
96102
try {
@@ -110,6 +116,13 @@ export default {
110116
visible_to: this.visibleTo,
111117
});
112118

119+
if (this.note) {
120+
await this.pipedriveApp.addNote({
121+
content: this.note,
122+
deal_id: this.dealId,
123+
});
124+
}
125+
113126
$.export("$summary", "Successfully updated deal");
114127

115128
return resp;

components/pipedrive/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/pipedrive",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Pipedream Pipedrive Components",
55
"main": "pipedrive.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)