Skip to main content

Functions Index

The following table lists the default functions which come predefined. You may extend these using the Functions app.

A detailed description of each function is listed in the following section.

Functions List

NameDescriptionCategory
ADDAdd two numbers togetherMath
ADD_TIMEAdd (or subtract) minutes to a datetimeDate
APPLY_VALUESApplies source values to data for the target data typesLogical
APPROVE_TIMECARDCall the approve timecard plugin for an employee and paydate/periodPlugin
ARCHIVE_DATAArchive rows in the target table based on a source record and date field. All rows matching the source data and having the date column greater than the provided date value will be marked as archivedDatabase
ATTRIBUTEReturns the child attribute of an object.Logical
BACKUPPerform system backupDatabase
BEST_FITFind the best fit match in a related store (e.g. finding schedules, leave or other transactional items)Database
BEST_FIT_ITEMSFind the best fit match in a child store (e.g. finding rates, status, other demographic items) of a looked-up parent storeDatabase
CALCReturn a calculated value from the rules engine, such as week-to-date hours, number of breaks taken, length of a breakCalculated
CALCULATE_PAYCHECKCall the payroll plugin to calculate a single checkPlugin
CALCULATE_TIMECARDCall the calculate timecard plugin for an employee and paydate/weekPlugin
CAPITALIZECapitalize the first letter of a word or stringString
CODEExecute a scriptLogical
COVERAGECompares worked time to scheduled time and returns the amount of coverageAnalytics
CREATE_LINKCreate a link/URL to an application or formLogical
CREATE_PAYBATCHCall the payroll plugin to create a new payroll batchPlugin
CREATE_RECORDCreate a record from a list of valuesLogical
CURRENT_RECORDReturns the current recordLogical
CURRENT_TIMEThe current time in the users timezoneDate
CURRENT_TIME_STRThe current time as a string in the users timezoneDate
DATETIME_TO_STRConvert a datetime object to a stringDate
DATE_DIFFDifference between two dates in days, when the inputs are datesDate
DATE_DIFF_STRDifference between two dates in days, when the inputs are stringDate
DATE_LISTReturn a list of dates using the provided optionsDate
DATE_TO_STRConvert a date object to a stringDate
DAY_OF_WEEKReturns the day of the week (1=Sun, 2=Mon, .. 6=Friday, 7=Saturday)Date
DIVIDEDivide one number by anotherMath
EMPLOYEEA helper function which calls FIND() with the "employee" datasource prefilled; allows fetching any attribute from the employee storeDatabase
ENDSWITHDetermine if a string value ends with a letter or phraseLogical
EQ_STRTest if two string values matchLogical
EVENTCreates an event/calendar record from date and timesDate
EVENT_ALLDAYExtracts the allday status of the event (1/0)Date
EVENT_DURATIONExtracts the duration of the event in hoursDate
EVENT_ENDExtracts the ending datetime of an eventDate
EVENT_STARTExtracts the starting datetime of an eventDate
FETCH_RECORDSFetch rows from a tableDB
FETCH_RECORDS_BY_FILTERSFetch rows from a table using a list of filtersDB
FETCH_RECORDS_BY_RANGEFetch rows from a table using a range of valuesDB
FETCH_RECORD_BY_IDFetch a row from a tableDB
FINDLookup fields in related datasources (e.g. lookup an employee's attributes when processing a timecard)Database
FINDMANYLookup fields in related datasources which contains multiple rows (e.g. lookup an employee's schedule when processing a timecard)Database
FIND_BY_GEOFind the best fit match to a geo location, such as a list of store or job locations. Uses the Great Circle Distance formula to calculate the surface distance between points.Database
FIND_IN_ITEMSFind the parent record which owns a child value; can return a specified field from the owning parent or the entire recordDatabase
FLOORRound a decimal value down to an integer; negative values round downward (greater negative)Math
FORMAT_DATEConvert a date from one format to anotherDate
FORMAT_DATETIMEConvert a datetime from one format to anotherDate
GREATERReturn the larger of two numbersMath
IFTests if the first argument is set (1/true) and if so, returns the second argument, else the thirdLogical
IF_EQUALTest if two values are equal, and if so return one argument, else return anotherLogical
INSERT_MONEYInserts or updates a system generated timesheet entry (e.g. for meal penalty); handles updating, deleting. No hours component is includedDatabase
INSERT_PREMIUMInserts or updates a system generated timesheet entry (e.g. for shift premium); handles updating, deleting. Allows automatic generation of overtime calculations on the premium rateDatabase
INSERT_PUNCHInserts or updates a system generated timesheet entry (e.g. for Holiday); handles updating, deletingDatabase
INTReturn the integer portion of a numberMath
ISALPHATests if a string contains all alpha charactersLogical
ISNUMERICTests if a string contains all numeric charactersLogical
IS_ARCHIVEDTest if the current record is archivedDatabase
IS_HOLIDAYReturns True (1) if the provided date is a holidayDate
IS_SETTest if an item has a value; 0, False, None, null and such would return 0, everything else 1Logical
IS_UNIQUETests to see if a value in a data store is uniqueDatabase
LIMITLimit a number to be within the provided range; if less than the minimum, return the minimum, or if greater than the maximum return the maximumMath
LOOKUPLookup a value in a non-related table or datasource.Database
LOWERConvert a string to lower caseString
LSTRIPStrip characters from the left side (start) of a stringString
MULTIPLYMultiply two numbers togetherMath
NOTFlip a logical value to its opposite (e.g. 1->0, False->True)Logical
NOWCurrent datetimeDate
NOWSTRCurrent date and time as a stringDate
OCCURRENCESCount the number of occurrences of an event during a timeline. For example, the number of breaks taken during a shift, or segment of time.Calculated
ORReturns the first argument with a value; 0/None/False equate to no valueLogical
PART_OF_DAYReturn a description of the part of the day (morning, afternoon, evening)Date
PUNCHReturns a punch attribute from the current day by specifying which punch ("First", "Last", "Any") and the attribute to returnDatabase
PUNCH_ACTIONReturns an attribute of the related punch action (e.g. Description = "IN", "OUT", "Start lunch", "End lunch"..). This is simply a shortcut to calling the FIND() function.Logical
PURGEPurge records from table (data will be physically removed)Database
REMOTEIPThe remote (public) IP address of the current request (only valid when used in a Form Submit type workflow)Request
REMOVE_RECORDRemove a record from a table (archive)DB
REPLACESubstitute characters in a stringString
ROUNDRound a number to the desired number of decimal placesMath
ROUND_DATETIMERounding of a date and time to nearest minutes intervalDate
RSTRIPStrip characters from the right side (end) of a stringString
RUN_IMPORTRun an import on demandExternal
SAVE_RECORDSave a record to a tableDB
SCHEDULEA helper function which calls the FIND function to return a schedule attribute (e.g. StartTime, StopTime..)Database
SEND_EMAILSends an emailPlugin
SEND_SMSSends a SMS/text messagePlugin
SEND_USER_INVITESend a message to a new user with invite instructions to login.System
SET_ATTRIBUTESets the child attribute of an object.Logical
SET_EXCEPTIONSets an exception on the underlying data. Use the Code from the Exceptions list to specify the exception to setLogical
SET_PASSWORDSet a user's password to a new valueSecurity
SLICEReturn a substring of the value from a start offset to an end offsetString
SPLITSplit a string into components using a delimiterString
STARTSWITHDetermine if a string value starts with a letter or phraseLogical
STRIPRemove all leading and trailing spaces from a stringString
STR_TO_DATEConvert a string to a date objectDate
SUBTRACTSubtract one number from anotherMath
SUBTRACT_TIMESubtract minutes from a datetimeDate
SUM_BY_DATESum a list of numbers in a datasource by date rangeMath
SUM_TO_CURRENTSum a list of numbers in a datasource up to the current row using a startdateMath
TEST_PASSWORDTesta user's password to confirm it matches the password policySecurity
TIME_DIFF_HOURSReturns the difference in two input times in hoursDate
TIME_DIFF_MINUTESReturns the difference in two input times in minutesDate
TITLECapitalize the first letter of each word in a stringString
TODAYToday's dateDate
TODAYSTRToday's date as a stringDate
UNANET_DISAPPROVALSRetrieve disapproved timesheetsPlugin
UNANET_POSTTIMEPost a timesheet pair, worked hours or other non-working hours to a Unanet timesheetPlugin
UNANET_SUBMITTIMESubmit a completed timesheet for a payperiodPlugin
UNAPPROVE_TIMECARDCall the unapprove timecard plugin for an employee and paydate/periodPlugin
UPDATE_LEDGERUpdates a balance ledger with current transaction details.Database
UPPERConvert a string to upper caseString
VALID_PASSWORDConfirm a user's password to authenticateSecurity
WORDSLICEReturn a substring of words from a start offset to an end offsetString
ZFILLPad a string with leading zerosString