... logged in user (who clicked the button)
v_LoggedInUserID = 0;
r_Users = zoho.crm.getRecords("users");
for each m_User in r_Users.get("users")
{
if(m_User.get("email").equalsIgnoreCase(zoho.loginuserid))
{
v_LoggedInUserI ...
... was not accurate enough... but here's the snippet:
r_CommentsHistory = Map();
l_Comments = ifnull(r_CommentsHistory.get("comments"),List());
for each m_Comment in l_Comments
{
if(m_Comment.get("description").containsIgnoreCase("Purchase ...
... ) != null)
{
//
// my app is the only one using the orders/updated webhook topic/trigger
if(m_ThisWebhook.get("topic").equalsIgnoreCase("orders/updated"))
{
b_RestoreOrderUpdateWebho ...
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? ...
... + v_BooksOrgID
type :GET
connection:"zbooks"
];
if(r_ChartOfAccounts.get("chartofaccounts") != null)
{
for each m_NomAccount in r_ChartOfAccounts.get("chartofaccounts")
{
if(m_NomAccount.get("account_name").equalsIgnoreCase("Stri ...
... e if(r_ChatGPTResponse.get("responseCode") == 429)
{
// store in response text
v_Answer = "I dont have any knowledge in this. Please ask me something else";
}
}
else if (v_Message.containsIgnoreCase("H ...
What?
A quick article to display a value in a column in a widget in Zoho Analytics.
Why?
Because I keep forgetting how to do it.
How?
I've done this for a query that amalgamated all the ...
... check this record is the same school
if(r_School.get("Account_Name").equalsIgnoreCase(v_SchoolName))
{
// update the CRM record
m_Trigger = Map();
m_Update = Map();
m_Update.put("Total_Number_of_Candidates",v_CandidatePlacedCount);
m_Update.put("Number_of_Candidates_This_Graduation_Year",v_CandidateGraduatingCount);
m_Update.put("Number_of_Candidates_Next_Graduation_Year",v_CandidateGraduatingNextCount);
r_Updat ...
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 ...
... " + r_Event.get("eventType");
//
// get the xero ID of the record (hexadecimal)
v_Xero_ResourceID = r_Event.get("resourceId");
//
// do different things based on the category of the update
if(r_Event.get("eventCategory").containsIgnoreCase("CONTACT"))
{
/ ...
... == "Customer_s_Timezone")
{
// loop through all the picklist values of this dropdown
for each r_TimeZone in r_Field.get("pick_list_values")
{
if(r_TimeZone.get("display_value").containsIgnoreCase(v_TimeZone))
{
v_CustomerTimeZon ...
... single out this person (can be removed after testing)
if(v_LastName.containsIgnoreCase("Lipman"))
{
//
// get user id
v_UserID = r_User.get("id");
//
// startofweek is a ...
What?
A quick article to take a list of options from a HTML select element and convert to a Zoho Deluge list that will eventually be used to populate a dropdown.
Why?
Because I find myself doing ...
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.