Add note to deal as it is being created

Hello, This is my first time posting so let me know if this is in the wrong place.

I currently have some code that automatically adds a new deal when I provide a URL. I would like to also include a note to the deal I am creating that contains the URL.

For a brief example. The code scrapes the site for required info and creates a deal (title, org_id, label,person_id. etc.) I cannot find a way to add a note to the deal as it is being created. Is it possible to do this, and if so how?

Everything I see about a note requires an id of some sort, but I do not have an id yet since the deal has not been created yet.

I think it should be in 2 API calls

  1. Create the Pipedrive Deal, will receive a JSON response including the deal_id
  2. Another API call to add note using that deal_id

Can find the API format in documentation.

1 Like

Thanks! I didn’t notice that the id was in the JSON file. That is exactly what I needed!