You can use the below formula in a workflow after the field change of the trandate to add days to the last day of the trandate. (new Date((new Date(new Date({trandate}).getFullYear(),new Date({trandate}).getMonth()+1 ,0)).getFullYear(),(new Date(new Date({trandate}).getFullYear(),new Date({trandate}).getMonth()+1 ,0)).getMonth() ,(new Date(new Date({trandate}).getFullYear(),new Date({trandate}).getMonth()+1 ,0)).getDate()+30)).toLocaleDateString()
Tag: Formula
Set The Last Date Of Trandate
You can use the below formula to set the last date of trandate in the workflow triggering after a field change of trandate (new Date(new Date({trandate}).getFullYear(),new Date({trandate}).getMonth()+1 ,0)).toLocaleDateString()
Saved Search Formula Number of Weekdays between Two Dates
Saved Search Formula Number of Weekdays between Two Dates
Different Workbook formula for date wise dataset filtering
Workbook formula for date comparison and filtering
Search criteria to find the sales order which do not have the back ordered quantity
If a user need to create a transaction search to list out the sales orders which do not have any back ordered quantity in the line items, use the formula given below. case when {quantity}-nvl({quantitycommitted},0)-nvl({quantityshiprecv},0) > 0 then 1 else 0 endEnter 0
Search formula to find the latest date among the three dates
Scenario: If we need to find the latest date/the recent date among the three dates in a saved search, use the following formula in the search criteria. Formula(Date): CASE WHEN ({custrecord_project_first_expiry_date}>=NVL({custrecord_project_second_expiry_date},{custrecord_project_first_expiry_date})) THEN (CASE WHEN ({custrecord_project_first_expiry_date}>=NVL({custrecord_project_third_expiry_date},{custrecord_project_first_expiry_date})) THEN {custrecord_project_first_expiry_date} ELSE {custrecord_project_third_expiry_date} END) ELSE (CASE WHEN ({custrecord_project_second_expiry_date}>= NVL({custrecord_project_third_expiry_date},{custrecord_project_second_expiry_date})) THEN {custrecord_project_second_expiry_date} ELSE {custrecord_project_third_expiry_date}END )END
Excel Functions
COUNTBLANK The COUNTBLANK function returns a count of empty cells in a range. Cells that contain text, numbers, errors, spaces, etc. are not counted. Formulas that return empty text are counted. COUNTBLANK takes just one argument, range, which must be a cell range. SUMIF The Excel SUMIF function returns the sum of cells that meet… Continue reading Excel Functions
Common SQL Expressions For Saved Search
Character Functions Function Syntax Description CONCAT CONCAT(char1, char2) returns char1 concatenated with char2 LOWER LOWER(char) returns char, with all letters lowercase UPPER UPPER returns char, with all letters uppercase LTRIM LTRIM(char [, set ]) removes from the left end of char all of the characters contained inset RTRIM RTRIM(char [, set ]) removes from the… Continue reading Common SQL Expressions For Saved Search
Formula to categorize Asset and Liability Account From Account Number
TRS-900 Mostly chart of accounts is categorized by account type and account description. If we need to distinguish accounts from account number we can use formula text when searching accounts. If asset accounts number were starting with the character ‘1’ and liability accounts were starting with ‘2’ we can use the following formula to distinguish… Continue reading Formula to categorize Asset and Liability Account From Account Number