# Pipedrive Integration relying on retired endpoint - calls to start failing 12/13/2022

**URL:** <https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285>\
**Category:** Product Support\
**Tags:** mautic-4\
**Created:** [December 2, 2022, 5:09am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285 "2022-12-02T05:09:13Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [December 2, 2022, 5:09am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/1 "2022-12-02T05:09:13Z")

</div>

**Your software**  
My Mautic version is: 4.4.4

**Your problem**  
My problem is: I got this notice from Pipedrive this week.  
 ![Screen Shot 2022-12-01 at 10.56.33 PM](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/6/60a7e7ef61ced0f2bef67b1a05b8c768bd009a64.png)

After searching in the source code, it appears we are, in fact, still using the /persons/find/ api endpoint ([see findByEmail here](https://github.com/mautic/mautic/blob/fe3703be13f26a01251199272ceed5e93128d090/plugins/MauticCrmBundle/Api/PipedriveApi.php))

Is there anyone working on updating the Pipedrive plugin to use the search endpoint instead of the find endpoint? I really don’t like the idea of 10% of my api calls failing in less than 2 weeks.

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [December 13, 2022, 3:21am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/2 "2022-12-13T03:21:56Z")

</div>

For anyone following this topic, Webmecanik is working on an entirely new Pipedrive sync plugin and hopes to have it done and released open source any moment now.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [December 13, 2022, 8:07am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/3 "2022-12-13T08:07:07Z")

</div>

We are standing by and biting our nails from excitement. The deadline is coming closer and closer. Thank you Webmechanic.

---

<div class="post-metadata">

**Author:** ![micheldum](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/micheldum/32/9070_2.png) [@micheldum](https://forum.mautic.org/u/micheldum)\
**Post date:** [January 11, 2023, 10:47am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/4 "2023-01-11T10:47:05Z")

</div>

Any news about the new Pipedrive sync plugin?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 11, 2023, 11:00am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/5 "2023-01-11T11:00:14Z")

</div>

Always good to check on github:

> **[GitHub - Webmecanik/mautic-pipedrive-bundle: Pipedrive integration](https://github.com/Webmecanik/mautic-pipedrive-bundle)**
>
> Pipedrive integration. Contribute to Webmecanik/mautic-pipedrive-bundle development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [February 20, 2023, 5:02am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/6 "2023-02-20T05:02:47Z")

</div>

Does anyone have the Webmecanik plugin working with vanilla Mautic 4? @joeyk do you have it up and running?

I get the following error when trying to run the sync command (`mautic:integrations:sync Pipedrive2`):

```auto
 [ERROR] Call to undefined method Mautic\IntegrationsBundle\Event\SyncEvent::getInputOptionsDAO()

```

I can’t find that function in Mautic source ☹

@kuzmany @npracht Is there any help you can offer? I recall reading about a patch I need to apply.

We need to get up and running on this new plugin as our clients’ Pipedreive and Mautic instances are falling further and further out of sync as requests are failing.

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [February 20, 2023, 5:22am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/7 "2023-02-20T05:22:51Z")

</div>

Quick update - I got the sync to run by applying [PR 11255](https://github.com/mautic/mautic/pull/11255) and then adding the following function (a duplicate of `getInputOptions()`) to `app/bundles/IntegrationsBundle/Event/SyncEvent.php`:

```auto
public function getInputOptionsDAO(): InputOptionsDAO
    {
        return $this->inputOptionsDAO;
    }

```

I have fields syncing, but have not tested activities yet. I’d still appreciate some help pointing me in the right direction of any additional patch that should be correctly applied.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [February 20, 2023, 9:30am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/8 "2023-02-20T09:30:53Z")

</div>

Hey Steve,  
Thank you for sharing this. I’m trying to get my hands durty with Pipedrive. You saved me a ton of time.

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [March 3, 2023, 3:38pm UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/9 "2023-03-03T15:38:02Z")

</div>

One more note: Out of the box, Pipedrive does not have the first and last name fields needed to sync with this plugin and you have to reach out to Pipedrive support to enable them if you have not done so already.

Simply start a support chat and ask, “Could you please enable first and last name default fields?” and they will happily do so.

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [September 15, 2023, 11:58am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/10 "2023-09-15T11:58:21Z")

</div>

@steverobinson are you using this plugin with M4 ?  
I am trying to install it from the repository but it seems to interfere with the MauticCRMBundle and the old namespace for the pipedrive plugin.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [September 18, 2023, 5:11am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/11 "2023-09-18T05:11:43Z")

</div>

Works for me just fine. We use it in production on M4.  
If you use it under M4, make sure you install the 2 cherry picked PRs mentioned in the github repo.

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [September 18, 2023, 11:55am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/12 "2023-09-18T11:55:17Z")

</div>

Same here. We are running this on two production instances with no problems as long as we keep those two PRs in place when we upgrade.

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [September 22, 2023, 2:14pm UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/13 "2023-09-22T14:14:33Z")

</div>

Now I got it. I named the plugin “MauticPipedriveBundle” instead of “PipedriveBundle” after installing. That’s why it didn’t work at the beginnig.  
Now it seems to work just fine 🙂

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [September 26, 2023, 2:48pm UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/14 "2023-09-26T14:48:00Z")

</div>

I just encountered an error with the plugin in 4.4.10:  
When I try to edit a company and click save I get a 500 error.  
ChatGPT told me this:  
The error message you provided indicates that there is an issue in the `CompanyController.php` file of your Mautic application. Specifically, it’s complaining about an undefined method called “getFormButton” in the `CompanyController` class at line 255.

But I can’t find the error regarding the form button inside the CompanyController.php

Did you encounter the same at some point? Or do you have any idea why this happens?

---

<div class="post-metadata">

**Author:** ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)\
**Post date:** [October 2, 2023, 2:42pm UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/15 "2023-10-02T14:42:08Z")

</div>

@steverobinson, @joeyk did you experience any problems with editing companies since using the plugin?  
for me, as soon as I add the cherry picked CompanyController.php I can’t edit campanies anymore.

There is a problem with the getFormButton method. Which seems is not available in Mautic 4.  
How did you solve this? Is there something you changed? Or did you use an older version of the PR’s?

EDIT:

For anybody who gets the same problem with the Pipedrive 2 Plugin on Mautic 4:  
We found that the getFormButton method is not yet available in Mautic 4. So we changed all the lines in the CompanyController.php file which use the new method which looks like this

```auto
$this->getFormButton($form, ['buttons', 'save'])->isClicked()

```

back to the old method like this

```auto
$form->get('buttons')->get('save')->isClicked()

```

We’re testing it right now. If everything works, I can submit the changed files for ease of use if someone needs them.

Cheers guys and thanks for the help 🙂

---

<div class="post-metadata">

**Author:** ![fabioedu](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/fabioedu/32/2156_2.png) [@fabioedu](https://forum.mautic.org/u/fabioedu)\
**Post date:** [August 22, 2024, 8:55pm UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/16 "2024-08-22T20:55:43Z")

</div>

The plugin only works with the Mautic installation made by webmacanik. Give up trying. It was already made for this purpose.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [August 28, 2024, 11:14am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/17 "2024-08-28T11:14:40Z")

</div>

We have it in production - not webmecanic. You should try it again.

---

<div class="post-metadata">

**Author:** ![dirk\_s](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/dirk_s/32/748_2.png) [@dirk\_s](https://forum.mautic.org/u/dirk_s)\
**Post date:** [September 4, 2024, 8:42am UTC](https://forum.mautic.org/t/pipedrive-integration-relying-on-retired-endpoint-calls-to-start-failing-12-13-2022/26285/18 "2024-09-04T08:42:26Z")

</div>

Ist it working with Mautic 5.1, @joeyk ?
