Pipedrive integration Error

Hi there,

I would please like some help with a Pipedream - Pipedrive integration.

The specific step “new_deal” in my Pipedream workflow seems to be encountering an internal server error, as indicated by the response status code “500” and the accompanying error message “Internal Server Error occurred. Pipedrive staff was notified about this.”

The workflow involves creating a new deal in Pipedrive, and there is a JSON payload included in the request data that contains various fields such as title, custom fields, property information, and comments. However, due to the internal server error, the deal creation process fails.

Brief summary:
I have a workflow that starts with a webhook to a form on my website.

  1. When the form is submitted, I want a new person to be created in Pipedrive: Success
  2. I then want Pipedream to search Pipedrive for that new person I just created, using the email address field from the webhook results. This is because I need the Pipedrive ‘person ID’ of the new person that has just been created: Success
  3. I want to carry forward all the data form the webhook (because I need the results from the webhook (website form submission) to create a new deal) as well as the results from the ‘search persons’ because I also need the ‘person ID’ – this is because I want to link a new deal to the new person: Success
  4. Create the new deal: Failed – Error code 500

Also, in the ‘configure’ section of the new deal, there is no option to input a deal title

There are a number of custom data fields that I have added in Pipedrive. This has not been an issue for the create person step, so I can’t see why it would be an issue in the create new deal step.

The main thing here to question is the code – I do not know how to code! I’ve just been using chatgpt and my brain to try and figure all this out…and to be honest I’m surprised steps 1-3 have worked!

Please let me know if you need any other information and whether you think this is fixable.

Hi @josh.rapley,

I’m sorry to hear you’re encountering issues with the “new_deal” step in your workflow. Since you’ve successfully completed the first three steps, let’s focus on the “Create the new deal” step.

To create a new deal in Pipedrive, you can use the “Add Deal” action provided by Pipedream. Here’s how to set it up:

  1. Search for the Pipedrive app from the step menu.
  2. Select the “Add Deal” action.
  3. Connect your Pipedrive account.
  4. Select a Title or pass a string from a previous step.

You mentioned that you didn’t see an option to input a deal title in the “configure” section. Please make sure you’re using the “Add Deal” action, as it should have a field for the deal title.

For the custom fields, you can pass them as optional props in the “Add Deal” action. You can find more information about the optional props in the Pipedrive - Add Deal documentation.

If you’re still encountering issues, please share more details about the specific step where the error occurs, and any relevant code or configuration you’re using. This will help me better understand the issue and provide a more accurate solution.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.

Hi @josh.rapley, the error you’re facing is actually from Pipedrive side. You can contact there cusomter support asking them about their API.

In more detail, would you mind sharing the screenshot of your New Deal step? I would like to understand what values you have put in there

Sure @vunguyenhung