rikas / zoho_hub

Zoho CRM API V2 Wrapper
MIT License
25 stars 30 forks source link

How to delete a deal? #56

Closed ueki-hikonuki closed 4 years ago

ueki-hikonuki commented 4 years ago

I can create a deal with the following class.

class Deal < ZohoHub::BaseRecord attributes :id, :deal_name, :account_name, :amount, :closing_date, :stage, :contact_name, :description, :notes end

However, I am not sure how to delete a deal.

Deal.delete(deal_id) does not seem to be working.

Thank you.

Fabien-Wecasa commented 4 years ago

The deletion is not handled yet. There is an open PR #52 for that. If/when it is merged, you'll be able to call Deal.delete_record(deal_id) or deal.delete_record.

ueki-hikonuki commented 4 years ago

I see. Thank you.