On Record Create, when does the database "commit" occur?

On Record Create, when does the database "commit" occur?

I want to run a deluge function via an on create workflow.

In this code, the fields Estimated_Budget and Estimated_Quantity are required.
The amount field is type Currency.
However, the Amount field does not populate. 
Is this because the database COMMIT action does not necessarily happen before the Workflow on Create runs its stuff?

Would running a Circuit be a workaround for this?



  1. dealDetails = zoho.crm.getRecordById("Deals",opportunityID);
  2. price = dealDetails.get("Estimated_Budget");
  3. quantity = dealDetails.get("Estimated_Quantity");
  4. amount = quantity * price;
  5. deal_data = Map();
  6. deal_data.put("Amount",amount);
  7. info amount;
  8. info zoho.crm.updateRecord("Deals",opportunityID,deal_data);
  9. return;