Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(SFT-1421) Pipedrive CRM integration not showing custom fields for mapping #1527

Open
wants to merge 1 commit into
base: v5
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,26 +98,9 @@ public function fetchFields(string $category, Client $client): array

$requiredFields = ['name', 'title'];

$allowedFields = [
'name',
'phone',
'email',
'title',
'value',
'currency',
'stage_id',
'status',
'probability',
'note',
];

$fieldList = [];

foreach ($json->data as $field) {
if (!\in_array($field->key, $allowedFields, true)) {
continue;
}

$type = match ($field->field_type) {
'varchar', 'varchar_auto', 'text', 'date', 'enum', 'time', 'timerange', 'daterange' => FieldObject::TYPE_STRING,
'int', 'double', 'monetary', 'user', 'org', 'people' => FieldObject::TYPE_NUMERIC,
Expand Down
1 change: 1 addition & 0 deletions packages/plugin/src/Integrations/CRM/Pipedrive/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ Maps data to the following field types:
- Click on the **Create an App** button at the top right and choose _Create Private App_.
- In the _Basic Info_ page, enter a unique app name and paste the Freeform OAuth URL in the **Callback URL** field.
- In the _OAuth & Access Scopes_ page, enable the following:
- **Search for all data**
- **Deals**
- **Full Access**
- **Contacts**
Expand Down
Loading