... p_QuoteID is the ID of the quote):
// init Map
m_UpdateQuote = Map();
//
r_QuoteDetails = zoho.crm.getRecordById("Quotes", p_QuoteID);
v_SubTotal = r_QuoteDetails.get("Sub_Total").toDecimal() * ...
... to properly convert seconds into total hours, minutes and seconds (taking into account regional settings and without using a date function).
How?
$total_time =intval(intval($total_seconds)/ 3600).":";
$total_time.=str_pad(intval(($total_seconds/60)%60),2,"0",STR_PAD_LEFT).":";
$total_time.=str_pad(intval($total_seconds%60),2,"0",STR_PAD_LEFT);
// ...
... amount/total is a currency column we want aligned on the right
l_HeaderColumns.add();
l_HeaderColumns.add();
//
// build up related list rows
l_RelatedListData = List();
for each m_DataRow in l_DataRows
{
// ...
...
How?
So first, this article shows you how to setup an API connection, and then we'll include the code to count the total number of products, and then finallly show the code to loop through all the ...
... Not sure about the rest of you, but I've been using this for pagination purposes and for the system to work out how many pages or loops in total it would need to do.
How?
Here's a couple of working ...
What?
This is a not-so-quick article that queries an eBay order and creates the relevant ZohoInventory item, contact, sales order, package slip, shipment order, invoice, payment records...
Why? ...
... now let's generate the page list to have all the available pages
v_TotalNumberOfPages = ceil(v_MaximumOrders / v_PerPage);
l_AddPages = leftpad(" ",v_TotalNumberOfPages).replaceAll(" ",",").toList();
for ...
... = 1500;
//
// now let's generate the page list to have all the available pages
v_TotalNumberOfPages = ceil(v_MaximumProducts / v_PerPage);
l_AddPages = leftpad(" ", v_TotalNumberOfPages).replaceAll(" ...
What?
An article on how I can query all the orders for yesterday without using the eBay GUI Selling website. I've included the code to parse out the information as well.
Why?
Because I need this ...
... */
//
// list of pages to loop through (note: issues with multiple pages, do 1 at a time)
l_Pages = ;
v_PerPage = 200;
for each v_Page in l_Pages
{
v_CountTotal = 0;
v_CountProcessed = 0;
v_FromIndex ...
... AS "PO Item Tax",
poi."Quantity" AS "PO Qty",
poi."FCY Tax Amount" AS "PO Line Tax",
if_null(pshipping."PO Delivery", 0) AS "PO Total Shipping",
if_null(pdiscrepancy."PO Discrepancy Total", 0 ...
... in the Future
Total Number of Candidates
I'll flesh this out some other time but here's the code I used:
r_CandidateDetails = zoho.recruit.getRecordById("Candidates",p_CandidateID,"zrecruit");
//info ...
What?
A quick article to demonstrate code that creates a task in CRM based on the time logged against an Event/Meeting.
Why?
As developers, we're keep account of our time and we are currently ...
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.