Zoho Creator: Public URL of an Image field / Upload to Shopify API https://www.joellipman.com/articles/crm/zoho/zoho-creator-public-url-of-an-image-field-upload-to-shopify-api.html
17 October 2021
v_PhotoWithExt = v_PhotoFull.getSuffix("/image/").getPrefix("\""); v_PhotoFileExtension = v_PhotoWithExt.subString(v_PhotoWithExt.lastIndexOf(".") + 1).toLowerCase(); // if(l_CompatiblePhotoExtensions.containsIgnoreCase(v_PhotoFileExtension)) {...
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
ZohoCRM: Integrate ChatGPT to ZohoZIA https://www.joellipman.com/articles/crm/zoho/zohocrm-integrate-chatgpt-to-zohozia.html
06 March 2023
{ // // store user input to a CRM record m_Create = Map(); v_Title = if(v_UserMessage.length()>40, v_UserMessage.subString(0,40) + "...", v_UserMessage); m_Create.put("Title", v_Title); m_Create.put("Content", v_UserMessage.trim()); m_Create.put("Role",...
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
ZohoCRM: Daily Follow Up and Remind Record Owner to Convert Lead https://www.joellipman.com/articles/crm/zoho/zohocrm-follow-up-and-remind-record-owner-to-convert-lead.html
14 May 2024
v_LeadCreatedTime = r_LeadDetails.get("Created_Time"); // // convert to time datatype v_TimeOffset = (v_LeadCreatedTime.subString(0,10) + " " + v_LeadCreatedTime.subString(11,25)).toString("yyyy-MM-dd HH:mm:ss", v_ThisTimeZone); // // set reminder time...
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
MediaWiki: MySQL to extract path to images https://www.joellipman.com/articles/cms/mediawiki/mediawiki-mysql-to-extract-path-to-images.html
06 December 2011
1, 1), '/', SUBSTR(MD5(img_name), 1, 2), '/', img_name) AS img_path_with_file from wikimedia_image -- where -- SUBSTRING(img_timestamp, 1, 8)>=20110922 ORDER BY img_timestamp DESC Note that I've commented out the lines which specify images modified...
Type: Article
Author: Joel Lipman
Category: MediaWiki
Language: en-GB
Copy a table with structure and data into a temporary table https://www.joellipman.com/articles/database/t-sql/copy-a-table-with-structure-and-data-into-a-temporary-table.html
03 August 2012
@TableDeclaration nvarchar(4000); DECLARE @SqlToExecute nvarchar(4000); -- Set variable default values SET @TableName = SUBSTRING(@SchemaTableName, CHARINDEX('.', @SchemaTableName)+1, LEN(@SchemaTableName)); SET @SqlToExecute = ''; -- Declare temporary...
Type: Article
Author: Joel Lipman
Category: Transact-SQL
Language: *
Search a database for a string (MySQL, T-SQL) https://www.joellipman.com/articles/database/search-a-database-for-a-string-mysql-t-sql.html
08 October 2012
SCh.name + '.' + ST.NAME ; UPDATE @SQLTbl SET SQLStatement = 'SELECT * INTO SearchTMP FROM ' + Tablename + ' WHERE ' + substring(WHEREClause,1,len(WHEREClause)-5) DELETE FROM @SQLTbl WHERE WHEREClause IS NULL WHILE EXISTS (SELECT 1 FROM @SQLTbl WHERE...
Type: Article
Author: Joel Lipman
Category: Databases
Language: en-GB
Cheat Sheet for mySQL vs t-SQL https://www.joellipman.com/articles/database/cheat-sheet-for-mysql-vs-t-sql.html
31 January 2013
Concatenation CONCAT(string1,string2[,stringN]) string1 + string2 SS v2012+: CONCAT(string1, string2 [, stringN ]) String Substring SUBSTRING( string,start,length ) SUBSTRING( string,start,length ) String Length LENGTH(string) BIT_LENGTH(string)...
Type: Article
Author: Joel Lipman
Category: Databases
Language: *
Quickly update all content in mySQL database replacing a string https://www.joellipman.com/articles/database/mysql/quickly-update-all-content-replacing-a-string.html
03 February 2013
@stringtoReplaceWith, REPLACE(`content_column`, @stringtoFind, @stringtoReplaceWith) )>0,'yes','no') as OldFoundInNew, SUBSTRING(`content_column`, LOCATE( @stringtoFind, `content_column` )) as OldFind, REPLACE(`content_column`, @stringtoFind,...
Type: Article
Author: Joel Lipman
Category: MySQL
Language: en-GB
SSIS Skip Blank Rows in Flat File Source https://www.joellipman.com/articles/microsoft/ssis/ssis-skip-blank-rows-in-flat-file-source.html
23 April 2013
keycolumn is not null and data column is not blank. Derived Column Task: Format keycolumn as per your requirements and use substring on trimmed DataColumn to retrieve each data column. Additional The TRIM in SSIS does not appear to get rid of new line...
Type: Article
Author: Joel Lipman
Category: SQL Server Integration Services
Language: en-GB
Zoho Deluge - Get English Ordinal https://www.joellipman.com/articles/crm/zoho/zoho-deluge-get-english-ordinal.html
08 November 2018
determine English Ordinal Ordinals = "th,st,nd,rd".toList(); English_Ordinal = Ordinals.get(0); EO_Index = This_Day_Date.substring(This_Day_Date.length() - 1).toLong(); if((EO_Index == 1 || EO_Index == 2 || EO_Index == 3) && (This_Day_Date != "11" &&...
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
Zoho Creator / eBay: Get all Active Products https://www.joellipman.com/articles/crm/zoho/zoho-creator-ebay-get-all-active-products.html
13 October 2021
{ // // init l_JSONItems = List(); // // parse the data v_MainNode = "ActiveList"; x_MainNode = r_ResponseXML.subString(r_ResponseXML.indexOf("
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
Zoho CRM & Deluge: Adding 10 minutes to a CRM Date Time field https://www.joellipman.com/articles/crm/zoho/zoho-crm-deluge-adding-10-minutes-to-a-crm-date-time-field.html
11 November 2021
add 10 minutes, re-assemble it in a format that CRM likes, and update the field: // // parse date into yyyy-MM-dd (using subString - reliable) v_LeadCreatedDate = r_LeadDetails.get("Created_Time").subString(0,4) + "-" +...
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
Zoho Creator: Receive eBay Notification and Create Shopify Order https://www.joellipman.com/articles/crm/zoho/zoho-creator-receive-ebay-notification-and-create-shopify-order.html
21 January 2022
= input.Payload.getJSON("body"); v_MainNodeName = "GetItemTransactionsResponse"; x_MainNode = x_ResponseBody.subString(x_ResponseBody.indexOf("
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
Zoho Creator: eBay: Get Item Transaction https://www.joellipman.com/articles/crm/zoho/zoho-creator-ebay-get-item-transaction.html
22 January 2022
the response if(r_ResponseXML.contains("Success")) { // // parse the data v_MainNode = "Item"; x_MainNode = r_ResponseXML.subString(r_ResponseXML.indexOf("
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
Zoho CRM & Creator: Download attachment and upload to Creator file field https://www.joellipman.com/articles/crm/zoho/zoho-crm-creator-download-attachment-and-upload-to-creator-file-field.html
11 March 2022
display later: if(!isnull(row.Document_File)) { v_FileDetected = row.Document_File; if(v_FileDetected.contains("_")) { v_SubstringStart = v_FileDetected.indexOf("_"); v_FilenameDetected = v_FileDetected.subString(v_SubstringStart + 1);...
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
Zoho CRM: Manage a subform using Client Script https://www.joellipman.com/articles/crm/zoho/zoho-crm-manage-a-subform-using-client-script.html
09 December 2022
// other fields to fill in for this subform row v_RateCardDisp = v_RateCard.indexOf(" (")>0 ? v_RateCard.substring(0, v_RateCard.indexOf(" (")) : v_RateCard; json_Arg.Rate_Change_Notes = v_RateCardDisp; // get existing subform with only the displayed...
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
ZohoDeluge: Get All eBay Orders Given a From and Till Date https://www.joellipman.com/articles/crm/zoho/zohodeluge-get-all-ebay-orders-given-a-from-and-till-date.html
28 February 2023
orders in response v_OrderNodePart = "Order"; v_OrderNodeName = v_OrderNodePart + "Array"; x_OrderNode = x_ResponseBody.subString(x_ResponseBody.indexOf("
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
ZohoCRM: Get All eBay Active Listings https://www.joellipman.com/articles/crm/zoho/zohocrm-get-all-ebay-active-listings.html
01 March 2023
:POST parameters:x_Params headers:m_Headers ]; if(v_Page==1) { // // get page results x_PaginationResult = x_ResponseBody.subString(x_ResponseBody.indexOf("
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
Zoho Deluge: Get All Orders from eBay https://www.joellipman.com/articles/crm/zoho/zoho-deluge-get-all-orders-from-ebay.html
29 March 2023
results from the first iteration/page if(v_Page == 1) { // // get page results x_PaginationResult = x_ResponseBody.subString(x_ResponseBody.indexOf("
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *
ZohoCRM & ZohoWriter: Generate Rich-Text / HTML Email Signatures in CRM https://www.joellipman.com/articles/crm/zoho/zohocrm-zohowriter-generate-rich-email-signatures-in-crm.html
05 December 2023
= ifnull(p_DownloadImageUrl,"https://joellipman.com/tmp/icon_linkedin.jpg"); v_FileName = v_ImageToDownload.subString(v_ImageToDownload.lastIndexOf("/") + 1); // // get file object f_File = invokeurl [ url :v_ImageToDownload type :GET ]; // // upload...
Type: Article
Author: Joel Lipman
Category: Zoho
Language: *