rikas / zoho_hub

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

Support lar_id for put requests #57

Open JannikStreek opened 4 years ago

JannikStreek commented 4 years ago

Hi,

Zoho supports assignment rules which assign an account manager to a lead by e.g. round robin. Unfortunately, it seems like it is not enough to leave the owner property empty to make the assignment rule work (even when its activated for all records). You have to explicitly set the so called lar_id:

post(self.class.request_path, data: [to_params], lar_id: some_id)

It's also not enough to add this id to the data object - it has to be one level above that.

If this is something that you agree with, I am happy to provide a PR soon.

rikas commented 2 years ago

@JannikStreek if you can provide a PR I would be happy to merge it.