This section contains information about Orderful's Rules Engine.
To start, you should read about how to Use the Rules Engine.
These are the available Rules in Orderful. More information about each Rule can be found in the Orderful UI:
- Go to your Transactions page.
- Select a Transaction, which will bring you the Transaction Details page.
- Near the top, select the Rules Editor tab.
- Select the property or element that you would like to create a Rule for, or search for it using the search field at the top of the payload. Once you have selected it a prompt will appear on the right that says "A relationship rule does not exist". If you click the link in that prompt, it will open the "Add a rule" pane.
|ADD||Returns the sum of all addends.|
|ADDSEGMENT||Add a new instance of a segment to a segment loop.|
|ADDTIME||Returns a new date falling after the input date by the specified amount of time.|
|AND||Checks whether every supplied test value is equal to 'true'.|
|CONCATENATE||Returns a joined string from all provided strings.|
|CONTAINS||Checks whether a text string contains a specific character or substring.|
|COUNT||The reference path to the loop or segment in the current transaction to count.|
|CREATEDAT||Returns the created datetime of the transaction, in format of |
|DIVIDE||Returns the value of the dividend divided by all divisors.|
|EQUALS||Checks whether all values are equivalent.|
|EXISTS||Verifies whether the specified loop, segment or element exists within the current transaction.|
|FIXED||Rounds a number to a specified number of decimal places and converts it into text.|
|FORMATDATE||Converts a text representation of a date/time into a new format.|
|GREATER||Checks whether one number is greater than another.|
|IF||Conditionally executes logic depending on whether a supplied test value is equal to |
|INCLUDES||Returns boolean indicating if the element was found in the array.|
|INDEX||Retrieves an element from an array by its index.|
|KEYVALUE||Creates a key value pair that consists of a field name string and a value string.|
|LENGTH||Returns the number of characters in a text string.|
|LESS||Checks whether one number is less than another.|
|LOOKUP||Returns the value of an element contained in a segment which matches the provided lookup value.|
|LOOKUPDATA||Returns the value of the lookup data entry associated with the provided lookup key.|
|LOWERCASE||Converts all characters in a text string to lower case.|
|MULTIPLY||Returns the product of all factors.|
|NOT||Inverts a true/false value.|
|OBJECT||Returns a JSON object containing the specified key value pairs.|
|OR||Checks whether at least one supplied test value is equal to 'true'.|
|REPLACE||Replaces a part or parts of a text string with a different text string.|
|RIGHT||Extract text from the right of a string.|
|ROUND||Rounds a number to a specified number of decimal places according to standard rules.|
|SET||Sets an element value explicitly to a provided string or referenced value.|
|SMART||Use smart EDI functions to help transform your data in one easy step.|
|SPLIT||Splits a text string into an array of strings.|
|SUBSTRING||Extracts a portion of a text string.|
|SUBTRACT||Returns the value of the minuend subtracted by all subtrahends.|
|SUBTRACTTIME||Returns a new date falling before the input date by the specified amount of time.|
|SUM||Returns the sum of all fields in the transaction which match the supplied reference path.|
|TIMEZONENUMERIC||Use city, state and country to determine timezone offset for the current time.|
|TRIM||Removes leading and trailing whitespace from text.|
|TURNAROUND||Looks up the |
|UPPERCASE||Converts all characters in a text string to upper case.|
Updated about 2 months ago