Skip to content

Instantly share code, notes, and snippets.

@jwaiswa7
Last active August 10, 2021 03:29
Show Gist options
  • Save jwaiswa7/7753b355c850991981956c28e8fa76e2 to your computer and use it in GitHub Desktop.
Save jwaiswa7/7753b355c850991981956c28e8fa76e2 to your computer and use it in GitHub Desktop.

This documents how to add an activity to a pipedrive deal or person

Please see here for details of required parameters

client = ::Pipedrive::Activity.new

params = {
      due_date: date,
      due_time: "12:00",
      duration: "1:15",
      deal_id: 120,
      note: "<p>Testing activity, not visible to guests added to the calender</p>",
      subject: "Activity subject",
      public_description: "<p>Testing public description, visible to guests added to the calender</p>",
      attendees: [{"email_address":"[email protected]"}]
    }

client.create(params)

  • This will create an activity on the deal with id 120 and default type call.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment