Assuming bookscreateso is required, the following result was found.
to adapt it for your own system: // init (specify your own organization ID for Zoho Books) v_BooksOrgID = 20210922122; m_BooksCreateSO = Map(); // get CRM record details r_SoDetails = zoho.crm.getRecordById("Sales_Orders", 012345678901234567); // build...