Skip to main content

Pipedrive Mapping Functions

Reference for the Pipedrive-specific functions you can use in Dynamic Formula mappings and mapping collection filters.

Overview

The Pipedrive integration provides a set of ready-made functions you can call when building mappings. They handle common lookups of the links between your Pipedrive records and your iPaaS.com subscription. For example, they turn a Pipedrive person ID or organization ID into the iPaaS.com customer ID or company ID it is linked to, so you don't have to build that logic yourself.

Where you can use these functions

These functions are available anywhere you write a formula for the Pipedrive integration:

  • Dynamic Formula mappings: where a destination field's value is produced by a formula rather than mapped directly from a source field.

  • Mapping collection filters: where a formula decides whether a record should be processed.

  • Error filters: a mapping collection's error filter, which sits alongside its collection filter. When the error filter's formula resolves to true, the transfer raises an error that is held in the Error Logs for review and is not retried automatically.

  • Translation collections: where a translation entry uses a formula as its source value.

How to use them

  • Call a function by name and pass the values it needs in parentheses, for example: await GetIPaaSCustomerIdAsync(PersonId).

  • Each function's signature shows its name, the parameters it accepts (with their types), and the type of value it returns. Use it as the reference for exactly how to call the function.

  • Function names and formula syntax are case-sensitive, so type each name exactly as shown. Whether the values a function matches are treated as case-sensitive varies by function, and is called out in the relevant parameter's description.

  • Every function that returns a Task is asynchronous and must be called with await, as shown in each How to call it example.

  • Each function runs at sync time, against the data in your connected Pipedrive account and your iPaaS.com subscription.

The functions are grouped below by the area of the integration they support.

Customers and Companies

Use these in mappings TO iPaaS.com when a Pipedrive record refers to a Pipedrive person or organization and the iPaaS.com field needs the iPaaS.com customer or company it is linked to.

GetIPaaSCustomerIdAsync

What it does: Looks up the iPaaS.com customer linked to a Pipedrive person in this subscription and returns the iPaaS.com customer ID. Returns null when the value is blank or not a positive whole number, or the person has not been transferred to iPaaS.com yet.

Signature: Task<string> GetIPaaSCustomerIdAsync(object pipedrivePersonId)

How to call it: await GetIPaaSCustomerIdAsync(pipedrivePersonId)

Parameter

Type

Required

Default

Description

pipedrivePersonId

object

Yes

N/A

The Pipedrive person ID, for example a deal's PersonId. The ID must be a positive whole number; text such as "123" is accepted and surrounding spaces are ignored. A blank or non-numeric value returns null.

Returns: string. The iPaaS.com customer ID linked to the Pipedrive person, or null when the value is blank or not a positive whole number, or the person has not been transferred to iPaaS.com yet.

Example: await GetIPaaSCustomerIdAsync(PersonId) returns the linked iPaaS.com customer ID, for example "7654321".

When to use it: When mapping a Pipedrive deal TO iPaaS.com and you need the iPaaS.com customer ID of the deal's contact person. The default Add/Update Pipedrive Deal TO iPaaS.com collection uses it for the transaction's customer. Each call makes one iPaaS.com lookup. The integration sends a deal's person to iPaaS.com before the deal, so the customer is normally found. In mappings FROM iPaaS.com no function is needed: map the iPaaS.com customer ID to the deal's IPaaSCustomerId field, and the integration uses the Pipedrive person linked to it.

GetIPaaSCompanyIdAsync

What it does: Looks up the iPaaS.com company linked to a Pipedrive organization in this subscription and returns the iPaaS.com company ID. Returns null when the value is blank or not a positive whole number, or the organization has not been transferred to iPaaS.com yet.

Signature: Task<string> GetIPaaSCompanyIdAsync(object pipedriveOrganizationId)

How to call it: await GetIPaaSCompanyIdAsync(pipedriveOrganizationId)

Parameter

Type

Required

Default

Description

pipedriveOrganizationId

object

Yes

N/A

The Pipedrive organization ID, for example a person's organization relationship RelatedCompanyId or a deal's OrganizationId. The ID must be a positive whole number; text such as "45" is accepted and surrounding spaces are ignored. A blank or non-numeric value returns null.

Returns: string. The iPaaS.com company ID linked to the Pipedrive organization, or null when the value is blank or not a positive whole number, or the organization has not been transferred to iPaaS.com yet.

Example: await GetIPaaSCompanyIdAsync(RelatedCompanyId) returns the linked iPaaS.com company ID, for example "1234567".

When to use it: When mapping a Pipedrive person's organization relationship or a Pipedrive deal TO iPaaS.com and you need the iPaaS.com company ID of the organization. The default Pipedrive Person Organization TO iPaaS.com collection uses it for the related company, and Add/Update Pipedrive Deal TO iPaaS.com uses it for the transaction's company. Each call makes one iPaaS.com lookup. The integration sends a person's or deal's organization to iPaaS.com first, so the company is normally found. In mappings FROM iPaaS.com no function is needed: map the iPaaS.com company ID to the deal's IPaaSCompanyId field or to a person organization's RelatedIPaaSCompanyId field, and the integration uses the Pipedrive organization linked to it.

Related Documents

Did this answer your question?