Running Workflow when record Created or Edited using Custom Function

Running Workflow when record Created or Edited using Custom Function

How can we enable triggering the workflows of we create or update a record ( invoice, estimation, etc.. ) from a custom function,
in CRM this is applicable using wfTrigger=true,
but in Zoho Books we can't do the same