What?
There are already articles out there that document this but I use this more and more and would rather just find it on my site than going through multiple bookmarks.
Why?
This use-case is ...
... // returns 2020
You should also pad single digit week numbers if we're going to store a year week value:
v_ThisCurrentWeekNumber = if(zoho.currentdate.toString("u").toLong() == 7,zoho.currentdate.subDay(1),zoho.currentdate).toString("w");
v_ThisCurrentWeekNumberPadde ...
... 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 ...
... output to developer for debug purposes
v_Date = zoho.currentdate.subDay(v_Index).toString("yyyy-MM-dd");
info v_Date;
//
// set criteria of what shipment orders to retrieve
m_Criteria = Map();
m_Criteria.put("date",v_Date);
//
// ...
... create a list of pages (specifies the number of pages to try)
l_Pages = ;
for each v_Page in l_Pages
{
if(b_HasNextPage)
{
//
// query using GraphQL
v_UpdatedSince = zoho.currentdate.subDay(1).toString("yyyy-MM-dd'T'00:00:00+0000");
if(v_Page ...
... my list to populate
l_CheckDates = List();
//
// loop through generated list and add dates
for each index v_Index in l_GeneratedList
{
if(v_Index>0)
{
l_CheckDates.add(zoho.currentdate.addDay(v_Index).toString("yyyy-MM-dd"));
}
} ...
... = "div.zc-Calendar_Day_Select-group";
//
// set initial hidden date field
input.Selected_Date = zoho.currentdate;
input.Starting_Date = zoho.currentdate;
//
// set the values for the calendar select ...
What?
This is an article documenting how to parse the notification from eBay and using it to create an order in Shopify.
Why?
Previously, we would receive an eBay notification and create an ...
... Start Starts Second Sunday in March at 2:00
DST End Ends First Sunday in November at 2:00
//
// Starts Second Sunday in March at 2:00
v_FirstMonthDate = toTime(zoho.currentdate.toString("yyyy") ...
... sunday but we want to start counting from Monday 00:00
v_FirstDateOfWeek = zoho.currentdate.toStartOfWeek().addDay(1).toString("yyyy-MM-dd");
//
// build up COQL Query
v_CoqlQuery = ...
... = zoho.crm.getRecordById("Sales_Orders", 012345678901234567);
// build up your map to send to ZohoBooks to create the Sales Order
m_BooksCreateSO.put("date",zoho.currentdate);
//
// push to ZohoBooks
r_CreateSO ...
... correction: I want to specify a from datetime
v_NowTime = '2021-09-21 21:27:15';
//
// now specify a to datetime (we're doing a working day so we add 1 business day)
v_NextTime = zoho.currentdate.addBusinessDay(1).toString("yyyy-MM-dd ...
... now override fields specific to the newly cloned/duplicated record
m_Clone.put("Invoice_Status","Repeated Invoice");
m_Clone.put("Invoice_Date",zoho.currentdate.toString("yyyy-MM-dd"));
m_Clone.put("Due_Date",zoho.currentdate.addMonth(1).toStartOfMonth().subDay(1).toString("yyyy-MM-dd"));
// ...
... 25-Mar-2020 21:41:07
Setting a TimeZone and extracting the date and time
v_CurrentTime = zoho.currenttime.toString("yyyy-MM-dd'T'HH:mm:ss", "Europe/London");
v_CurrentDatePart = v_CurrentTime.subString(0,10);
v_CurrentTimePart ...
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.