FlowmageDocs

Add product to deal

BetaChanges dataVersion 3

Puts a product line on a Pipedrive deal with its price and quantity.

Settings

SettingWhat it is
ConnectionRequiredThe Pipedrive connection the step signs in with.
Deal idRequiredtext
Product idRequiredThe List records node, set to Products, gives you the id.
Quantitynumber
Discountnumber
Discount is"percentage" or "amount"
TaxRead the way the company's tax setting says — a percentage or an amount.
Variation idLeave at 0 for the product itself rather than one of its variations.
Commenttext
Price per unitLeave empty to use the product's own price in the deal's currency; 0 adds the line free.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `pipedrive`)
dealIdtextits `{{ }}` must give a string
productIdnumber
quantitynumber, by default 1
discountnumber
discountType"percentage" or "amount", by default "percentage"
taxnumber
productVariationIdnumber, by default 0
commentstext
itemPricenumber

Output

FieldType
productAttachmentIdProduct line idstring
productAttachmentProduct lineobject
Sample output, and the expression for each field
  • productAttachment
    • id1
  • productAttachmentId"1"

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "comments": "",
    "connection": "<connection id>",
    "dealId": "<deal id>",
    "discountType": "percentage",
    "productId": 1,
    "productVariationId": 0,
    "quantity": 1
  },
  "label": "Add product to deal",
  "type": "pipedrive.addProductToDeal",
  "version": 3
}

Older versions

A flow that already has this version keeps running it. A new step always gets the newest.

Version 2
SettingWhat it is
ConnectionRequiredThe Pipedrive connection the step signs in with.
Deal idRequiredtext
Product idRequiredThe List records node, set to Products, gives you the id.
Quantitynumber
Discountnumber
Discount is"percentage" or "amount"
TaxRead the way the company's tax setting says — a percentage or an amount.
Variation idLeave at 0 for the product itself rather than one of its variations.
Commenttext
Price per unitLeave empty to use the product's own price in the deal's currency; 0 adds the line free.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `pipedrive`)
dealIdtextits `{{ }}` must give a string
productIdnumber
quantitynumber, by default 1
discountnumber, by default 0
discountType"percentage" or "amount", by default "percentage"
taxnumber, by default 0
productVariationIdnumber, by default 0
commentstext
itemPricenumber
Version 1
SettingWhat it is
ConnectionRequiredThe Pipedrive connection the step signs in with.
Deal idRequiredtext
Product idRequiredThe List records node, set to Products, gives you the id.
Quantitynumber
Discountnumber
Discount is"percentage" or "amount"
TaxRead the way the company's tax setting says — a percentage or an amount.
Variation idLeave at 0 for the product itself rather than one of its variations.
Commenttext
Price per unitLeave at 0 to use the product's own price in the deal's currency.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `pipedrive`)
dealIdtextits `{{ }}` must give a string
productIdnumber
quantitynumber, by default 1
discountnumber, by default 0
discountType"percentage" or "amount", by default "percentage"
taxnumber, by default 0
productVariationIdnumber, by default 0
commentstext
itemPricenumber, by default 0