... to_mail_ids in the URL instead of the body parameters
******************************************************************************* */
v_BooksOrgID = "12345678901";
v_BooksInvoiceID = 0;
v_ZB_CustomerID ...
... DataCenter) from EU to COM as I was using this for a client on the US datacenter. I have a connection called "zbooks" and the v_BooksOrgID is the ID of the instance in ZohoBooks; so for multiple instances ...
...
This is the code used in a workflow triggered within ZohoCRM when a Quote is created or modified:
//
// initialize
v_BooksOrgID = 123456789;
v_BooksCustomerID = 0;
m_CreateEstimate = Map();
l_CrmBillingAddress ...
... clients set their due dates differently.
How?
The following snippet of code will query the metadata api in Zoho Books and return a JSON of what the payment terms are.
void fn_ReturnCurrentPaymentTerms()
{
v_BooksOrgID ...
... enter your own organization ID here for ZohoBooks and ZohoInventory
v_BooksOrgID = 12345678901;
//
// evaluate
v_currentDate = zoho.currentdate.toString("yyyy-MM-dd");
v_OrderDate = zoho.currentdate.toString("yyyy-MM-dd");
v_Page ...
... ID
v_BooksOrgID = 20221234567;
//
// determine URL of file to download (note the DC here is EU but yours might be COM)
v_Url = "https://inventory.zoho.eu/api/v1/items/" + input.Zoho_Inventory_ID ...
... in case they add a currency or tax rate and want to push a sales order immediately over.
Get Currencies
Remember to replace the v_BooksOrgID with your client's Organization ID for Zoho Books and ...
... I use but you will need 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 ...
... "v_Filter" appears to do absolutely nothing but I've left it in there in case one day I figure it out:
// init
m_CreateSO = Map();
v_SalesPersonID = "";
//
// eval
v_BooksOrgID = 12345678901;
r_SoDetails ...
... config
v_BooksOrgID = "1234567890"; // put here your client's own Books Organization ID
v_CrmSoModule = "CustomModule5004"; // ensure this is the corresponding module API name in CRM
v_BooksAPIBase ...
... line items to insert the "sales_order_item_id" field
v_InvoiceID = invoice.get("invoice_id");
v_BooksOrgID = organization.get("organization_id");
//
// a sales order has been created, get its ID ...
We use cookies to improve your experience on our website. By browsing this website, you agree to our use of cookies. Read more about our Privacy Policy.