pipedrive.rb icon indicating copy to clipboard operation
pipedrive.rb copied to clipboard

Add NoteField and OrganizationRelationship APIs

Open czlee opened this issue 3 years ago • 0 comments

This adds support for the noteFields and organizationRelationship APIs:

  • https://developers.pipedrive.com/docs/api/v1/NoteFields
  • https://developers.pipedrive.com/docs/api/v1/OrganizationRelationships

NoteFields doesn't support create, update or delete. In a weird quirk, it also doesn't single-object GETs, so since find_by_id is grouped with all in Pipedrive::Operations::Read, currently Pipedrive::NoteField.new.find_by_id(id) exists and will try to hit the API, but will come back with

{"status"=>false, "error"=>"Unknown method .", "success"=>false, "not_authorized"=>false, "failed"=>false}

OrganizationRelationships should has a similar quirk for delete_all (not supported), but the other operations should be fine.

Let us know if you have a preferred method for dealing with this!


  • To see the specific tasks where the Asana app for GitHub is being used, see below:
    • https://app.asana.com/0/0/1203130393642269

czlee avatar Oct 10 '22 23:10 czlee