Triggering a workflow based on the field update performed by function using zoho.crm.updateRecord()

Triggering a workflow based on the field update performed by function using zoho.crm.updateRecord()

Ran into something pretty perplexing that I haven't been able to find solutions for online. 

I set up a workflow that triggers when a field is updated to a certain value. After futile hours of trying to debug this, I realized this inexplicable thing.

The workflow actually does trigger properly when I manually update the field to the required value. When the field is updated to the exact same value by the custom function I wrote (using zoho.crm.updateRecord()), the workflow doesn't trigger!

I'm wondering if anyone else has experienced similar issue, and if so, how they got around it.